zoukankan      html  css  js  c++  java
  • (二)分配vlan(虚拟局域网)

    计算机网络有光猫和路由器

    WiFi怎么划分VLAN(房间)

    思科模拟器:信息嵌入

    交换机(switch):是一种用于电光信号转发的网络设备,可以接入交换机的任意两个网络节点提供独享的电信号通路,最常见的交换机是以太网交换机。

    单模:支持几百公里的信号传输

    多模:支持几公里的信号传输

    单模光纤和多模光纤的最远传输距离:

    光模块:光模块的作用就是光电转换,发送端把电信号转换成光信号,通过光纤传送后,接收端再把光信号转换成电信号。

    switch>:一般用户模式,输入enable

    switch#:特权模式,输入configure terminal

    switch(config)#:全局配置模式,输入interfaceEthernet0/1

    switch(config-vlan)#:VLAN接口模式,输入exit

    实战:寝室划分VLAN

    四台PC

    四台笔记本,四台手机,一个路由器,一个平板电脑。

    中继器:物理层,实现流的转发

    比特流,物理层;数据链路层,帧 ;网络层,数据报

    接收端接收到数据报丢失了发送端不会再次转发。

    A类:1-126.0.0.1

    B类:128.0.0.1-191.225.0.1

    C类:192.0.0.1-223.255.255.0

    单交换机:

    一般用户模式进入特权模式输入enable

    进入全局配置模式,configure terminal

    网络拓扑图

    show ?

    show version

    show mac-address-table

    show flash:

    hostname 0129

    进入接口模式,interface f0/1,限速

    speed 100

    speed aute

    vlan 5

    name 12

    exit

    vlan 10

    name 345

    vlan 隔离

    interface fastEthernat0/1

    switchchport access vlan 5

    interface fastEthernat0/2

    switchchport access vlan 5

    interface fastEthernat0/3

    switchchport access vlan 10

    interface fastEthernat0/4

    switchchport access vlan 10

    interface fastEthernat0/5

    switchchport access vlan 10

    interface fastEthernat0/6

    switchchport access vlan 10

    PC0不能互ping通PC345

    双交换机:

    至少四台PC

     etherchannel       EtherChannel information
    
      flash:             display information about flash: file system
    
      history            Display the session command history
    
      interfaces         Interface status and configuration
    
      ip                 IP information
    
      mac-address-table  MAC forwarding table
    
      mls                Show MultiLayer Switching information
    
      privilege          Show current privilege level
    
      sessions           Information about Telnet connections
    
      tcp                Status of TCP connections
    
      terminal           Display terminal configuration parameters
    
      users              Display information about terminal lines
    
      version            System hardware and software status
    
      vlan               VTP VLAN status
    
      vtp                VTP information
    
    Switch>show
    
    % Incomplete command.
    
    Switch>en
    
    Switch#show
    
    % Incomplete command.
    
    Switch#show ?
    
      access-lists       List access lists
    
      arp                Arp table
    
      boot               show boot attributes
    
      cdp                CDP information
    
      clock              Display the system clock
    
      dtp                DTP information
    
      etherchannel       EtherChannel information
    
      flash:             display information about flash: file system
    
      history            Display the session command history
    
      hosts              IP domain-name, lookup style, nameservers, and host table
    
      interfaces         Interface status and configuration
    
      ip                 IP information
    
      logging            Show the contents of logging buffers
    
      mac-address-table  MAC forwarding table
    
      mls                Show MultiLayer Switching information
    
      port-security      Show secure port information
    
      privilege          Show current privilege level
    
      processes          Active process statistics
    
      running-config     Current operating configuration
    
      sessions           Information about Telnet connections
    
      snmp               snmp statistics
    
      spanning-tree      Spanning tree topology
    
      startup-config     Contents of startup configuration
    
      storm-control      Show storm control configuration
    
      tcp                Status of TCP connections
    
      tech-support       Show system information for Tech-Support
    
      terminal           Display terminal configuration parameters
    
      users              Display information about terminal lines
    
      version            System hardware and software status
    
      vlan               VTP VLAN status
    
      vtp                VTP information
    
    Switch#show
    
    % Incomplete command.
    
    Switch#show ver
    
    Switch#show ver
    
    Switch#show version
    
    Cisco Internetwork Operating System Software
    
    IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(22)EA4, RELEASE SOFTWARE(fc1)
    
    Copyright (c) 1986-2005 by cisco Systems, Inc.
    
    Compiled Wed 18-May-05 22:31 by jharirba
    
    Image text-base: 0x80010000, data-base: 0x80562000
    
    
    
    ROM: Bootstrap program is is C2950 boot loader
    
    
    
    Switch uptime is 18 minutes, 40 seconds
    
    System returned to ROM by power-on
    
    
    
    Cisco WS-C2950T-24 (RC32300) processor (revision C0) with 21039K bytes of memory.
    
    Processor board ID FHK0610Z0WC
    
    Last reset from system-reset
    
    Running Standard Image
    
    24 FastEthernet/IEEE 802.3 interface(s)
    
    2 Gigabit Ethernet/IEEE 802.3 interface(s)
    
    
    
    63488K bytes of flash-simulated non-volatile configuration memory.
    
    Base ethernet MAC Address: 0000.0CA6.0443
    
    Motherboard assembly number: 73-5781-09
    
    Power supply part number: 34-0965-01
    
    Motherboard serial number: FOC061004SZ
    
    Power supply serial number: DAB0609127D
    
    Model revision number: C0
    
    Motherboard revision number: A0
    
    Model number: WS-C2950T-24
    
    System serial number: FHK0610Z0WC
    
    Configuration register is 0xF
    
    
    
    Switch#
    
    Switch#
    
    Switch#show mac
    
    Switch#show mac-address-table
    
              Mac Address Table
    
    -------------------------------------------
    
    
    
    Vlan    Mac Address       Type        Ports
    
    ----    -----------       --------    -----
    
    
    
    Switch#
    
    Switch#
    
    Switch#show fla
    
    Switch#show flash:
    
    Directory of flash:/
    
    
    
        1  -rw-     3058048          <no date>  c2950-i6q4l2-mz.121-22.EA4.bin
    
    
    
    64016384 bytes total (60958336 bytes free)
    
    Switch#
    
    Switch#
    
    Switch#conf
    
    Switch#configure t
    
    Switch#configure terminal
    
    Enter configuration commands, one per line.  End with CNTL/Z.
    
    Switch(config)#show ?
    
    % Unrecognized command
    
    Switch(config)#show exit
    
                    ^
    
    % Invalid input detected at '^' marker.
    
    
    
    Switch(config)#exit
    
    Switch#
    
    %SYS-5-CONFIG_I: Configured from console by console
    
    
    
    Switch#conf
    
    Switch#configure t
    
    Switch#configure terminal
    
    Enter configuration commands, one per line.  End with CNTL/Z.
    
    Switch(config)#hostn
    
    Switch(config)#hostname 0129my
    
    0129my(config)#inter
    
    0129my(config)#interface f0/1
    
    0129my(config-if)#speed 100
    
    0129my(config-if)#speed 10
    
    0129my(config-if)#speed aute
    
                               ^
    
    % Invalid input detected at '^' marker.
    
    
    
    0129my(config-if)#spe
    
    0129my(config-if)#speed su
    
    0129my(config-if)#speed au
    
    0129my(config-if)#speed auto
    
    0129my(config-if)#sp
    
    0129my(config-if)#spe
    
    0129my(config-if)#speed 10
    
    0129my(config-if)#spee
    
    0129my(config-if)#speed a
    
    0129my(config-if)#spee
    
    0129my(config-if)#speed au
    
    0129my(config-if)#speed auto
    
    0129my(config-if)#exit
    
    0129my(config)#vlan 5 n
    
                          ^
    
    % Invalid input detected at '^' marker.
    
    
    
    0129my(config)#vla
    
    0129my(config)#vlan 5 n
    
                          ^
    
    % Invalid input detected at '^' marker.
    
    
    
    0129my(config)#vl
    
    0129my(config)#vlan 5
    
    0129my(config-vlan)#name 12
    
    0129my(config-vlan)#exit
    
    0129my(config)#vla
    
    0129my(config)#vlan 10
    
    0129my(config-vlan)#name 345
    
    0129my(config-vlan)#exit
    
    0129my(config)#inter
    
    0129my(config)#interface fast
    
    0129my(config)#interface fastEthernet0/1
    
    0129my(config-if)#swi
    
    0129my(config-if)#switchport acc
    
    0129my(config-if)#switchport access vlan 5
    
    0129my(config-if)#exit
    
    0129my(config)#inter
    
    0129my(config)#interface fast
    
    0129my(config)#interface fastEthernet0/2
    
    0129my(config-if)#sw
    
    0129my(config-if)#switchport acc
    
    0129my(config-if)#switchport access vlan 5
    
    0129my(config-if)#exit
    
    0129my(config)#inter fa
    
    0129my(config)#inter fastEthernet0/3
    
    0129my(config-if)#sw
    
    0129my(config-if)#switchport acc
    
    0129my(config-if)#switchport access vlan 10
    
    0129my(config-if)#exit
    
    0129my(config)#inter
    
    0129my(config)#interface fas
    
    0129my(config)#interface fastEthernet0/4
    
    0129my(config-if)#sw
    
    0129my(config-if)#switchport acc
    
    0129my(config-if)#switchport access vlan 10
    
    0129my(config-if)#exit
    
    0129my(config)#inter
    
    0129my(config)#interface fas
    
    0129my(config)#interface fastEthernet0/5
    
    0129my(config-if)#sw
    
    0129my(config-if)#switchport ac
    
    0129my(config-if)#switchport access vlan 10
    
    0129my(config-if)#exit
    
    0129my(config)#
    
    
  • 相关阅读:
    正则表达式
    理解CPU steal time
    装饰器(带参数)
    装饰器(入门)
    递归
    冒泡算法
    Chrome for Mac键盘快捷键!来自Google Chrome官网!
    swoole深入学习 4. process
    通俗讲解 异步,非阻塞和 IO 复用
    swoole深入学习 3. upd Server和udp Client
  • 原文地址:https://www.cnblogs.com/apppointint/p/8885303.html
Copyright © 2011-2022 走看看