You are on page 1of 9

T

Dot1q Configuration

www.huawei.com

HUAWEI TECHNOLOGIES CO., LTD. All rights reserved


Using VLAN Trunking
Configure two ports connecting switch and router as VLAN
Trunking, so that multiple VLANs in the network can share one
physical link.

VLAN 300

Ethernet0.300
Ethernet0.200
VLAN 200 Trunk Ethernet0.100

VLAN 100
T

HUAWEI TECHNOLOGIES CO., LTD.. All rights reserved Page 2


Standalone Routing Configuration

IP:192.168.20.30
VLAN 200 GW:192.168.20.1

SWA RTA
Port 24
Port 2 Trunk Ethernet0/1

Port 1

VLAN 100

T
IP:192.168.10.10
GW:192.168.10.1

HUAWEI TECHNOLOGIES CO., LTD.. All rights reserved Page 3


Standalone Routing Configuration—Switch
Configuration

SWA RTA
Port 24
Trunk Ethernet0/1

[SWA]vlan 100
[SWA-vlan100]port ethernet 0/1
[SWA]vlan 200
[SWA-vlan200]port ethernet 0/2
[SWA]interface ethernet 0/24
[SWA-Ethernet0/24]port link-type trunk
[SWA-Ethernet0/24]port trunk allow-pass vlan 100 200
[SWA-Ethernet0/24]undo port trunk allow-pass vlan 1
T

HUAWEI TECHNOLOGIES CO., LTD.. All rights reserved Page 4


L3 Switch Configuration—Switch Configuration
SWA

[SWA]interface vlanif 100


[SWA-Vlan-interface100]ip add 192.168.10.2 255.255.255.0 create L3 interface of
[SWA]interface vlanif 200 VLAN
[SWA-Vlan-interface200]ip add 192.168.20.2 255.255.255.0

HUAWEI TECHNOLOGIES CO., LTD.. All rights reserved Page 5


Standalone Routing Configuration—Router
Configuration

SWA RTA
Port 24
Trunk Ethernet0/1

[RTA]interface ethernet 0/1.1


[RTA-Ethernet0/1.1]vlan dot1q vid 100
[RTA-Ethernet0/1.1]ip address 192.168.10.1 255.255.255.0
[RTA]interface ethernet 0/1.2
[RTA-Ethernet0/1.2]vlan dot1q vid 200
[RTA-Ethernet0/1.2]ip address 192.168.20.1 255.255.255.0
T

HUAWEI TECHNOLOGIES CO., LTD.. All rights reserved Page 6


Standalone Routing Configuration—Detect Connectivity

The host 192.168.10.10 in VLAN100 ping the host 192.168.20.20 in


VLAN200
C:\>ping 192.168.20.20

Pinging 192.168.20.20 with 32 bytes of data:

Reply from 192.168.20.20: bytes=32 time=2ms TTL=254


Reply from 192.168.20.20: bytes=32 time=1ms TTL=254
Reply from 192.168.20.20: bytes=32 time=1ms TTL=254
Reply from 192.168.20.20: bytes=32 time=1ms TTL=254

Ping statistics for 192.168.20.20:


Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
T
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 2ms, Average = 1ms

HUAWEI TECHNOLOGIES CO., LTD.. All rights reserved Page 7


Dot1q Router to Router Configuration

RTA RTB
Ethernet0/1

Ethernet0/1

[RTA]interface ethernet 0/1.1


[RTA-Ethernet0/1.1]vlan dot1q vid 100
[RTA-Ethernet0/1.1]ip address 192.168.100.1 255.255.255.252
[RTA]interface ethernet 0/1.2
[RTA-Ethernet0/1.2]vlan dot1q vid 200
[RTA-Ethernet0/1.2]ip address 192.168.200.1 255.255.255.252

[RTB]interface ethernet 0/1.1


[RTB-Ethernet0/1.1]vlan dot1q vid 100
[RTB-Ethernet0/1.1]ip address 192.168.100.2 255.255.255.252
[RTB]interface ethernet 0/1.2 T
[RTB-Ethernet0/1.2]vlan dot1q vid 200
[RTB-Ethernet0/1.2]ip address 192.168.200.2 255.255.255.252

HUAWEI TECHNOLOGIES CO., LTD.. All rights reserved Page 8


Thank You
www.huawei.com

You might also like