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

单臂路由实验

时间:2019-11-26 19:11:59      阅读:81      评论:0      收藏:0      [点我收藏+]

标签:int   mit   perm   vlan   val   路由器   dot1q   交换机   lan   

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

单臂路由实验

标签:int   mit   perm   vlan   val   路由器   dot1q   交换机   lan   

原文地址:https://www.cnblogs.com/wdn135468/p/11937372.html

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