• 全部
  • 经验案例
  • 典型配置
  • 技术公告
  • FAQ
  • 漏洞说明
  • 全部
  • 全部
  • 大数据引擎
  • 知了引擎
产品线
搜索
取消
案例类型
发布者
是否解决
是否官方
时间
搜索引擎
匹配模式
高级搜索

S5130交换机配置mac+radius认证

2024-04-10提问
  • 0关注
  • 0收藏,720浏览
粉丝:0人 关注:0人

问题描述:

根据产品手册配置 5.2

使用RADIUS服务器进行MAC地址认证后,未触发认证请求。
查看统计都为0,需要怎么排查。radius使用freeradius搭建,自测功能正常。
 
[H3C]display radius statistics
 
                                 Auth.         Acct.       SessCtrl.
          Request Packet:          0             0             0
            Retry Packet:          0             0             -
          Timeout Packet:          0             0             -
        Access Challenge:          0             -             -
           Account Start:          -             0             -
          Account Update:          -             0             -
            Account Stop:          -             0             -
       Terminate Request:          -             -             0
              Set Policy:          -             -             0
    Packet With Response:          0             0             0
 Packet Without Response:          0             0             -
          Access Rejects:          0             -             -
          Dropped Packet:          0             0             0
          Check Failures:          0             0             0

 

 

2 个回答
粉丝:336人 关注: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 请帮忙查看下,配置问题,未触发认证。

zhiliao_4Ll3uH 发表时间:2024-04-10 更多>>

[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 请帮忙查看下,配置问题,未触发认证。

zhiliao_4Ll3uH 发表时间:2024-04-10
粉丝:237人 关注:8人

功能正常就可以了

回复zhiliao_sEUyB:

我的意思是都没有触发发送报文,还没到判别连通性,如果有发送报文,我再排查radius服务器问题,ping网络是通的。而且用自测也是通的,就暂不怀疑连通问题,而在我对h3c的配置不理解上。请求大神指点

zhiliao_4Ll3uH 发表时间:2024-04-10 更多>>

没有触发认证,肯定功能不正常

zhiliao_4Ll3uH 发表时间:2024-04-10

display radius statistics看不到和radius是否连通正常,debug看下吧

zhiliao_sEUyB 发表时间:2024-04-10
回复zhiliao_sEUyB:

我的意思是都没有触发发送报文,还没到判别连通性,如果有发送报文,我再排查radius服务器问题,ping网络是通的。而且用自测也是通的,就暂不怀疑连通问题,而在我对h3c的配置不理解上。请求大神指点

zhiliao_4Ll3uH 发表时间:2024-04-10

编辑答案

你正在编辑答案

如果你要对问题或其他回答进行点评或询问,请使用评论功能。

分享扩散:

提出建议

    +

亲~登录后才可以操作哦!

确定

亲~检测到您登陆的账号未在http://hclhub.h3c.com进行注册

注册后可访问此模块

跳转hclhub

你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作

举报

×

侵犯我的权益 >
对根叔社区有害的内容 >
辱骂、歧视、挑衅等(不友善)

侵犯我的权益

×

泄露了我的隐私 >
侵犯了我企业的权益 >
抄袭了我的内容 >
诽谤我 >
辱骂、歧视、挑衅等(不友善)
骚扰我

泄露了我的隐私

×

您好,当您发现根叔知了上有泄漏您隐私的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您认为哪些内容泄露了您的隐私?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)

侵犯了我企业的权益

×

您好,当您发现根叔知了上有关于您企业的造谣与诽谤、商业侵权等内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到 pub.zhiliao@h3c.com 邮箱,我们会在审核后尽快给您答复。
  • 1. 您举报的内容是什么?(请在邮件中列出您举报的内容和链接地址)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
  • 3. 是哪家企业?(营业执照,单位登记证明等证件)
  • 4. 您与该企业的关系是?(您是企业法人或被授权人,需提供企业委托授权书)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

抄袭了我的内容

×

原文链接或出处

诽谤我

×

您好,当您发现根叔知了上有诽谤您的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您举报的内容以及侵犯了您什么权益?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

对根叔社区有害的内容

×

垃圾广告信息
色情、暴力、血腥等违反法律法规的内容
政治敏感
不规范转载 >
辱骂、歧视、挑衅等(不友善)
骚扰我
诱导投票

不规范转载

×

举报说明