根据产品手册配置 5.2
(0)
您好,参考
在完成上述配置后,在任意视图下执行display命令可以显示配置后MAC地址认证的运行情况,通过查看显示信息验证配置的效果。
在用户视图下,执行reset命令可以清除相关统计信息。
表1-11 MAC地址认证的显示和维护
显示MAC地址认证的相关信息 | display mac-authentication [ interface interface-type interface-number ] |
显示MAC地址认证连接信息 | |
清除MAC地址认证的统计信息 | reset mac-authentication statistics [ interface interface-type interface-number ] |
清除Critical VLAN内MAC地址认证用户 | |
清除Guest VLAN内MAC地址认证用户 |
(0)
[H3C]show current-configuration # version 7.1.070, Release 6126P20 # sysname H3C # telnet server enable # irf mac-address persistent timer irf auto-update enable undo irf link-delay irf member 1 priority 1 # mac-authentication mac-authentication timer offline-detect 180 mac-authentication timer quiet 180 mac-authentication domain bbb mac-authentication user-name-format fixed account aaa password cipher $c$3$zPbMvZQB0ZTaH3IH/huviLmfK0yujiRB9g== # password-recovery enable # vlan 1 # vlan 5 to 6 # interface NULL0 # interface Vlan-interface1 ip address 192.168.3.20 255.255.248.0 # interface GigabitEthernet1/0/1 port link-type trunk port trunk permit vlan 1 to 4 6 to 4094 # interface GigabitEthernet1/0/2 # interface GigabitEthernet1/0/3 # interface GigabitEthernet1/0/4 # interface GigabitEthernet1/0/5 mac-authentication mac-authentication domain system # interface GigabitEthernet1/0/6 # interface GigabitEthernet1/0/7 # interface GigabitEthernet1/0/8 # interface GigabitEthernet1/0/9 # interface GigabitEthernet1/0/10 # interface GigabitEthernet1/0/11 # interface GigabitEthernet1/0/12 port access vlan 5 # interface GigabitEthernet1/0/13 port access vlan 5 # interface GigabitEthernet1/0/14 port access vlan 6 # interface GigabitEthernet1/0/15 # interface GigabitEthernet1/0/16 # interface GigabitEthernet1/0/17 combo enable copper # interface GigabitEthernet1/0/18 combo enable copper # interface GigabitEthernet1/0/19 combo enable copper # interface GigabitEthernet1/0/20 combo enable copper # interface GigabitEthernet1/0/21 combo enable copper # interface GigabitEthernet1/0/22 combo enable copper # interface GigabitEthernet1/0/23 combo enable copper # interface GigabitEthernet1/0/24 combo enable copper # interface M-GigabitEthernet0/0/0 # interface Ten-GigabitEthernet1/0/25 # interface Ten-GigabitEthernet1/0/26 # interface Ten-GigabitEthernet1/0/27 # interface Ten-GigabitEthernet1/0/28 # scheduler logfile size 16 # line class aux user-role network-admin # line class usb user-role network-admin # line class vty user-role network-operator # line aux 0 user-role network-admin # line vty 0 4 authentication-mode scheme user-role network-admin user-role network-operator # line vty 5 63 user-role network-operator # snmp-agent snmp-agent local-engineid 800063A2809C061B68458900000001 snmp-agent community read public snmp-agent sys-info version v2c # ssh server enable sftp server enable scp server enable # arp static 172.16.127.66 0000-2212-2334 arp static 192.168.89.189 0000-2212-2334 # radius scheme 2000 primary authentication 192.168.3.60 primary accounting 192.168.3.60 key authentication cipher $c$3$TUsjQSOHqgiMUTl37oMAadIy5kMRVA== key accounting cipher $c$3$w3pAkE5kUXLwZruZaEvh/Kh0DzYDtg== user-name-format without-domain # radius scheme system user-name-format without-domain # domain bbb authentication lan-access local authentication default radius-scheme 2000 authorization default radius-scheme 2000 accounting default radius-scheme 2000 # domain system authentication lan-access local authorization lan-access local accounting lan-access none # domain default enable system # role name level-0 description Predefined level-0 role # role name level-1 description Predefined level-1 role # role name level-2 description Predefined level-2 role # role name level-3 description Predefined level-3 role # role name level-4 description Predefined level-4 role # role name level-5 description Predefined level-5 role # role name level-6 description Predefined level-6 role # role name level-7 description Predefined level-7 role # role name level-8 description Predefined level-8 role # role name level-9 description Predefined level-9 role # role name level-10 description Predefined level-10 role # role name level-11 description Predefined level-11 role # role name level-12 description Predefined level-12 role # role name level-13 description Predefined level-13 role # role name level-14 description Predefined level-14 role # user-group system # local-user admin class manage password hash $h$6$3D/Ol0IMGE4mjx5Z$rKeJcOeXPwYQUPO0R8YmS9F2R6XW+qQTmbkf5Ay7EQ0ckcdRflK+vyKqGunridcUesqWbKuX7cndonA1gzy1vQ== service-type telnet http https authorization-attribute user-role network-admin authorization-attribute user-role network-operator # local-user 94-c6-91-74-bf-83 class network password cipher $c$3$6PMHvzp7kEEHUCP42viMyviVkpgoiqFk6vrxzDyv4H2Y0WG+ service-type lan-access authorization-attribute user-role network-operator # ip http enable ip https enable # return [H3C] 以上是当前配置,freeradius的ip是192.168.3.60. [H3C]display mac-authentication interface GigabitEthernet 1/0/5 Global MAC authentication parameters: MAC authentication : Enabled Username format : Fixed account Username : aaa Password : ****** Offline detect period : 180 s Quiet period : 180 s Server timeout : 100 s Reauth period : 3600 s Authentication domain : bbb Online MAC-auth wired users : 0 Silent MAC users: MAC address VLAN ID From port Port index 94c6-9174-bf83 1 GE1/0/5 5 请帮忙查看下,配置问题,未触发认证。
功能正常就可以了
(0)
我的意思是都没有触发发送报文,还没到判别连通性,如果有发送报文,我再排查radius服务器问题,ping网络是通的。而且用自测也是通的,就暂不怀疑连通问题,而在我对h3c的配置不理解上。请求大神指点
没有触发认证,肯定功能不正常
display radius statistics看不到和radius是否连通正常,debug看下吧
我的意思是都没有触发发送报文,还没到判别连通性,如果有发送报文,我再排查radius服务器问题,ping网络是通的。而且用自测也是通的,就暂不怀疑连通问题,而在我对h3c的配置不理解上。请求大神指点
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
[H3C]show current-configuration # version 7.1.070, Release 6126P20 # sysname H3C # telnet server enable # irf mac-address persistent timer irf auto-update enable undo irf link-delay irf member 1 priority 1 # mac-authentication mac-authentication timer offline-detect 180 mac-authentication timer quiet 180 mac-authentication domain bbb mac-authentication user-name-format fixed account aaa password cipher $c$3$zPbMvZQB0ZTaH3IH/huviLmfK0yujiRB9g== # password-recovery enable # vlan 1 # vlan 5 to 6 # interface NULL0 # interface Vlan-interface1 ip address 192.168.3.20 255.255.248.0 # interface GigabitEthernet1/0/1 port link-type trunk port trunk permit vlan 1 to 4 6 to 4094 # interface GigabitEthernet1/0/2 # interface GigabitEthernet1/0/3 # interface GigabitEthernet1/0/4 # interface GigabitEthernet1/0/5 mac-authentication mac-authentication domain system # interface GigabitEthernet1/0/6 # interface GigabitEthernet1/0/7 # interface GigabitEthernet1/0/8 # interface GigabitEthernet1/0/9 # interface GigabitEthernet1/0/10 # interface GigabitEthernet1/0/11 # interface GigabitEthernet1/0/12 port access vlan 5 # interface GigabitEthernet1/0/13 port access vlan 5 # interface GigabitEthernet1/0/14 port access vlan 6 # interface GigabitEthernet1/0/15 # interface GigabitEthernet1/0/16 # interface GigabitEthernet1/0/17 combo enable copper # interface GigabitEthernet1/0/18 combo enable copper # interface GigabitEthernet1/0/19 combo enable copper # interface GigabitEthernet1/0/20 combo enable copper # interface GigabitEthernet1/0/21 combo enable copper # interface GigabitEthernet1/0/22 combo enable copper # interface GigabitEthernet1/0/23 combo enable copper # interface GigabitEthernet1/0/24 combo enable copper # interface M-GigabitEthernet0/0/0 # interface Ten-GigabitEthernet1/0/25 # interface Ten-GigabitEthernet1/0/26 # interface Ten-GigabitEthernet1/0/27 # interface Ten-GigabitEthernet1/0/28 # scheduler logfile size 16 # line class aux user-role network-admin # line class usb user-role network-admin # line class vty user-role network-operator # line aux 0 user-role network-admin # line vty 0 4 authentication-mode scheme user-role network-admin user-role network-operator # line vty 5 63 user-role network-operator # snmp-agent snmp-agent local-engineid 800063A2809C061B68458900000001 snmp-agent community read public snmp-agent sys-info version v2c # ssh server enable sftp server enable scp server enable # arp static 172.16.127.66 0000-2212-2334 arp static 192.168.89.189 0000-2212-2334 # radius scheme 2000 primary authentication 192.168.3.60 primary accounting 192.168.3.60 key authentication cipher $c$3$TUsjQSOHqgiMUTl37oMAadIy5kMRVA== key accounting cipher $c$3$w3pAkE5kUXLwZruZaEvh/Kh0DzYDtg== user-name-format without-domain # radius scheme system user-name-format without-domain # domain bbb authentication lan-access local authentication default radius-scheme 2000 authorization default radius-scheme 2000 accounting default radius-scheme 2000 # domain system authentication lan-access local authorization lan-access local accounting lan-access none # domain default enable system # role name level-0 description Predefined level-0 role # role name level-1 description Predefined level-1 role # role name level-2 description Predefined level-2 role # role name level-3 description Predefined level-3 role # role name level-4 description Predefined level-4 role # role name level-5 description Predefined level-5 role # role name level-6 description Predefined level-6 role # role name level-7 description Predefined level-7 role # role name level-8 description Predefined level-8 role # role name level-9 description Predefined level-9 role # role name level-10 description Predefined level-10 role # role name level-11 description Predefined level-11 role # role name level-12 description Predefined level-12 role # role name level-13 description Predefined level-13 role # role name level-14 description Predefined level-14 role # user-group system # local-user admin class manage password hash $h$6$3D/Ol0IMGE4mjx5Z$rKeJcOeXPwYQUPO0R8YmS9F2R6XW+qQTmbkf5Ay7EQ0ckcdRflK+vyKqGunridcUesqWbKuX7cndonA1gzy1vQ== service-type telnet http https authorization-attribute user-role network-admin authorization-attribute user-role network-operator # local-user 94-c6-91-74-bf-83 class network password cipher $c$3$6PMHvzp7kEEHUCP42viMyviVkpgoiqFk6vrxzDyv4H2Y0WG+ service-type lan-access authorization-attribute user-role network-operator # ip http enable ip https enable # return [H3C] 以上是当前配置,freeradius的ip是192.168.3.60. [H3C]display mac-authentication interface GigabitEthernet 1/0/5 Global MAC authentication parameters: MAC authentication : Enabled Username format : Fixed account Username : aaa Password : ****** Offline detect period : 180 s Quiet period : 180 s Server timeout : 100 s Reauth period : 3600 s Authentication domain : bbb Online MAC-auth wired users : 0 Silent MAC users: MAC address VLAN ID From port Port index 94c6-9174-bf83 1 GE1/0/5 5 请帮忙查看下,配置问题,未触发认证。