8.5 利用三层交换机实现VLAN间路由
最终配置<S1>display current-configuration
#
sysname S1
#
VLAN batch 10 20
#
interface VLANif10
ip address 192.168.1.254 255.255.255.0
#
interface VLANif20
ip address 192.168.2.254 255.255.255.0
#
interface GigabitEthernet0/0/1
port link-type access
port default VLAN 10
#
interface GigabitEthernet0/0/2
port link-type access
port default VLAN 10
#
interface GigabitEthernet0/0/3
port link-type access
port default VLAN 20
#
interface GigabitEthernet0/0/4
port link-type access
port default VLAN 10
#
return
——·扫描下方微信二维码,回复“HCNA手册”。即可领取完整电子版手册或为你答疑解惑。·——
|