两台交换机不同网络段的主机通过两台交换机进行互访?Topo 如下
实现192.168.10.10 与192.168.11.10 、192.168.13.10 互通
###在SW3 上配置
### SW3 上配置
vlan batch 10 13 100
#
interface Vlanif10
ip address 192.168.10.1 255.255.255.0
#
interface Vlanif13
ip address 192.168.13.1 255.255.255.0
#
interface Vlanif100
ip address 192.168.100.1 255.255.255.0
#
interface GigabitEthernet0/0/2
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 100
#
interface GigabitEthernet0/0/3
port link-type access
port default vlan 10
#
interface GigabitEthernet0/0/4
port link-type access
port default vlan 13
###SW5 配置
vlan batch 11 12 100
#
interface Vlanif11
ip address 192.168.11.1 255.255.255.0
#
interface Vlanif12
ip address 192.168.12.1 255.255.25