Huawei - VLAN sub-interface
CenĂ¡rio
AR1000v
[AR1000v]interface GigabitEthernet 0/0/0.10
[AR1000v-GigabitEthernet0/0/0.10]dot1q termination vid 10
[AR1000v-GigabitEthernet0/0/0.10]ip address 192.168.10.254 24
[AR1000v-GigabitEthernet0/0/0.10]arp broadcast enable
[AR1000v-GigabitEthernet0/0/0.10]quit
[AR1000v]interface GigabitEthernet 0/0/0.20
[AR1000v-GigabitEthernet0/0/0.20]dot1q termination vid 20
[AR1000v-GigabitEthernet0/0/0.20]ip address 192.168.20.254 24
[AR1000v-GigabitEthernet0/0/0.20]arp broadcast enable
[AR1000v-GigabitEthernet0/0/0.20]quit
[AR1000v]display ip interface brief
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
(E): E-Trunk down
The number of interface that is UP in Physical is 10
The number of interface that is DOWN in Physical is 0
The number of interface that is UP in Protocol is 3
The number of interface that is DOWN in Protocol is 7
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 unassigned up down
GigabitEthernet0/0/0.10 192.168.10.254/24 up up
GigabitEthernet0/0/0.20 192.168.20.254/24 up up
GigabitEthernet0/0/1 unassigned up down
GigabitEthernet0/0/2 unassigned up down
GigabitEthernet0/0/3 unassigned up down
GigabitEthernet0/0/4 unassigned up down
GigabitEthernet0/0/5 unassigned up down
GigabitEthernet0/0/6 unassigned up down
NULL0 unassigned up up(s)
[AR1000v]display current-configuration interface GigabitEthernet0/0/0.10
[V300R019C00SPC300]
#
interface GigabitEthernet0/0/0.10
dot1q termination vid 10
ip address 192.168.10.254 255.255.255.0
#
return
[AR1000v]display current-configuration interface GigabitEthernet0/0/0.20
[V300R019C00SPC300]
#
interface GigabitEthernet0/0/0.20
dot1q termination vid 20
ip address 192.168.20.254 255.255.255.0
#
return
CE6800-CE
[*CE6800-CE]vlan batch 10 20
[*CE6800-CE]interface GE 1/0/0
[*CE6800-CE-GE1/0/0]port link-type trunk
[*CE6800-CE-GE1/0/0]port trunk allow-pass vlan 10 20
[*CE6800-CE-GE1/0/0]commit
[~CE6800-CE-GE1/0/0]quit
[~CE6800-CE]interface GE 1/0/10
[~CE6800-CE-GE1/0/10]port link-type access
[~CE6800-CE-GE1/0/10]port default vlan 10
[*CE6800-CE-GE1/0/10]commit
[~CE6800-CE-GE1/0/10]quit
[~CE6800-CE]interface GE 1/0/11
[~CE6800-CE-GE1/0/11]port link-type access
[~CE6800-CE-GE1/0/11]port default vlan 20
[*CE6800-CE-GE1/0/11]commit
[~CE6800-CE-GE1/0/11]quit
[~CE6800-CE]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/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/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/10(U)
TG:GE1/0/0(U)
20 UT:GE1/0/11(U)
TG:GE1/0/0(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-CE]display current-configuration interface GE 1/0/0
#
interface GE1/0/0
undo shutdown
port link-type trunk
port trunk allow-pass vlan 10 20
#
return
[~CE6800-CE]display current-configuration interface GE 1/0/10
#
interface GE1/0/10
undo shutdown
port default vlan 10
#
return
[~CE6800-CE]display current-configuration interface GE 1/0/11
#
interface GE1/0/11
undo shutdown
port default vlan 20
#
return
VPC VLAN 10
VPCS> ip 192.168.10.2 255.255.255.0 192.168.10.254
Checking for duplicate address...
VPCS : 192.168.10.2 255.255.255.0 gateway 192.168.10.254
VPC VLAN 10
VPCS> ip 192.168.20.2/24 192.168.20.254
Checking for duplicate address...
VPCS : 192.168.20.2 255.255.255.0 gateway 192.168.20.254
Testando o acesso
VPC VLAN 10
VPCS> ping 192.168.10.254
192.168.10.254 icmp_seq=1 timeout
84 bytes from 192.168.10.254 icmp_seq=2 ttl=255 time=24.424 ms
84 bytes from 192.168.10.254 icmp_seq=3 ttl=255 time=1.915 ms
84 bytes from 192.168.10.254 icmp_seq=4 ttl=255 time=1.888 ms
84 bytes from 192.168.10.254 icmp_seq=5 ttl=255 time=1.804 ms
VPCS> ping 192.168.20.254
84 bytes from 192.168.20.254 icmp_seq=1 ttl=255 time=1.772 ms
84 bytes from 192.168.20.254 icmp_seq=2 ttl=255 time=1.728 ms
84 bytes from 192.168.20.254 icmp_seq=3 ttl=255 time=1.730 ms
84 bytes from 192.168.20.254 icmp_seq=4 ttl=255 time=1.875 ms
84 bytes from 192.168.20.254 icmp_seq=5 ttl=255 time=6.569 ms
VPCS> ping 192.168.20.2
192.168.20.2 icmp_seq=1 timeout
84 bytes from 192.168.20.2 icmp_seq=2 ttl=63 time=3.534 ms
84 bytes from 192.168.20.2 icmp_seq=3 ttl=63 time=3.315 ms
84 bytes from 192.168.20.2 icmp_seq=4 ttl=63 time=2.553 ms
84 bytes from 192.168.20.2 icmp_seq=5 ttl=63 time=3.153 ms
VPC VLAN 10
VPCS> ping 192.168.20.254
84 bytes from 192.168.20.254 icmp_seq=1 ttl=255 time=2.489 ms
84 bytes from 192.168.20.254 icmp_seq=2 ttl=255 time=6.220 ms
84 bytes from 192.168.20.254 icmp_seq=3 ttl=255 time=1.731 ms
84 bytes from 192.168.20.254 icmp_seq=4 ttl=255 time=1.935 ms
84 bytes from 192.168.20.254 icmp_seq=5 ttl=255 time=1.369 ms
VPCS> ping 192.168.10.254
84 bytes from 192.168.10.254 icmp_seq=1 ttl=255 time=1.531 ms
84 bytes from 192.168.10.254 icmp_seq=2 ttl=255 time=2.032 ms
84 bytes from 192.168.10.254 icmp_seq=3 ttl=255 time=1.400 ms
84 bytes from 192.168.10.254 icmp_seq=4 ttl=255 time=1.660 ms
84 bytes from 192.168.10.254 icmp_seq=5 ttl=255 time=1.527 ms
VPCS> ping 192.168.10.2
84 bytes from 192.168.10.2 icmp_seq=1 ttl=63 time=2.913 ms
84 bytes from 192.168.10.2 icmp_seq=2 ttl=63 time=2.851 ms
84 bytes from 192.168.10.2 icmp_seq=3 ttl=63 time=2.616 ms
84 bytes from 192.168.10.2 icmp_seq=4 ttl=63 time=2.884 ms
84 bytes from 192.168.10.2 icmp_seq=5 ttl=63 time=3.146 ms