Security

 View Only
last person joined: 10 hours ago 

Forum to discuss Enterprise security using HPE Aruba Networking NAC solutions (ClearPass), Introspect, VIA, 360 Security Exchange, Extensions, and Policy Enforcement Firewall (PEF).
Expand all | Collapse all

Need to make dynamic trunk ports work on Comware 7 using ClearPass

This thread has been viewed 42 times
  • 1.  Need to make dynamic trunk ports work on Comware 7 using ClearPass

    Posted Aug 25, 2021 12:51 AM

    Hello!


    So, we have existing ClearPass enforcement profiles for comware 7 switches to make dynamic ports work but it it is very generic (only IETF attributes) and only works when it is an access port i.e. most users and current controller-based APs

    However, we are converting their APs from controller based to instant, which means we will convert their switchports to trunk. our initial switchport config is we put in the tagged VLANs along with RADIUS related config (so if users use that dynamic port, they still can). However, it does not work. What we can see is it is still seeing it as access port. NOTE: removing the config that makes the port dynamic makes the AP work as well

    During my travels in the interwebs searching for an answer, I have found:

    - Comware 7 switches use "H3C" Attribute Type in ClearPass
    - H3C can read attribute "AVPair" similar to Cisco
    - In one of the CP guides, what they did is using the AVPair attribute, they sent back value: device-traffic-class=voice, and this apparently will let the switch know that this is a "voice device" and will assign whatever voice VLAN you statically configured in the port as tagged VLAN
    - I have had a few reads online, and another value instead of device-traffic-class=voice is device-traffic-class=switch, and if the interwebs is to be believed, this will let the switch know that the supplicant is a "switch", converts the port into a trunk port, and uses your tagged VLANs statically configured on the port

    Now I just wanted to ask if any of you had tried this during your networking travels?

    If any of you also have alternatives I can use for this dilemma, feel free to post.



  • 2.  RE: Need to make dynamic trunk ports work on Comware 7 using ClearPass

    EMPLOYEE
    Posted Aug 25, 2021 09:15 AM
    Hi Lawrence,

    Trunk ports and port-security (macauth and dot1x) are mutually exclusive. It is not possible to have trunk ports with MAC authentication and assign a tagged VLAN. Having said that, I think there is a good alternative for assigning tagged VLAN's to an authenticated port and that is by using the "mac-authentication auto-tag" functionality.

    https://techhub.hpe.com/eginfolib/networking/docs/switches/5130ei/5200-3946_security_cg/content/485048140.htm

    In order to get this working, you need to configure following on the interface:

    port link-mode bridge
    port link-type hybrid
    undo port hybrid vlan 1
    port hybrid vlan 10 tagged      < -- This is the tagged VLAN that is assigned from ClearPass using the standard IETF attributes
    mac-vlan enable
    mac-authentication auto-tag ignore-config
    mac-authentication
    mac-authentication host-mode multi-vlan

    From an edge device perspective, it depends on what type of packet is sent first (is it untagged or tagged).
    If it's an untagged packet, the switch will receive that on the default (pvid) or untagged VLAN. This is called the initial VLAN. If that is the case, there will be no tagged VLAN assignment because the initial packet was sent as an untagged packet.

    If the edge device sends a tagged packet (in this example with VLAN tag 10), the switch will accept this packet (because it's a tagged member of VLAN 10), and after successful authentication it will place the VLAN 10 as tagged onto that port. See the output of "show mac-authentication connection" below:

    Total connections: 1
    Slot ID: 1
    User MAC address: 8e8e-5395-0202
    Access interface: Ten-GigabitEthernet1/0/2
    Username: 8e8e53950202
    User access state: Successful
    Authentication domain: clearpass
    Initial VLAN: 10
    Authorization untagged VLAN: N/A
    Authorization tagged VLAN: 10
    Authorization VSI: N/A
    Authorization ACL ID: N/A
    Authorization user profile: N/A
    Authorization CAR: N/A
    Authorization URL: N/A
    Termination action: Default
    Session timeout period: N/A
    Online from: 2021/08/25 15:13:24
    Online duration: 0h 0m 5s


    Hope this is helpful











    ------------------------------
    Dik van Oeveren
    ------------------------------



  • 3.  RE: Need to make dynamic trunk ports work on Comware 7 using ClearPass

    Posted Aug 25, 2021 06:54 PM

    Thank you for the reply!

    Question: "This is the tagged VLAN that is assigned from ClearPass using the standard IETF attributes" - How do you pass on tagged VLAN from ClearPass? What attribute and value do you use?

    This is my interface config right now:
    port link-mode bridge
    port link-type hybrid
    undo port hybrid vlan 1
    port hybrid vlan 205 295 tagged
    port hybrid vlan 125 untagged
    port hybrid pvid vlan 125
    stp edged-port
    qos wfq weight
    qos wfq af2 group 1 weight 3
    qos wfq af3 group 1 weight 3
    qos wfq af4 group 1 weight 15
    qos wfq ef group sp
    qos gts queue 5 cir 300000 cbs 16777216
    poe enable
    undo dot1x handshake
    undo dot1x multicast-trigger
    dot1x guest-vlan 299
    dot1x auth-fail vlan 299
    dot1x critical vlan 299
    port-security port-mode userlogin-secure-or-mac-ext


    And this is the mac-auth connection output:
    Total connections: 1
    Slot ID: 1
    User MAC address: e826-89c2-65a6
    Access interface: GigabitEthernet1/0/23
    Username: e82689c265a6
    User access state: Successful
    Authentication domain: system
    IPv4 address: 10.20.67.17
    Initial VLAN: 125
    Authorization untagged VLAN: 125
    Authorization tagged VLAN: N/A
    Authorization ACL number/name: N/A
    Authorization dynamic ACL name: N/A
    Authorization user profile: N/A
    Authorization CAR: N/A
    Authorization URL: N/A
    Termination action: Radius-request
    Session timeout period: 10800 sec
    Online from: 2021/08/26 10:40:35
    Online duration: 0h 0m 36s

    I can see that it ignores the static tagged VLAN i gave it because of mac-auth. VLAN 125 is configured as initial vlan but also 125 is the one i am sending from ClearPass







  • 4.  RE: Need to make dynamic trunk ports work on Comware 7 using ClearPass

    Posted Aug 26, 2021 02:47 AM
    Enforcement profile can be like this 

      Type Name Value
    1. Radius:IETF Session-Timeout = 10800
    2. Radius:IETF Termination-Action = RADIUS-Request (1)
    3. Radius:IETF Tunnel-Type = VLAN (13)
    4. Radius:IETF Tunnel-Medium-Type = IEEE-802 (6)
    5. Radius:IETF Tunnel-Private-Group-Id = 100t 200t 300u 400t 500t 600t 700t 800t
    6. Radius:IETF Filter-Id = 3009

    t is for tagged
    u is for untagged


    On port config is

    port link-mode bridge
    description 802.1x Enabled port
    port link-type hybrid
    port hybrid vlan 1 untagged
    undo voice-vlan mode auto
    mac-vlan enable
    stp edged-port
    undo dot1x handshake
    dot1x mandatory-domain clearpass
    undo dot1x multicast-trigger
    dot1x re-authenticate
    dot1x unicast-trigger
    dot1x critical vlan 1
    dot1x re-authenticate server-unreachable keep-online
    mac-authentication max-user 10
    mac-authentication domain clearpass
    mac-authentication timer auth-delay 1
    mac-authentication re-authenticate server-unreachable keep-online
    mac-authentication critical vlan 1
    mac-authentication host-mode multi-vlan
    mac-authentication parallel-with-dot1x
    mac-authentication re-authenticate
    port-security port-mode userlogin-secure-or-mac-ext
    dhcp snooping binding record


    Hope this help.

    ------------------------------
    Gorazd Kikelj
    ------------------------------



  • 5.  RE: Need to make dynamic trunk ports work on Comware 7 using ClearPass

    Posted Aug 26, 2021 08:12 PM
    Thank you ! this one worked. I can see the authorization VLANs now:


    Total connections: 1
    Slot ID: 1
    User MAC address: e826-89c2-65a6
    Access interface: GigabitEthernet1/0/23
    Username: e82689c265a6
    User access state: Successful
    Authentication domain: system
    IPv4 address: 172.24.26.34
    Initial VLAN: 125
    Authorization untagged VLAN: 125
    Authorization tagged VLAN: 205 295
    Authorization ACL number/name: N/A
    Authorization dynamic ACL name: N/A
    Authorization user profile: N/A
    Authorization CAR: N/A
    Authorization URL: N/A
    Termination action: Radius-request
    Session timeout period: 10800 sec
    Online from: 2021/08/27 11:41:52
    Online duration: 0h 4m 35s

    Not sure though but it seems it is getting IP address from one of my tagged vlans. I will test further.





  • 6.  RE: Need to make dynamic trunk ports work on Comware 7 using ClearPass

    Posted Aug 27, 2021 03:15 AM
    Glad to see that it is working for you. For IP address check dhcp relay and dhcp snooping settings.

    Best, Gorazd

    ------------------------------
    Gorazd Kikelj
    ------------------------------



  • 7.  RE: Need to make dynamic trunk ports work on Comware 7 using ClearPass

    EMPLOYEE
    Posted Aug 26, 2021 06:24 AM
      |   view attached
    Hi Lawrence,

    I have added a video that demonstrates how to set this up with the egress-vlanid attribute. 

    Kind regards,

    Dik

    ------------------------------
    Dik van Oeveren
    ------------------------------



  • 8.  RE: Need to make dynamic trunk ports work on Comware 7 using ClearPass

    Posted Aug 26, 2021 08:14 PM
    Unfortunately, this doesnt work for me, I was able to use Gorazd's alternative and that works. But with ongoing issue of I cannot get the correct IP address.

    Total connections: 1
    Slot ID: 1
    User MAC address: e826-89c2-65a6
    Access interface: GigabitEthernet1/0/23
    Username: e82689c265a6
    User access state: Successful
    Authentication domain: system
    IPv4 address: 172.24.26.34
    Initial VLAN: 125
    Authorization untagged VLAN: 125
    Authorization tagged VLAN: 205 295
    Authorization ACL number/name: N/A
    Authorization dynamic ACL name: N/A
    Authorization user profile: N/A
    Authorization CAR: N/A
    Authorization URL: N/A
    Termination action: Radius-request
    Session timeout period: 10800 sec
    Online from: 2021/08/27 11:41:52
    Online duration: 0h 4m 35s