概述
网络拓扑图
配置
路由器R1:
interface Ethernet0/0/0.2
dot1q termination vid 2
ip address 192.168.2.254 255.255.255.0
arp broadcast enable
interface Ethernet0/0/0.3
dot1q termination vid 3
ip address 192.168.3.254 255.255.255.0
arp broadcast enable
配置交换机:
interface Ethernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 3
interface Ethernet0/0/2
port link-type access
port default vlan 2
interface Ethernet0/0/3
port link-type access
port default vlan 3
连通性测试
分段测试法