Académique Documents
Professionnel Documents
Culture Documents
Copyright © 2016 Huawei Technologies Co., Ltd. All rights reserved. Page 2
Objectives
Explain how VLAN routing is achieved for layer 2 & layer 3 switches.
Copyright © 2016 Huawei Technologies Co., Ltd. All rights reserved. Page 3
VLAN Disadvantages
SWA
Copyright © 2016 Huawei Technologies Co., Ltd. All rights reserved. Page 4
VLAN Routing
RTA
SWA
Host A Host B
VLAN 2 VLAN 3
VLAN frames are routed over a trunk link for port conservation.
Copyright © 2016 Huawei Technologies Co., Ltd. All rights reserved. Page 5
VLAN Routing Features
RTA
G0/0/1.1 G0/0/1.2
192.168.2.254 192.168.3.254
VLAN Trunk
SWA
Host A Host B
GW:192.168.2.254 GW:192.168.3.254
VLAN 2 VLAN 3
Copyright © 2016 Huawei Technologies Co., Ltd. All rights reserved. Page 6
VLAN Routing Configuration
VLAN 2 G0/0/3
G0/0/1
Host B
192.168.3.1/24
[SWA]vlan batch 2 3
[SWA-GigabitEthernet0/0/1]port link-type access
[SWA-GigabitEthernet0/0/1]port default vlan 2
[SWA-GigabitEthernet0/0/2]port link-type access
[SWA-GigabitEthernet0/0/2]port default vlan 3
[SWA-GigabitEthernet0/0/3]port link-type trunk
[SWA-GigabitEthernet0/0/3]port trunk allow-pass vlan all
Copyright © 2016 Huawei Technologies Co., Ltd. All rights reserved. Page 7
VLAN Routing Configuration
Host B
192.168.3.1/24
[RTA]interface GigabitEthernet0/0/1.1
[RTA-GigabitEthernet0/0/1.1]dot1q termination vid 2
[RTA-GigabitEthernet0/0/1.1]ip address 192.168.2.254 24
[RTA-GigabitEthernet0/0/1.1]arp broadcast enable
[RTA]interface GigabitEthernet0/0/1.2
[RTA-GigabitEthernet0/0/1.2]dot1q termination vid 3
[RTA-GigabitEthernet0/0/1.2]ip address 192.168.3.254 24
[RTA-GigabitEthernet0/0/1.2]arp broadcast enable
Copyright © 2016 Huawei Technologies Co., Ltd. All rights reserved. Page 8
VLAN Routing Configuration
HostA>ping 192.168.3.1
Copyright © 2016 Huawei Technologies Co., Ltd. All rights reserved. Page 9
L3 Switch based VLAN Routing
SWA
VLANIF 2: 192.168.2.254/24
VLANIF 3: 192.168.3.254/24
VLAN 2 VLAN 3
Copyright © 2016 Huawei Technologies Co., Ltd. All rights reserved. Page 10
L3 Switch Configuration
SWA
VLANIF 2: 192.168.2.254/24
VLANIF 3: 192.168.3.254/24
G0/0/1 G0/0/2
VLAN 2 VLAN 3
Host A Host B
192.168.2.2/24 192.168.3.2/24
[SWA]vlan batch 2 3
[SWA]interface GigabitEthernet 0/0/1
[SWA-GigabitEthernet0/0/1]port link-type access
[SWA-GigabitEthernet0/0/1]port default vlan 2
[SWA]interface GigabitEthernet 0/0/2
[SWA-GigabitEthernet0/0/2]port link-type access
[SWA-GigabitEthernet0/0/2]port default vlan 3
Copyright © 2016 Huawei Technologies Co., Ltd. All rights reserved. Page 11
L3 Switch Configuration
SWA
VLANIF 2: 192.168.2.254/24
VLANIF 3: 192.168.3.254/24
G0/0/1 G0/0/2
VLAN 2 VLAN 3
Host A Host B
192.168.2.2/24 192.168.3.2/24
[SWA]interface vlanif 2
[SWA-Vlanif2]ip address 192.168.2.254 24
[SWA-Vlanif2]quit
[SWA]interface vlanif 3
[SWA-Vlanif3]ip address 192.168.3.254 24
[SWA-Vlanif3]quit
Copyright © 2016 Huawei Technologies Co., Ltd. All rights reserved. Page 12
Summary
Copyright © 2016 Huawei Technologies Co., Ltd. All rights reserved. Page 13
Thank you
www.huawei.com