Wired Intelligent Edge

last person joined: 2 hours ago 

Bring performance and reliability to your network with the Aruba Core, Aggregation, and Access layer switches. Discuss the latest features and functionality of the ArubaOS-Switch and ArubaOS-CX devices, and find ways to improve security across your network to bring together a mobile first solution.
Expand all | Collapse all

S2500-48T DHCP option 82

This thread has been viewed 32 times
  • 1.  S2500-48T DHCP option 82

    Posted Jun 01, 2021 03:52 PM
    Hi
    i am trying to setup dhcp option82 for aruba S2500-48T switches

    interface-profile dhcp-relay-profile "clients"
    option82 circuit-identifier vlan interface-name
    option82 remote-identifier mac

    but i do not see any option82 in requests

    can this switch really send option82 ?

    #show version
    Aruba Operating System Software.
    ArubaOS (MODEL: ArubaS2500-48T), Version 7.4.1.12

    Dynamic Host Configuration Protocol (Request)
        Message type: Boot Request (1)
        Hardware type: Ethernet (0x01)
        Hardware address length: 6
        Hops: 0
        Transaction ID: 0xe21d08c9
        Seconds elapsed: 0
        Bootp flags: 0x0000 (Unicast)
            0... .... .... .... = Broadcast flag: Unicast
            .000 0000 0000 0000 = Reserved flags: 0x0000
        Client IP address: 10.0.110.102
        Your (client) IP address: 0.0.0.0
        Next server IP address: 0.0.0.0
        Relay agent IP address: 0.0.0.0
        Client MAC address: Routerbo_76:e9:fd (6c:3b:6b:76:e9:fd)
        Client hardware address padding: 00000000000000000000
        Server host name not given
        Boot file name not given
        Magic cookie: DHCP
        Option: (53) DHCP Message Type (Request)
            Length: 1
            DHCP: Request (3)
        Option: (55) Parameter Request List
            Length: 8
            Parameter Request List Item: (1) Subnet Mask
            Parameter Request List Item: (121) Classless Static Route
            Parameter Request List Item: (3) Router
            Parameter Request List Item: (33) Static Route
            Parameter Request List Item: (6) Domain Name Server
            Parameter Request List Item: (42) Network Time Protocol Servers
            Parameter Request List Item: (138) CAPWAP Access Controllers
            Parameter Request List Item: (43) Vendor-Specific Information
        Option: (12) Host Name
            Length: 8
            Host Name: MikroTik
        Option: (61) Client identifier
            Length: 7
            Hardware type: Ethernet (0x01)
            Client MAC address: Routerbo_76:e9:fd (6c:3b:6b:76:e9:fd)
        Option: (255) End
            Option End: 255
        Padding: 000000000000000000000000000000000000000000000000000000​


    ------------------------------
    Daniil Ivankov
    ------------------------------


  • 2.  RE: S2500-48T DHCP option 82

    Posted Jun 02, 2021 04:45 AM
    Did you apply the newly created relay profile to the VLAN interface? Check page 228 and further in the User Guide.

    Personally never tried this, but given this is documented there is no reason to doubt if it is working. Note that MAS will go end of support end of the calendar year. You may consider moving to CX switches.

    ------------------------------
    Herman Robers
    ------------------------
    If you have urgent issues, always contact your Aruba partner, distributor, or Aruba TAC Support. Check https://www.arubanetworks.com/support-services/contact-support/ for how to contact Aruba TAC. Any opinions expressed here are solely my own and not necessarily that of Hewlett Packard Enterprise or Aruba Networks.

    In case your problem is solved, please invest the time to post a follow-up with the information on how you solved it. Others can benefit from that.
    ------------------------------



  • 3.  RE: S2500-48T DHCP option 82

    Posted Jun 02, 2021 01:47 PM
    yes, i have applied

    vlan with clients, that got dhcp - vlan110

    interface vlan "110"
       dhcp-relay-profile "clients"
    !
    
    #show interface-config vlan 110
    
    vlan "110"
    ----------
    Parameter                   Value
    ---------                   -----
    Interface description       N/A
    Interface OSPF profile      N/A
    Interface PIM profile       N/A
    Interface IGMP profile      N/A
    Interface DDNS profile      N/A
    Interface VRRP profile      N/A
    Probe Profile               N/A
    Directed Broadcast Enabled  Disabled
    Interface shutdown          Disabled
    Session-processing          Disabled
    metric                      0
    mtu                         1500
    IP Address                  N/A
    IP NAT Inside               Disabled
    IP NAT Outside              Disabled
    IPv6 Address                N/A
    IPv6 link local Address     N/A
    DHCP client                 Disabled
    DHCP relay profile          clients
    Aruba VPN Pool profile      N/A
    Ingress ACL                 N/A
    Egress ACL                  N/A
    Session ACL                 N/A
    ​


    ------------------------------
    Daniil Ivankov
    ------------------------------



  • 4.  RE: S2500-48T DHCP option 82

    Posted Jun 04, 2021 05:18 AM
    Please reach out to support in that case. I'm not doing any L3 (nor DHCP) on my MAS switches, so can't check.

    ------------------------------
    Herman Robers
    ------------------------
    If you have urgent issues, always contact your Aruba partner, distributor, or Aruba TAC Support. Check https://www.arubanetworks.com/support-services/contact-support/ for how to contact Aruba TAC. Any opinions expressed here are solely my own and not necessarily that of Hewlett Packard Enterprise or Aruba Networks.

    In case your problem is solved, please invest the time to post a follow-up with the information on how you solved it. Others can benefit from that.
    ------------------------------



  • 5.  RE: S2500-48T DHCP option 82

    Posted Jun 25, 2021 04:32 PM
    now i see option82, but can you help me to understand circuid id

    vlan110, port 0/0/0 -   4745302f302f303a006e
    vlan110, port 0/0/1 -   4745302f302f313a006e
    vlan110, port 0/0/40 - 4745302f302f34303a006e
    vlan110, port 0/1/1 -   4745302f312f313a006e

    ------------------------------
    Daniil Ivankov
    ------------------------------



  • 6.  RE: S2500-48T DHCP option 82

    Posted Jul 05, 2021 05:17 AM
    I just checked this again, and it is HEX encoding of the port name (first part), just don't know the 3a006e at the end (: NULL 6e; 6e = 152 decimal).

    Quick python script:
    #!/usr/bin/python3
    
    hexdata=['4745302f302f303a006e','4745302f302f313a006e','4745302f302f34303a006e','4745302f312f313a006e']
    
    for x in hexdata:
      bytes_object = bytes.fromhex(x)
      ascii_string = bytes_object.decode("ASCII")
      print('%s => %s' % (x,ascii_string))
    ​

    4745302f302f303a006e => GE0/0/0:n
    4745302f302f313a006e => GE0/0/1:n
    4745302f302f34303a006e => GE0/0/40:n
    4745302f312f313a006e => GE0/1/1:n​

    So, 47 = G, 45=E, 30=0, 2f=/, and so on...



    ------------------------------
    Herman Robers
    ------------------------
    If you have urgent issues, always contact your Aruba partner, distributor, or Aruba TAC Support. Check https://www.arubanetworks.com/support-services/contact-support/ for how to contact Aruba TAC. Any opinions expressed here are solely my own and not necessarily that of Hewlett Packard Enterprise or Aruba Networks.

    In case your problem is solved, please invest the time to post a follow-up with the information on how you solved it. Others can benefit from that.
    ------------------------------



  • 7.  RE: S2500-48T DHCP option 82

    Posted Jul 06, 2021 05:47 AM
    is it possible to do it with dhcp server (ihsc-dhcp) with commands binary-to-ascii and substring ?
    '6e' at the and its vlan id - 110

    ------------------------------
    Daniil Ivankov
    ------------------------------



  • 8.  RE: S2500-48T DHCP option 82

    Posted Jul 06, 2021 11:40 AM
    I don't know, don't use isc-dhcpd that much... more a dnsmasq person (easier for small/labs). Maybe others do know...

    ------------------------------
    Herman Robers
    ------------------------
    If you have urgent issues, always contact your Aruba partner, distributor, or Aruba TAC Support. Check https://www.arubanetworks.com/support-services/contact-support/ for how to contact Aruba TAC. Any opinions expressed here are solely my own and not necessarily that of Hewlett Packard Enterprise or Aruba Networks.

    In case your problem is solved, please invest the time to post a follow-up with the information on how you solved it. Others can benefit from that.
    ------------------------------



  • 9.  RE: S2500-48T DHCP option 82

    Posted Aug 05, 2021 08:21 AM
    the syntax of the command

    binary-to-ascii (numeric-expr1, numeric-expr2, data-expr1, data-expr2)
    Converts the result of evaluating data-expr2 into a text string containing one number for each element of the result of evaluating data-expr2. Each number is separated from the other by the result of evaluating data-expr1. The result of evaluating numeric-expr1 specifies the base (2 through 16) into which the numbers should be converted. The result of evaluating numeric-expr2 specifies the width in bits of each number, which may be either 8, 16 or 32

    what do i need to use as 'numeric-expr1' - base and for 'numeric-expr2' - width in bits ?

    ------------------------------
    Daniil Ivankov
    ------------------------------



  • 10.  RE: S2500-48T DHCP option 82

    Posted Aug 05, 2021 08:44 AM
    Daniil,

    Not sure if that will work. It may be better to post this question on a/the isc-dhcpd forum if that exists. I think the hexcodes are base 8 (8 bits in a byte); but you would need to split your input string as well into 2 character chunks. This is really something isc-dhcpd related.

    Herman

    ------------------------------
    Herman Robers
    ------------------------
    If you have urgent issues, always contact your Aruba partner, distributor, or Aruba TAC Support. Check https://www.arubanetworks.com/support-services/contact-support/ for how to contact Aruba TAC. Any opinions expressed here are solely my own and not necessarily that of Hewlett Packard Enterprise or Aruba Networks.

    In case your problem is solved, please invest the time to post a follow-up with the information on how you solved it. Others can benefit from that.
    ------------------------------