Configuring DHCP Snooping Relay Information Sub-options

You can configure DHCP relay agent sub-options such as the Subscriber ID (SID), Circuit ID (CID) or Remote ID (RID) options.

The DHCP relay agent sub-options are part of DHCP Option 82, which is also known as the "Relay Agent Information Option". When a DHCP relay agent forwards a request, it can insert these sub-options to provide additional context about the client's location or identity. This information helps the DHCP server make more informed decisions about IP address allocation and can assist in network management and troubleshooting.

Subscriber ID (SID):
Typically, this can be an ASCII string that uniquely identifies the subscriber. It could be a username, account number, or any other identifier that makes sense in your network context.
Circuit ID (CID):
This usually includes information about the physical circuit or port. It can be an ASCII string that identifies the interface on which the DHCP request was received. This might include details like the VLAN ID, port number, or other relevant interface information.
Remote ID (RID):
This ID is often used to provide additional information about the remote host or device. It can be an ASCII string that includes the MAC address, device serial number, or any other unique identifier assigned by the network administrator.

Complete the following steps to configure the Option 82 sub-options.

  1. Enter global configuration mode.
    device# configure terminal
  2. Enable DHCP snooping and DHCP option 82 on a VLAN.
    device(config)# ip dhcp snooping vlan 1
  3. Enter interface configuration mode for a specific port.
    device(config)# interface ethernet 1/1/4
  4. Enable the interface to insert the SID, CID, or RID information in the DHCP packets.
    device(config-if-e1000-1/1/4)# dhcp snooping relay information subscriber-id Brcd01
    In the example, the SID is Brcd01.

The following example enables interface 1/1/4 to insert the CID information in the DHCP packets.

device(config-if-e1000-1/1/4)# dhcp snooping relay information circuit-id circuit01

The following example enables interface 1/1/4 to insert the RID information in the DHCP packets.

device(config-if-e1000-1/1/4)# dhcp snooping relay information remote-id remote01