msr路由器做mac过滤时,如何备注mac是哪台主机?
(0)
可以看下命令行是否是用的二层acl,如果是,则可对每条rule进行备注
参考:
acl mac 4000
rule 0 permit source-mac e00a-f676-9a97 ffff-ffff-ffff
rule 0 comment 测试
(0)
你好,再问你另一个问题, [H3C-Vlan-interface1]dis int brief Interface Link Protocol Main IP Description Dia10 UP UP 100.75.39.118 GE0/0 UP UP -- GE0/1 UP UP 192.168.11.3 Vlan1 UP UP 22.22.22.1 GE0/3 UP 100M(a) F(a) A 1 =========== [H3C-Vlan-interface1]dis int vlan 1 Internet Address is 22.22.22.1/24 Primary Internet Address is 192.168.1.254/24 Sub Internet Address is 10.10.10.1/24 Sub ============ [H3C-Vlan-interface1]dis acl 3000 rule 0 permit ip source 22.22.22.0 0.0.0.255 (807 times matched) ============== [H3C-Vlan-interface1]dis policy-based-route pbr1 if-match acl 3000 apply output-interface GigabitEthernet0/1 ========= [H3C-Vlan-interface1]dis this interface Vlan-interface1 ip address 22.22.22.1 255.255.255.0 ip address 192.168.1.254 255.255.255.0 sub ip address 10.10.10.1 255.255.255.0 sub dhcp server apply ip-pool vlan1 ip policy-based-route pbr1 ========== [H3C-Vlan-interface1]dis ip routing-table Destination/Mask Proto Pre Cost NextHop Interface 0.0.0.0/0 Static 60 0 100.75.39.118 Dia10 10.10.10.0/24 Direct 0 0 10.10.10.1 Vlan1 10.10.10.1/32 Direct 0 0 127.0.0.1 InLoop0 22.22.22.0/24 Direct 0 0 22.22.22.1 Vlan1 22.22.22.1/32 Direct 0 0 127.0.0.1 InLoop0 100.75.32.1/32 Direct 0 0 100.75.32.1 Dia10 100.75.39.118/32 Direct 0 0 127.0.0.1 InLoop0 127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0 127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0 192.168.1.0/24 Direct 0 0 192.168.1.254 Vlan1 192.168.1.254/32 Direct 0 0 127.0.0.1 InLoop0 192.168.11.0/24 Direct 0 0 192.168.11.3 GE0/1 192.168.11.3/32 Direct 0 0 127.0.0.1 InLoop0 =========== dhcp server ip-pool vlan1 extended network ip range 22.22.22.100 22.22.22.200 network mask 255.255.255.0 gateway-list 22.22.22.1 dns-list 22.22.22.1 我这样配置策略路由,22.22.22.0就不能上网了,请问是哪里的问题?
牛,这个方法好,
你好,再问你另一个问题, [H3C-Vlan-interface1]dis int brief Interface Link Protocol Main IP Description Dia10 UP UP 100.75.39.118 GE0/0 UP UP -- GE0/1 UP UP 192.168.11.3 Vlan1 UP UP 22.22.22.1 GE0/3 UP 100M(a) F(a) A 1 =========== [H3C-Vlan-interface1]dis int vlan 1 Internet Address is 22.22.22.1/24 Primary Internet Address is 192.168.1.254/24 Sub Internet Address is 10.10.10.1/24 Sub ============ [H3C-Vlan-interface1]dis acl 3000 rule 0 permit ip source 22.22.22.0 0.0.0.255 (807 times matched) ============== [H3C-Vlan-interface1]dis policy-based-route pbr1 if-match acl 3000 apply output-interface GigabitEthernet0/1 ========= [H3C-Vlan-interface1]dis this interface Vlan-interface1 ip address 22.22.22.1 255.255.255.0 ip address 192.168.1.254 255.255.255.0 sub ip address 10.10.10.1 255.255.255.0 sub dhcp server apply ip-pool vlan1 ip policy-based-route pbr1 ========== [H3C-Vlan-interface1]dis ip routing-table Destination/Mask Proto Pre Cost NextHop Interface 0.0.0.0/0 Static 60 0 100.75.39.118 Dia10 10.10.10.0/24 Direct 0 0 10.10.10.1 Vlan1 10.10.10.1/32 Direct 0 0 127.0.0.1 InLoop0 22.22.22.0/24 Direct 0 0 22.22.22.1 Vlan1 22.22.22.1/32 Direct 0 0 127.0.0.1 InLoop0 100.75.32.1/32 Direct 0 0 100.75.32.1 Dia10 100.75.39.118/32 Direct 0 0 127.0.0.1 InLoop0 127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0 127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0 192.168.1.0/24 Direct 0 0 192.168.1.254 Vlan1 192.168.1.254/32 Direct 0 0 127.0.0.1 InLoop0 192.168.11.0/24 Direct 0 0 192.168.11.3 GE0/1 192.168.11.3/32 Direct 0 0 127.0.0.1 InLoop0 =========== dhcp server ip-pool vlan1 extended network ip range 22.22.22.100 22.22.22.200 network mask 255.255.255.0 gateway-list 22.22.22.1 dns-list 22.22.22.1 我这样配置策略路由,22.22.22.0就不能上网了,请问是哪里的问题?
您好,请知:
可以使用二层ACL来进行过滤,同时可以根据需要给每条策略描述。
以下是二层ACL的配置参考命令:
[SW1]acl mac 4000
[SW1-acl-mac-4000]rule 0 deny source-mac 7844-E538-0306 FFFF-FF00-0000
[SW1-acl-mac-4000]rule 1 permit
[SW1-acl-mac-4000]quit
[SW1]int gi 1/0/1
[SW1-GigabitEthernet1/0/1]packet-filter mac 4000 outbound
[SW1-GigabitEthernet1/0/1]quit
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明