欢迎来到代码驿站!

当前位置:首页 >

VLAN 之间的访问控制

时间:2020-12-21 18:57:22|栏目:|点击:
 

路由器通过以太网的子口建立与下连交换机TRUNK口相连。

要求管理VLAN可以访问其它业务VLAN、办公VLAN、财务VLAN、家庭网VLAN,但是其它VLAN不可以访问管理VLAN。

下面把路由器上的配置附上:

ip access-list extended infilter

evaluate mppacket

deny ip 10.54.16.0 0.0.0.255 10.54.17.0 0.0.0.255

deny ip 10.54.16.0 0.0.0.255 10.54.18.0 0.0.0.255

deny ip 10.54.16.0 0.0.0.255 10.54.19.0 0.0.0.255

deny ip 10.54.16.0 0.0.0.255 10.54.31.0 0.0.0.255

deny ip 10.54.17.0 0.0.0.255 10.54.16.0 0.0.0.255

deny ip 10.54.17.0 0.0.0.255 10.54.18.0 0.0.0.255

deny ip 10.54.17.0 0.0.0.255 10.54.19.0 0.0.0.255

deny ip 10.54.17.0 0.0.0.255 10.54.31.0 0.0.0.255

deny ip 10.54.18.0 0.0.0.255 10.54.16.0 0.0.0.255

deny ip 10.54.18.0 0.0.0.255 10.54.17.0 0.0.0.255

deny ip 10.54.18.0 0.0.0.255 10.54.19.0 0.0.0.255

deny ip 10.54.18.0 0.0.0.255 10.54.31.0 0.0.0.255

deny ip 10.54.19.0 0.0.0.255 10.54.16.0 0.0.0.255

deny ip 10.54.19.0 0.0.0.255 10.54.17.0 0.0.0.255

deny ip 10.54.19.0 0.0.0.255 10.54.18.0 0.0.0.255

deny ip 10.54.19.0 0.0.0.255 10.54.31.0 0.0.0.255

permit ip any any

exit
ip access-list extended outfilter

permit ip any any reflect mppacket

exit
interface fastethernet0

ip address 10.255.49.2 255.255.255.252

exit
interface fastethernet1

exit
interface fastethernet1.1

description Guanli

ip address 10.54.31.254 255.255.255.0

encapsulation dot1q 1

exit
interface fastethernet1.2

description Yewu

ip address 10.54.17.254 255.255.255.0

encapsulation dot1q 2

ip access-group outfilter out

ip access-group infilter in

exit
interface fastethernet1.3

description Bangong

ip address 10.54.16.254 255.255.255.0

encapsulation dot1q 3

ip access-group outfilter out

ip access-group infilter in

exit
interface fastethernet1.4

description Caiwu

ip address 10.54.18.254 255.255.255.0

encapsulation dot1q 4

ip access-group outfilter out

ip access-group infilter in

exit
interface fastethernet1.5

description Jiating

ip address 10.54.19.254 255.255.255.0

encapsulation dot1q 5

ip access-group outfilter out

ip access-group infilter in

exit
ip route 0.0.0.0 0.0.0.0 10.255.49.1
文章录入:csh    责任编辑:csh 

上一篇:使用javascript+xml实现分页

栏    目:

下一篇:R语言ggplot2边框背景去除的实现

本文标题:VLAN 之间的访问控制

本文地址:http://www.codeinn.net/misctech/35142.html

推荐教程

广告投放 | 联系我们 | 版权申明

重要申明:本站所有的文章、图片、评论等,均由网友发表或上传并维护或收集自网络,属个人行为,与本站立场无关。

如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。

联系QQ:914707363 | 邮箱:codeinn#126.com(#换成@)

Copyright © 2020 代码驿站 版权所有