标签:mamicode 创建 VLAN间 src res com img width ddr
给主机1和主机2配置IP地址和子网掩码,在交换机创建vlan 10和vlan 20,利用access进入接口模式,在主机上配置网关
主机1:IP地址192.168.10.1子网掩码255.255.255.0网关地址192.168.10.254
主机2:IP地址192.168.20.1子网掩码255.255.255.0网关地址192.168.20.254
sys
vlan 10
vlan 20
interface gi 1/0/1
port link-type access
port access vlan 10
interface gi 1/0/2
port link-type access
port access vlan 20
interface vlan-interface 10
ip address 192.168.10.254 24
interface vlan-interface 20
ip address 192.168.20.254 24
标签:mamicode 创建 VLAN间 src res com img width ddr
原文地址:https://www.cnblogs.com/danmin/p/10861501.html