ܼ

Catalyst 2950-8TؤVLAN㡣
VLANϰʲ߷פȤ롣

VLAN⡼ݡȥ١VLAN
VLAN2
VLAN10Fe1-4
VLAN20Fe5-8

  • enable⡼ɤ饳ե⡼ɤڤؤ
    Catalyst>en
    ڥѥϡ
    Catalyst#conf t
    Catalyst(config)#
  • VLAN(VLAN 10)
    Catalyst(config)#vlan 10
    Catalyst(config-vlan)#name VLAN_10
    Catalyst(config-vlan)#exit
  • 󥿡եγ(Fe1 4)
    Catalyst(config)#interface fastEthernet 0/1
    Catalyst(config-if)#switchport mode access
    Catalyst(config-if)#switchport access vlan 10
    Catalyst(config-if)#exit
    
    Catalyst(config)#interface fastEthernet 0/2
    Catalyst(config-if)#switchport mode access
    Catalyst(config-if)#switchport access vlan 10
    Catalyst(config-if)#exit
    
    Catalyst(config)#interface fastEthernet 0/3
    Catalyst(config-if)#switchport mode access
    Catalyst(config-if)#switchport access vlan 10
    Catalyst(config-if)#exit
    
    Catalyst(config)#interface fastEthernet 0/4
    Catalyst(config-if)#switchport mode access
    Catalyst(config-if)#switchport access vlan 10
    Catalyst(config-if)#exit
  • VLAN(VLAN 20)
    Catalyst(config)#vlan 20
    Catalyst(config-vlan)#name VLAN_20
    Catalyst(config-vlan)#exit
  • 󥿡եγ(Fe5 8)
    Catalyst(config)#interface fastEthernet 0/5
    Catalyst(config-if)#switchport mode access
    Catalyst(config-if)#switchport access vlan 10
    Catalyst(config-if)#exit
    
    Catalyst(config)#interface fastEthernet 0/6
    Catalyst(config-if)#switchport mode access
    Catalyst(config-if)#switchport access vlan 10
    Catalyst(config-if)#exit
    
    Catalyst(config)#interface fastEthernet 0/7
    Catalyst(config-if)#switchport mode access
    Catalyst(config-if)#switchport access vlan 10
    Catalyst(config-if)#exit
    
    Catalyst(config)#interface fastEthernet 0/8
    Catalyst(config-if)#switchport mode access
    Catalyst(config-if)#switchport access vlan 10
    Catalyst(config-if)#exit
  • ֤ǧ
    Catalyst#show vlan
    
    VLAN Name Status  Ports
    ---- --------------- --------- -------------------------
    1default          active 
    10 VLAN_10          active Fa0/1, Fa0/2,Fa0/3, Fa0/4
    20 VLAN_20          active Fa0/5, Fa0/6,Fa0/7, Fa0/8
    1002 fddi-default       active
    1003 token-ring-default active
    1004 fddinet-default    active
    1005 trnet-default      active

ȥå   Խ ʬ ʎގ̎ ź ʣ ̾ѹ   ǽ   إ   ǽRSS
Last-modified: 2010-06-15 () 15:59:20 (4443d)