• 全部
  • 經驗案例
  • 典型配置
  • 技術公告
  • FAQ
  • 漏洞說明
  • 全部
  • 全部
  • 大數據引擎
  • 知了引擎
產品線
搜索
取消
案例類型
發布者
是否解決
是否官方
時間
搜索引擎
匹配模式
高級搜索

802.1X+MAC認證接入後5s內進入guest vlan

  • 0關注
  • 1收藏 1231瀏覽
粉絲:3人 關注:6人

問題描述

交換機上配置了802.1X+MAC認證+guest vlan:

#

 dot1x

 dot1x authentication-method eap

 dot1x quiet-period

 dot1x timer quiet-period 10

 dot1x timer tx-period 5

#

 mac-authentication 

 mac-authentication timer quiet 1 

 mac-authentication user-name-format mac-address with-hyphen uppercase 

#

interface GigabitEthernet1/0/2

 dot1x

 undo dot1x handshake

 dot1x mandatory-domain imc_dot1x

 undo dot1x multicast-trigger

 dot1x unicast-trigger

 dot1x timer reauth-period 60

 mac-authentication

 mac-authentication carry user-ip

 mac-authentication domain imc_dot1x

 mac-authentication timer auth-delay 10

 mac-authentication guest-vlan 450

 undo mac-authentication offline-detect enable

#

 

測試認證終端接入認證到進入guest vlan需要花30s以上,想要實現接入後進入guest vlan的時間在5s內。

過程分析

收集debugging dot1x all、debugging mac-authentication all、debugging radius all

從debug看整個流程都是正常的:

*Jul  3 02:08:19:982 2024 S5130 DOT1X/7/EVENT: Processing new mac event: UserMAC=****.****.****.****, VLANID=450, Interface=GigabitEthernet1/0/2.

====1x處理newmac;

*Jul  3 02:08:31:993 2024 S5130 MACA/7/EVENT: Processing MAC authentication delay: UserMAC=****.****.****.****, VLANID=450, Interface=GigabitEthernet1/0/2.

====1x 客戶端2次沒有應答,總共10秒左右超時,轉mac-auth;macauth添加延遲表;

*Jul  3 02:08:42:402 2024 S5130 MACA/7/EVENT: Authentication delay timer expired: UserMAC=****.****.****.****, VLANID=450, Interface=GigabitEthernet1/0/2.

====在10秒後,開始觸發macauth;

*Jul  3 02:08:42:403 2024 S5130 MACA/7/EVENT: Notified PortSec of new MAC processing result 3: UserMAC=****.****.****.****, VLANID=450, Interface=GigabitEthernet1/0/2.

====但認證直接結束,看配置有mac-authentication carry user-ip, 分析是由於驅動上報newmac的ip為0被攔住了

 

*Jul  3 02:08:44:628 2024 S5130 DOT1X/7/EVENT: Processing new mac event: UserMAC=****.****.****.****, VLANID=450, Interface=GigabitEthernet1/0/2.

====然後還是上麵這個邏輯,1x收到newmac在重新處理,再轉macauth, 等macauth延遲認證超時,再觸發macauth,但這回真正觸發了macauth,即new mac報的ip非0,然後認證失敗加gvlan.

 

發現按照目前的配置是需要等待802.1X超時,進入MAC認證,MAC認證失敗後才進入到guest vlan中。

查詢配置發現可以配置802.1X的guest vlan,實現觸發802.1X認證就進入guest vlan。

 

更改後實測在接入後的兩秒內可以進入guest vlan:

%Jul  4 06:22:41:807 2024 S5130 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/2 changed to up.

*Jul  4 06:22:42:746 2024 S5130 DOT1X/7/EVENT: Processing new mac event: UserMAC=****.****.****.****, VLANID=450, Interface=GigabitEthernet1/0/2.

*Jul  4 06:22:42:811 2024 S5130 DOT1X/7/EVENT: Started the user aging timer in the guest VLAN: Length=1000(s), UserMAC=****.****.****.****, VLANID=450, Interface=GigabitEthernet1/0/2.

解決方法

更改配置為:

#

interface GigabitEthernet1/0/2

 dot1x

 undo dot1x handshake

 dot1x mandatory-domain imc_dot1x

 undo dot1x multicast-trigger

 dot1x unicast-trigger

 dot1x guest-vlan 450

 dot1x timer reauth-period 60

 mac-authentication

 mac-authentication domain imc_dot1x

 mac-authentication timer auth-delay 10

 mac-authentication guest-vlan 450

 mac-authentication guest-vlan auth-period 5

 undo mac-authentication offline-detect enable

該案例對您是否有幫助:

您的評價:1

若您有關於案例的建議,請反饋:

0 個評論

該案例暫時沒有網友評論

編輯評論

舉報

×

侵犯我的權益 >
對根叔知了社區有害的內容 >
辱罵、歧視、挑釁等(不友善)

侵犯我的權益

×

泄露了我的隱私 >
侵犯了我企業的權益 >
抄襲了我的內容 >
誹謗我 >
辱罵、歧視、挑釁等(不友善)
騷擾我

泄露了我的隱私

×

您好,當您發現根叔知了上有泄漏您隱私的內容時,您可以向根叔知了進行舉報。 請您把以下內容通過郵件發送到pub.zhiliao@h3c.com 郵箱,我們會盡快處理。
  • 1. 您認為哪些內容泄露了您的隱私?(請在郵件中列出您舉報的內容、鏈接地址,並給出簡短的說明)
  • 2. 您是誰?(身份證明材料,可以是身份證或護照等證件)

侵犯了我企業的權益

×

您好,當您發現根叔知了上有關於您企業的造謠與誹謗、商業侵權等內容時,您可以向根叔知了進行舉報。 請您把以下內容通過郵件發送到 pub.zhiliao@h3c.com 郵箱,我們會在審核後盡快給您答複。
  • 1. 您舉報的內容是什麼?(請在郵件中列出您舉報的內容和鏈接地址)
  • 2. 您是誰?(身份證明材料,可以是身份證或護照等證件)
  • 3. 是哪家企業?(營業執照,單位登記證明等證件)
  • 4. 您與該企業的關係是?(您是企業法人或被授權人,需提供企業委托授權書)
我們認為知名企業應該坦然接受公眾討論,對於答案中不準確的部分,我們歡迎您以正式或非正式身份在根叔知了上進行澄清。

抄襲了我的內容

×

原文鏈接或出處

誹謗我

×

您好,當您發現根叔知了上有誹謗您的內容時,您可以向根叔知了進行舉報。 請您把以下內容通過郵件發送到pub.zhiliao@h3c.com 郵箱,我們會盡快處理。
  • 1. 您舉報的內容以及侵犯了您什麼權益?(請在郵件中列出您舉報的內容、鏈接地址,並給出簡短的說明)
  • 2. 您是誰?(身份證明材料,可以是身份證或護照等證件)
我們認為知名企業應該坦然接受公眾討論,對於答案中不準確的部分,我們歡迎您以正式或非正式身份在根叔知了上進行澄清。

對根叔知了社區有害的內容

×

垃圾廣告信息
色情、暴力、血腥等違反法律法規的內容
政治敏感
不規範轉載 >
辱罵、歧視、挑釁等(不友善)
騷擾我
誘導投票

不規範轉載

×

舉報說明

提出建議

    +

親~登錄後才可以操作哦!

確定

親~檢測到您登陸的賬號未在http://hclhub.h3c.com進行注冊

注冊後可訪問此模塊

跳轉hclhub

你的郵箱還未認證,請認證郵箱或綁定手機後進行當前操作