===== Case 1: Configuring Interface-based VLAN Assignment =====
===== CenĂ¡rio =====
{{:huawei_vlan_case1.png?600|}}
==== CE6800-CE1 ====
[~CE6800-CE1]vlan 10
[*CE6800-CE1-vlan10]quit
[*CE6800-CE1]vlan 20
[*CE6800-CE1-vlan20]quit
[*CE6800-CE1]commit
[~CE6800-CE1]interface GE 1/0/1
[~CE6800-CE1-GE1/0/1]port link-type access
[~CE6800-CE1-GE1/0/1]port default vlan 10
[*CE6800-CE1-GE1/0/1]commit
[~CE6800-CE1-GE1/0/1]quit
[~CE6800-CE1]interface GE 1/0/2
[~CE6800-CE1-GE1/0/2]port link-type access
[~CE6800-CE1-GE1/0/2]port default vlan 20
[*CE6800-CE1-GE1/0/2]commit
[~CE6800-CE1-GE1/0/2]quit
[~CE6800-CE1]interface GE 1/0/3
[~CE6800-CE1-GE1/0/3]port link-type trunk
[*CE6800-CE1-GE1/0/3]port trunk pvid vlan 1
[*CE6800-CE1-GE1/0/3]port trunk allow-pass vlan 10 20
[*CE6800-CE1-GE1/0/3]commit
[~CE6800-CE1-GE1/0/3]quit
[~CE6800-CE1]display vlan
The total number of vlans is : 3
--------------------------------------------------------------------------------
U: Up; D: Down; TG: Tagged; UT: Untagged;
MP: Vlan-mapping; ST: Vlan-stacking;
#: ProtocolTransparent-vlan; *: Management-vlan;
MAC-LRN: MAC-address learning; STAT: Statistic;
BC: Broadcast; MC: Multicast; UC: Unknown-unicast;
FWD: Forward; DSD: Discard;
--------------------------------------------------------------------------------
VID Ports
--------------------------------------------------------------------------------
1 UT:GE1/0/0(U) GE1/0/3(U) GE1/0/4(U) GE1/0/5(U)
GE1/0/6(U) GE1/0/7(U) GE1/0/8(U) GE1/0/9(U)
GE1/0/10(U) GE1/0/11(U) GE1/0/12(U) GE1/0/13(U)
GE1/0/14(U) GE1/0/15(U) GE1/0/16(U) GE1/0/17(U)
GE1/0/18(U) GE1/0/19(U) GE1/0/20(D) GE1/0/21(D)
GE1/0/22(D) GE1/0/23(D) GE1/0/24(D) GE1/0/25(D)
GE1/0/26(D) GE1/0/27(D) GE1/0/28(D) GE1/0/29(D)
GE1/0/30(D) GE1/0/31(D) GE1/0/32(D) GE1/0/33(D)
GE1/0/34(D) GE1/0/35(D) GE1/0/36(D) GE1/0/37(D)
GE1/0/38(D) GE1/0/39(D) GE1/0/40(D) GE1/0/41(D)
GE1/0/42(D) GE1/0/43(D) GE1/0/44(D) GE1/0/45(D)
GE1/0/46(D) GE1/0/47(D)
10 UT:GE1/0/1(U)
TG:GE1/0/3(U)
20 UT:GE1/0/2(U)
TG:GE1/0/3(U)
VID Type Status Property MAC-LRN STAT BC MC UC Description
--------------------------------------------------------------------------------
1 common enable default enable disable FWD FWD FWD VLAN 0001
10 common enable default enable disable FWD FWD FWD VLAN 0010
20 common enable default enable disable FWD FWD FWD VLAN 0020
[~CE6800-CE1]display current-configuration interface GE 1/0/1
#
interface GE1/0/1
undo shutdown
port default vlan 10
#
return
[~CE6800-CE1]display current-configuration interface GE 1/0/2
#
interface GE1/0/2
undo shutdown
port default vlan 20
#
return
[~CE6800-CE1]display current-configuration interface GE 1/0/3
#
interface GE1/0/3
undo shutdown
port link-type trunk
port trunk allow-pass vlan 10 20
#
return
==== CE6800-CE2 ====
[~CE6800-CE2]vlan batch 10 20
[~CE6800-CE2]interface GE 1/0/1
[~CE6800-CE2-GE1/0/1]port link-type access
[~CE6800-CE2-GE1/0/1]port default vlan 10
[*CE6800-CE2-GE1/0/1]commit
[~CE6800-CE2-GE1/0/1]quit
[~CE6800-CE2]interface GE 1/0/2
[~CE6800-CE2-GE1/0/2]port link-type access
[~CE6800-CE2-GE1/0/2]port default vlan 20
[*CE6800-CE2-GE1/0/2]commit
[~CE6800-CE2-GE1/0/2]quit
[~CE6800-CE2]interface GE 1/0/3
[~CE6800-CE2-GE1/0/3]port link-type trunk
[*CE6800-CE2-GE1/0/3]port trunk pvid vlan 1
[*CE6800-CE2-GE1/0/3]port trunk allow-pass vlan 10 20
[*CE6800-CE2-GE1/0/3]commit
[~CE6800-CE2-GE1/0/3]quit
[~CE6800-CE2]display vlan
The total number of vlans is : 3
--------------------------------------------------------------------------------
U: Up; D: Down; TG: Tagged; UT: Untagged;
MP: Vlan-mapping; ST: Vlan-stacking;
#: ProtocolTransparent-vlan; *: Management-vlan;
MAC-LRN: MAC-address learning; STAT: Statistic;
BC: Broadcast; MC: Multicast; UC: Unknown-unicast;
FWD: Forward; DSD: Discard;
--------------------------------------------------------------------------------
VID Ports
--------------------------------------------------------------------------------
1 UT:GE1/0/0(U) GE1/0/3(U) GE1/0/4(U) GE1/0/5(U)
GE1/0/6(U) GE1/0/7(U) GE1/0/8(U) GE1/0/9(U)
GE1/0/10(U) GE1/0/11(U) GE1/0/12(U) GE1/0/13(U)
GE1/0/14(U) GE1/0/15(U) GE1/0/16(U) GE1/0/17(U)
GE1/0/18(U) GE1/0/19(U) GE1/0/20(D) GE1/0/21(D)
GE1/0/22(D) GE1/0/23(D) GE1/0/24(D) GE1/0/25(D)
GE1/0/26(D) GE1/0/27(D) GE1/0/28(D) GE1/0/29(D)
GE1/0/30(D) GE1/0/31(D) GE1/0/32(D) GE1/0/33(D)
GE1/0/34(D) GE1/0/35(D) GE1/0/36(D) GE1/0/37(D)
GE1/0/38(D) GE1/0/39(D) GE1/0/40(D) GE1/0/41(D)
GE1/0/42(D) GE1/0/43(D) GE1/0/44(D) GE1/0/45(D)
GE1/0/46(D) GE1/0/47(D)
10 UT:GE1/0/1(U)
TG:GE1/0/3(U)
20 UT:GE1/0/2(U)
TG:GE1/0/3(U)
VID Type Status Property MAC-LRN STAT BC MC UC Description
--------------------------------------------------------------------------------
1 common enable default enable disable FWD FWD FWD VLAN 0001
10 common enable default enable disable FWD FWD FWD VLAN 0010
20 common enable default enable disable FWD FWD FWD VLAN 0020
[~CE6800-CE2]display current-configuration interface GE 1/0/1
#
interface GE1/0/1
undo shutdown
port default vlan 10
#
return
[~CE6800-CE2]display current-configuration interface GE 1/0/2
#
interface GE1/0/2
undo shutdown
port default vlan 20
#
return
[~CE6800-CE2]display current-configuration interface GE 1/0/3
#
interface GE1/0/3
undo shutdown
port link-type trunk
port trunk allow-pass vlan 10 20
#
return
==== PVC1 VLAN 10 ====
VPCS> ip 192.168.10.10 255.255.255.0
Checking for duplicate address...
VPCS : 192.168.10.10 255.255.255.0
VPCS> ping 192.168.20.20
host (255.255.255.0) not reachable
VPCS> ping 192.168.10.11
84 bytes from 192.168.10.11 icmp_seq=1 ttl=64 time=1.868 ms
84 bytes from 192.168.10.11 icmp_seq=2 ttl=64 time=2.845 ms
84 bytes from 192.168.10.11 icmp_seq=3 ttl=64 time=2.879 ms
84 bytes from 192.168.10.11 icmp_seq=4 ttl=64 time=2.793 ms
84 bytes from 192.168.10.11 icmp_seq=5 ttl=64 time=2.525 ms
==== PVC2 VLAN 10 ====
VPCS> ip 192.168.10.11 255.255.255.0
Checking for duplicate address...
VPCS : 192.168.10.11 255.255.255.0
VPCS> ping 192.168.20.21
host (255.255.255.0) not reachable
VPCS> ping 192.168.10.10
84 bytes from 192.168.10.10 icmp_seq=1 ttl=64 time=1.756 ms
84 bytes from 192.168.10.10 icmp_seq=2 ttl=64 time=2.555 ms
84 bytes from 192.168.10.10 icmp_seq=3 ttl=64 time=2.605 ms
84 bytes from 192.168.10.10 icmp_seq=4 ttl=64 time=2.470 ms
84 bytes from 192.168.10.10 icmp_seq=5 ttl=64 time=2.637 ms
==== PVC1 VLAN 20 ====
VPCS> ip 192.168.20.20 255.255.255.0
Checking for duplicate address...
VPCS : 192.168.20.20 255.255.255.0
VPCS> ping 192.168.10.11
host (255.255.255.0) not reachable
VPCS> ping 192.168.20.21
84 bytes from 192.168.20.21 icmp_seq=1 ttl=64 time=1.818 ms
84 bytes from 192.168.20.21 icmp_seq=2 ttl=64 time=2.928 ms
84 bytes from 192.168.20.21 icmp_seq=3 ttl=64 time=2.503 ms
84 bytes from 192.168.20.21 icmp_seq=4 ttl=64 time=2.642 ms
84 bytes from 192.168.20.21 icmp_seq=5 ttl=64 time=2.677 ms
==== PVC2 VLAN 20 ====
VPCS> ip 192.168.20.21 255.255.255.0
Checking for duplicate address...
VPCS : 192.168.20.21 255.255.255.0
VPCS> ping 192.168.10.10
host (255.255.255.0) not reachable
VPCS> ping 192.168.20.20
84 bytes from 192.168.20.20 icmp_seq=1 ttl=64 time=2.198 ms
84 bytes from 192.168.20.20 icmp_seq=2 ttl=64 time=2.736 ms
84 bytes from 192.168.20.20 icmp_seq=3 ttl=64 time=2.658 ms
84 bytes from 192.168.20.20 icmp_seq=4 ttl=64 time=3.087 ms
84 bytes from 192.168.20.20 icmp_seq=5 ttl=64 time=2.660 ms