用华为模拟器的hybrid做三层交换
一.拓扑图。
二.实验器材。
四台笔记本Laptop、两台交换机S700、一台三层交换S5700。
三.实验步骤。
Sw1
<Huawei>system-view
[Huawei]vlan 10
[Huawei-vlan10]vlan 20
[Huawei-vlan20]int e0/0/1
[Huawei-Ethernet0/0/1]port hybrid pvid vlan 10
[Huawei-Ethernet0/0/1]port hybrid untagged vlan 10
[Huawei-Ethernet0/0/1]int e0/0/2
[Huawei-Ethernet0/0/2]port hybrid pvid vlan 20
[Huawei-Ethernet0/0/2]port hybrid untagged vlan 20
[Huawei-Ethernet0/0/2]int e0/0/22
[Huawei-Ethernet0/0/22]port hybrid tagged vlan 10 20
Sw2
<Huawei>system-view
[Huawei]vlan 10
[Huawei-vlan10]vlan 20
[Huawei-vlan20]int e0/0/3
[Huawei-Ethernet0/0/3]port hybrid pvid vlan 10
[Huawei-Ethernet0/0/3]port hybrid untagged vlan 10
[Huawei-Ethernet0/0/3]int e0/0/4
[Huawei-Ethernet0/0/4]port hybrid pvid vlan 20
[Huawei-Ethernet0/0/4]port hybrid untagged vlan 20
[Huawei-Ethernet0/0/4]int e0/0/22
[Huawei-Ethernet0/0/22]port hybrid tagged vlan 10 20
Sw3
<Huawei>system-view
[Huawei]vlan 10
[Huawei-vlan10]vlan 20
[Huawei-vlan20]int vlan 10
[Huawei-Vlanif10]ip add 192.168.10.1 24
[Huawei-Vlanif10]un shut
[Huawei-Vlanif10]int vlan 20
[Huawei-Vlanif20]ip add 192.168.20.1 24
[Huawei-Vlanif20]un shut
[Huawei-Vlanif20]int g0/0/1
[Huawei-GigabitEthernet0/0/1]port hybrid tagged vlan 10 20
[Huawei-GigabitEthernet0/0/1]int g0/0/2
[Huawei-GigabitEthernet0/0/2]port hybrid tagged vlan 10 20
拼。
拼自己的网关。说明三层交换没问题。
拼各pc成员。能通,说明做三层交换没问题。