码迷,mamicode.com
首页 > 其他好文 > 详细

单臂路由

时间:2019-11-24 13:26:01      阅读:69      评论:0      收藏:0      [点我收藏+]

标签:交换机   run   address   vlan   type   val   res   路由器   perm   

sys

valn 10

vlan 20

int g 1/01

port link-type access 

port access vlan 10

int g1/0/2

port link-type access

port access vlan 10

int g1/0/3

port link-type access

port access vlan 20

int g 1/0/4

port link-type access

port access vlan 20

qu

int g 1/0/48

port link-type trunk 

port trunk permit vlan 10 20

右边交换机:

sys

vlan 10

vlan 20

int g1/0/1

port link-type access 

port access vlan 10

int g1/0/2

port link-type access

port access vlan 20

qu

int g 1/0/48

port link-type trunk

port trunk permit vlan 10 20

上面交换机:

sys

vlan 10 

vlan 20

int range g1/0/1 to 1/0/2

port link-type trunk

port trunk permit vlan 10 20

int g1/0/48

port link-type trunk 

port trunk permit vlan 10 20

路由器:

sys

int g0/0.10

vlan-type dot1q vid 10

ip address 192.168.10.254 24

int g 0/0.20

vlan-type dot1q vid 20

ip add 192.168.20.254 24

单臂路由

标签:交换机   run   address   vlan   type   val   res   路由器   perm   

原文地址:https://www.cnblogs.com/luojing123/p/11922060.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!