VLAN
实验1-设置单交换机VLAN
< Huawei> system-view
Enter system view, return user view with Ctrl+Z.
[ Huawei] undo info-center enable
Info: Information center is disabled.
[ Huawei] vlan 2
[ Huawei-vlan2] quit
[ Huawei] vlan ?
INTEGER< 1 -4094 > VLAN ID
batch Batch process
[ Huawei] display vlan
The total number of vlans is : 2
--------------------------------------------------------------------------------
U: Up; D: Down; TG: Tagged; UT: Untagged;
MP: Vlan-mapping; ST: Vlan-stacking;
--------------------------------------------------------------------------------
VID Type Ports
--------------------------------------------------------------------------------
1 common UT:Eth0/0/1( U) Eth0/0/2( U) Eth0/0/3( U) Eth0/0/4( U)
Eth0/0/5( D) Eth0/0/6( D) Eth0/0/7( D) Eth0/0/8( D)
Eth0/0/9( D) Eth0/0/10( D) Eth0/0/11( D) Eth0/0/12( D)
Eth0/0/13( D) Eth0/0/14( D) Eth0/0/15( D) Eth0/0/16( D)
Eth0/0/17( D) Eth0/0/18( D) Eth0/0/19( D) Eth0/0/20( D)
Eth0/0/21( D) Eth0/0/22( D) GE0/0/1( D) GE0/0/2( D)
2 common
VID Status Property MAC-LRN Statistics Description
--------------------------------------------------------------------------------
1 enable default enable disable VLAN 0001
2 enable default enable disable VLAN 0002
[ Huawei] vlan 3
[ Huawei-vlan3] vlan 4
[ Huawei-vlan4] quit
[ Huawei] undo vlan 4
[ Huawei] display vlan
The total number of vlans is : 3
--------------------------------------------------------------------------------
U: Up; D: Down; TG: Tagged; UT: Untagged;
MP: Vlan-mapping; ST: Vlan-stacking;
--------------------------------------------------------------------------------
VID Type Ports
--------------------------------------------------------------------------------
1 common UT:Eth0/0/1( U) Eth0/0/2( U) Eth0/0/3( U) Eth0/0/4( U)
Eth0/0/5( D) Eth0/0/6( D) Eth0/0/7( D) Eth0/0/8( D)
Eth0/0/9( D) Eth0/0/10( D) Eth0/0/11( D) Eth0/0/12( D)
Eth0/0/13( D) Eth0/0/14( D) Eth0/0/15( D) Eth0/0/16( D)
Eth0/0/17( D) Eth0/0/18( D) Eth0/0/19( D) Eth0/0/20( D)
Eth0/0/21( D) Eth0/0/22( D) GE0/0/1( D) GE0/0/2( D)
2 common
3 common
VID Status Property MAC-LRN Statistics Description
--------------------------------------------------------------------------------
1 enable default enable disable VLAN 0001
2 enable default enable disable VLAN 0002
3 enable default enable disable VLAN 0003
[ Huawei] interface ethernet 0 /0/1
[ Huawei-Ethernet0/0/1] port link-type access
[ Huawei-Ethernet0/0/1] port default vlan 2
[ Huawei] interface ethernet 0 /0/2
[ Huawei-Ethernet0/0/2] port link-type access
[ Huawei-Ethernet0/0/2] port default vlan 2
[ Huawei-Ethernet0/0/2] display vlan
The total number of vlans is : 3
--------------------------------------------------------------------------------
U: Up; D: Down; TG: Tagged; UT: Untagged;
MP: Vlan-mapping; ST: Vlan-stacking;
--------------------------------------------------------------------------------
VID Type Ports
--------------------------------------------------------------------------------
1 common UT:Eth0/0/3( U) Eth0/0/4( U) Eth0/0/5( D) Eth0/0/6( D)
Eth0/0/7( D) Eth0/0/8( D) Eth0/0/9( D) Eth0/0/10( D)
Eth0/0/11( D) Eth0/0/12( D) Eth0/0/13( D) Eth0/0/14( D)
Eth0/0/15( D) Eth0/0/16( D) Eth0/0/17( D) Eth0/0/18( D)
Eth0/0/19( D) Eth0/0/20( D) Eth0/0/21( D) Eth0/0/22( D)
GE0/0/1( D) GE0/0/2( D)
2 common UT:Eth0/0/1( U) Eth0/0/2( U)
3 common
VID Status Property MAC-LRN Statistics Description
--------------------------------------------------------------------------------
1 enable default enable disable VLAN 0001
2 enable default enable disable VLAN 0002
3 enable default enable disable VLAN 0003