Switch Virtual Interfaces(SVI)

使用SVI实现VLAN间互访

实验拓扑

配置交换机
Switch
Switch(config)
Switch(config-if)
Switch(config-if)
Switch(config-if)
Switch(config)
Switch(config-if)
Switch(config-if)
Switch(config)
Switch(config)
Switch(config-if)
Switch(config-if)
Switch(config-if)
Switch(config)
Switch(config)
Switch(config-if)
Switch(config-if)
配置PC2和PC3
PC2
[root@PC2 /]
[root@PC2 /]
配置PC3
[root@PC3 /]
[root@PC3 /]
ping测试
[root@PC2 /]
PING 192.168.20.3 (192.168.20.3) 56(84) bytes of data.
64 bytes from 192.168.20.3: icmp_seq=1 ttl=63 time=0.470 ms
64 bytes from 192.168.20.3: icmp_seq=2 ttl=63 time=0.509 ms
64 bytes from 192.168.20.3: icmp_seq=3 ttl=63 time=0.459 ms
64 bytes from 192.168.20.3: icmp_seq=4 ttl=63 time=0.473 ms
^C
--- 192.168.20.3 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3071ms
rtt min/avg/max/mdev = 0.459/0.477/0.509/0.032 ms