实验三 vlan间路由

sys //进入系统模式
vlan 30//创建VLAN 30
vlan 40
interface gi 1/0/1 //进入接口1
port link-type access //接口模式配置为access模式
port access vlan 30 //加入vlan30
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地址和掩码

 

posted @ 2019-05-21 16:54  Jenkin88  阅读(118)  评论(1编辑  收藏  举报