实验3vlan间路由

实验三vlan间路由

 主机1配置ip地址192.168.30.1 主机2的ip地址192.168.40.1

创建vlan30和40,让主机1在vlan 30,主机2在vlan40。之后进入接口30和40

sys
vlan 30
vlan 40
interface gi 1/0/1
port link-type access 
port access vlan 30
interface gi 1/0/1
port link-type access 
port access vlan 40
interface vlan-interface 30
ip address 192.168.30.254 24
interface vlan-interface 40
ip address 192.168.40.254 24     //配置ip地址和掩码

猜你喜欢

转载自www.cnblogs.com/clm-1805/p/10899692.html