cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
773
Views
0
Helpful
2
Replies

IOS XR DHCP options marking

yfrolov
Level 1
Level 1

Greetings colleagues.
Without your help, nowhere
There is the following topology:
CE -> ncs540->asr9010 -> dhcp asr 9010
between ncs540 is configured XC to asr9010 on which the bridge domain is configured.
between asr 9010 and dhcp server direct link.
it is necessary for the client to hang option 82 on the asr9010 and send it to the dhcp server.
I figured out how to enable the options, but how can I set the format for the circuit_id?

asr9010 config:

dhcp ipv4
profile TEST_SNOOP snoop
trusted
relay information option
relay information option remote-id format-type ascii 6918
!
l2vpn
bridge group test_arp_insp_snoop
bridge-domain test_arp
mtu 8990
interface Bundle-Ether7.69
!
neighbor 100.0.0.2 pw-id 69
!
neighbor 100.0.0.2 pw-id 6918
dhcp ipv4 snoop profile TEST_SNOOP
split-horizon group
!
!
!
!
OUTPUT from DHCP server:
RP/0/RSP0/CPU0:Oct 11 11:14:33.753 UTC: dhcpd[1119]: DHCPD_FILTER_PACKET: pktRx id 293: option: RELAY_INFORMATION: CIRCUIT_ID: 0x00-04-00-45-00-00
RP/0/RSP0/CPU0:Oct 11 11:14:33.753 UTC: dhcpd[1119]: DHCPD_FILTER_PACKET: pktRx id 293: option: RELAY_INFORMATION: REMOTE_ID: 6918

2 Replies 2

tkarnani
Cisco Employee
Cisco Employee

is this what you are looking for?

 

RP/0/RSP0/CPU0:ASR-9001-E(config)#dhcp ipv4
RP/0/RSP0/CPU0:ASR-9001-E(config-dhcpv4)#interface  t tenGigE 0/0/0/0  proxy information option format-type circuit-id format-string "tenGigE 0/0/0/0                  :%s" ?
                                                      ^
% Invalid input detected at '^' marker.
RP/0/RSP0/CPU0:ASR-9001-E(config-dhcpv4)#interface  tenGigE 0/0/0/0  proxy information option format-type circuit-id format-string "tenGigE 0/0/0/0:%                  s ?
Warning: end-quote required for quoted string.
WORD
RP/0/RSP0/CPU0:ASR-9001-E(config-dhcpv4)#interface  tenGigE 0/0/0/0  proxy information option format-type circuit-id format-string "tenGigE 0/0/0/0:%                  s" ?
  inner-vlan-id     Inner vlan id tag
  outer-vlan-id     Outer vlan id tag
  physical-chassis  Rack
  physical-port     Port
  physical-slot     Slot
  physical-subport  Subport
  physical-subslot  Subslot
RP/0/RSP0/CPU0:ASR-9001-E(config-dhcpv4)#interface  tenGigE 0/0/0/0  proxy information option format-type circuit-id format-string "tenGigE 0/0/0/0:%                  RP/0/RSP0/CPU0:ASR-9001-E(config-dhcpv4)#$mat-type circuit-id format-string "tenGigE 0/0/0/0:%s"  outer-vlan-id ?
  inner-vlan-id     Inner vlan id tag
  outer-vlan-id     Outer vlan id tag
  physical-chassis  Rack
  physical-port     Port
  physical-slot     Slot
  physical-subport  Subport
  physical-subslot  Subslot
  <cr>
RP/0/RSP0/CPU0:ASR-9001-E(config-dhcpv4)#$mat-type circuit-id format-string "tenGigE 0/0/0/0:%s"  outer-vlan-id

@tkarnani  Thanks for the answer!
yes, it is, but I want to do it for a neighbor in the bridge domain.
The point is that the NCS 540 acts as an access device and it is not possible to hang option 82 on it