核心交换做监控用,想在核心上划vlan。创建vlan10/20/30。分配端口后,要求vlan10和vlan20间不互通。vlan30可以访问vlan10和vlan20...求大神给个具体方法....
(0)
最佳答案
您好,请知:
关于VLAN间不能互通,以下是部署要点,请参考:
1、创建VLAN,配置VLAN IP
vlan 10
quit
vlan 20
quit
vlan 30
quit
int vlan 10
ip address 192.168.10.1 24
quit
int vlan 20
ip address 192.168.20.1 24
quit
int vlan 30
ip address 192.168.30.1 24
quit
2、将VLAN划分到端口
int gi 1/0/1
port link-type access
port access vlan 10
quit
int gi 1/0/2
port link-type access
port access vlan 20
quit
int gi 1/0/3
port link-type access
port access vlan 30
quit
3、VLAN间不能互访,VLAN10和VLAN 20不能互访:
acl number 3000
rule 0 deny ip source 192.168.10.0 0.0.0.255 destination 192.168.20.0 0.0.0.255
rule 1 deny ip source 192.168.20.0 0.0.0.255 destination 192.168.10.0 0.0.0.255
rule 2 permit ip source any destination any
quit
int vlan 10
packet-filter 3000 inbound
packet-filter 3000 outbound
quit
int vlan 20
packet-filter 3000 inbound
packet-filter 3000 outbound
quit
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论