两台三层交换机下同一vlan 内不同网段的主机之间的互通如下图pc1和pc2
由于主机不在同一网段,需要通过 静态协议路由配置

[A]undo info-center enable
Info: Information center is disabled.
[A]vlan batch 2 3
Info: This operation may take a few seconds. Please wait for a moment...done.
[A]int e0/0/1
[A-Ethernet0/0/1]port link-type access
[A-Ethernet0/0/1]port default vlan 2
[A-Ethernet0/0/1]q
[A]int e0/0/2
[A-Ethernet0/0/2]por
[A-Ethernet0/0/2]port link-type trunk
[A-Ethernet0/0/2]port trunk allow-pass vlan 3
[A-Ethernet0/0/2]q
[A]int Vlanif 2
[A-Vlanif2]ip address 10.1.1.1 24
[A-Vlanif2]q
[A]int Vlanif 3
[A-Vlanif3]ip ad
[A-Vlanif3]ip address 10.1.3.1 24
[A-Vlanif3]q
[A]ip route-static 10.1.2.0 255.255.255.0 10.1.3.2
[B]vlan batch 2 3
Info: This operation may take a few seconds. Please wait for a moment...done.
[B]int Vlanif 2
[B-Vlanif2]ip ad
[B-Vlanif2]ip address 10.1.2.2 24
[B-Vlanif2]q
[B]int v
[B]int Vlanif 3
[B-Vlanif3]ip ad
[B-Vlanif3]ip address 10.1.3.2 24
[B-Vlanif3]q
[B]int E0/0/1
[B-Ethernet0/0/1]port link-type access
[B-Ethernet0/0/1]port default vlan 2
[B-Ethernet0/0/1]q
[B]int e0/0/2
[B-Ethernet0/0/2]port link-type trunk
[B-Ethernet0/0/2]port trunk allow-pass vlan 3
[B-Ethernet0/0/2]q
[B]ip route-static 10.1.1.0 255.255.255.0 10.1.3.1
[B]q






