lan1接入h3c交换机,lan2接入pc
需求:
pc能访问vlan1、vlan2、vlan3内的pc
vlan1、vlan2、vlan3内的pc互不能访问
(0)
vlan 1
port GigabitEthernet 1/0/1 to 1/0/10
vlan 2
port GigabitEthernet 1/0/11 to 1/0/20
vlan 3
port GigabitEthernet 1/0/21 to 1/0/30
。ip routing
interface Vlan-interface 1
ip address 192.168.1.1 255.255.255.0
interface Vlan-interface 2
ip address 192.168.2.1 255.255.255.0
interface Vlan-interface 3
ip address 192.168.3.1 255.255.255.0
。acl number 3000
rule deny ip source 192.168.1.0 0.0.0.255 destination 192.168.2.0 0.0.0.255
rule deny ip source 192.168.1.0 0.0.0.255 destination 192.168.3.0 0.0.0.255
rule deny ip source 192.168.2.0 0.0.0.255 destination 192.168.1.0 0.0.0.255
rule deny ip source 192.168.2.0 0.0.0.255 destination 192.168.3.0 0.0.0.
rule deny ip source 192 .168 .3 .0 .255 destination .192 .168 .1 .255 .rule deny ip source .192 .168 .3 .255 destination .192 .168 .2 .255
interface Vlan-interface 1
packet-filter acl-number inbound
interface Vlan-interface 2
packet-filter acl-number inbound
interface Vlan-interface 3
packet-filter acl-number inbound
ipconfig /set gateway=192 .168 .x .1
这样,您就可以实现PC能访问VLAN1、VLAN2、VLAN3内的PC,而VLAN1、VLAN2、VLAN3内的PC互不能访问的需求。希望这些信息对您有所帮助。如果您还有其他问题,欢迎继续提问。😊
(0)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论