单臂路由拓扑图:
PC配置:
PC1
192.168.1.1
255.255.255.0
192.168.1.254
PC3
192.168.2.1
255.255.255.0
192.168.2.254
配置单臂路由:
LSW1
sys
sysname SW1
vlan batch 10 20
int e0/0/1
port link-ytpe access
port default vlan 10
int e0/0/2
port link-ytpe access
port default vlan 10
int e0/0/3
port link-ytpe access
port default vlan 20
int e0/0/4
port link-ytpe access
port default vlan 20
int e0/0/5
port link-ytpe access
port default vlan 10
int e0/0/6
port link-ytpe access
port default vlan 20
dis cur
int e0/0/22
port link-type trunk
port trunk allow-pass vlan all
R1
sys
sysname R1
int g0/0/1
ip address 192.168.1.254 24
dotlq termination vid 10
arp broadcast enable
dis this
int g0/0/2
ip address 192.168.2.254 24
dotlq termination vid 20
arp broadcast enable
dis this
PC1 ping PC3:
ping 192.168.2.1