wikiv2:huawei_vlan_hybrid
Table of Contents
Huawei - VLAN Hybrid
Cenário
CE6800-CE1
[~CE6800-CE1]vlan batch 10 20 100
[*CE6800-CE1]interface GE 1/0/1 [*CE6800-CE1-GE1/0/1]port link-type hybrid [*CE6800-CE1-GE1/0/1]port hybrid pvid vlan 10 [*CE6800-CE1-GE1/0/1]port hybrid untagged vlan 10 100 [*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 hybrid [*CE6800-CE1-GE1/0/2]port hybrid pvid vlan 20 [*CE6800-CE1-GE1/0/2]port hybrid untagged vlan 20 100 [*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 hybrid [*CE6800-CE1-GE1/0/3]port hybrid tagged vlan 10 20 100 [*CE6800-CE1-GE1/0/3]commit
[~CE6800-CE1-GE1/0/3]display vlan The total number of vlans is : 4 -------------------------------------------------------------------------------- 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/1(U) GE1/0/2(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) 100 UT:GE1/0/1(U) 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 100 common enable default enable disable FWD FWD FWD VLAN 0100
[~CE6800-CE1-GE1/0/3]display current-configuration interface GE 1/0/1 # interface GE1/0/1 undo shutdown port link-type hybrid port hybrid pvid vlan 10 port hybrid untagged vlan 10 100 # return
[~CE6800-CE1-GE1/0/3]display current-configuration interface GE 1/0/2 # interface GE1/0/2 undo shutdown port link-type hybrid port hybrid pvid vlan 20 port hybrid untagged vlan 20 100 # return
[~CE6800-CE1-GE1/0/3]display current-configuration interface GE 1/0/3 # interface GE1/0/3 undo shutdown port link-type hybrid port hybrid tagged vlan 10 20 100 # return
CE6800-CE2
[*CE6800-CE2]vlan batch 10 20 100
[~CE6800-CE2]interface GE 1/0/1 [~CE6800-CE2-GE1/0/1]port link-type hybrid [*CE6800-CE2-GE1/0/1]port hybrid pvid vlan 100 [*CE6800-CE2-GE1/0/1]port hybrid untagged vlan 10 20 100 [*CE6800-CE2-GE1/0/1]commit [~CE6800-CE2-GE1/0/1]quit
[~CE6800-CE2]interface GE 1/0/3 [~CE6800-CE2-GE1/0/3]port link-type hybrid [*CE6800-CE2-GE1/0/3]port hybrid tagged vlan 10 20 100 [*CE6800-CE2-GE1/0/3]commit [~CE6800-CE2-GE1/0/3]quit
[~CE6800-CE2]display vlan The total number of vlans is : 4 -------------------------------------------------------------------------------- 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/1(U) GE1/0/2(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/1(U) TG:GE1/0/3(U) 100 UT:GE1/0/1(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 100 common enable default enable disable FWD FWD FWD VLAN 0100
[~CE6800-CE2]display current-configuration interface GE 1/0/1 # interface GE1/0/1 undo shutdown port link-type hybrid port hybrid pvid vlan 100 port hybrid untagged vlan 10 20 100 # return
[~CE6800-CE2]display current-configuration interface GE 1/0/3 # interface GE1/0/3 undo shutdown port link-type hybrid port hybrid tagged vlan 10 20 100 # return
PVC VLAN 10
VPCS> ip 192.168.1.10 255.255.255.0 Checking for duplicate address... VPCS : 192.168.1.10 255.255.255.0
PVC VLAN 20
VPCS> ip 192.168.1.20/24 Checking for duplicate address... VPCS : 192.168.1.20 255.255.255.0
PVC VLAN 100
VPCS> ip 192.168.1.100/24 Checking for duplicate address... VPCS : 192.168.1.100 255.255.255.0
Testando a comunicação
PVC VLAN 10
VPCS> ping 192.168.1.20 host (192.168.1.20) not reachable
VPCS> ping 192.168.1.100 84 bytes from 192.168.1.100 icmp_seq=1 ttl=64 time=2.543 ms 84 bytes from 192.168.1.100 icmp_seq=2 ttl=64 time=2.641 ms 84 bytes from 192.168.1.100 icmp_seq=3 ttl=64 time=2.546 ms 84 bytes from 192.168.1.100 icmp_seq=4 ttl=64 time=2.419 ms 84 bytes from 192.168.1.100 icmp_seq=5 ttl=64 time=3.004 ms
PVC VLAN 20
VPCS> ping 192.168.1.10 host (192.168.1.10) not reachable
VPCS> ping 192.168.1.100 84 bytes from 192.168.1.100 icmp_seq=1 ttl=64 time=2.538 ms 84 bytes from 192.168.1.100 icmp_seq=2 ttl=64 time=2.660 ms 84 bytes from 192.168.1.100 icmp_seq=3 ttl=64 time=2.786 ms 84 bytes from 192.168.1.100 icmp_seq=4 ttl=64 time=2.469 ms 84 bytes from 192.168.1.100 icmp_seq=5 ttl=64 time=2.402 ms
PVC VLAN 100
VPCS> ping 192.168.1.10 84 bytes from 192.168.1.10 icmp_seq=1 ttl=64 time=2.459 ms 84 bytes from 192.168.1.10 icmp_seq=2 ttl=64 time=2.647 ms 84 bytes from 192.168.1.10 icmp_seq=3 ttl=64 time=2.564 ms 84 bytes from 192.168.1.10 icmp_seq=4 ttl=64 time=2.363 ms 84 bytes from 192.168.1.10 icmp_seq=5 ttl=64 time=2.344 ms
VPCS> ping 192.168.1.20 84 bytes from 192.168.1.20 icmp_seq=1 ttl=64 time=2.027 ms 84 bytes from 192.168.1.20 icmp_seq=2 ttl=64 time=2.305 ms 84 bytes from 192.168.1.20 icmp_seq=3 ttl=64 time=2.830 ms 84 bytes from 192.168.1.20 icmp_seq=4 ttl=64 time=2.645 ms 84 bytes from 192.168.1.20 icmp_seq=5 ttl=64 time=2.647 ms
wikiv2/huawei_vlan_hybrid.txt · Last modified: by 127.0.0.1

