UMN:CLI User Manual
V5808
342
The DHCP option 82 field’s circuit-ID/remote-ID can be mapped to the option format
defined by variable values with special character (%). The following is an example of
configuring the switch running DHCP snooping with option 82.
SWITCH(config)# ip dhcp option format circuit
SWITCH(dhcp-opt[circuit])# attr 1 type 1 length variable value string %FRAME
SWITCH(dhcp-opt[circuit])# attr 2 type 2 length variable value string %SLOT
SWITCH(dhcp-opt[circuit])# attr 3 type 3 length variable value string %PORT
SWITCH(dhcp-opt[circuit])# attr 4 type 4 length variable value string %VID
SWITCH(dhcp-opt[circuit])# attr 5 length-hidden variable value string %ONU-ID
SWITCH(dhcp-opt[circuit])# attr 6 length-hidden variable value
string %ONU_PORT_NUM
SWITCH(dhcp-opt[circuit])# exit
SWITCH(config)#
SWITCH(config)# ip dhcp option format remote
SWITCH(dhcp-opt[remote])# attr 1 type 1 length variable value string %CPU-MAC
SWITCH(dhcp-opt[remote])# attr 2 type 2 length variable value string 10.1.1.1
SWITCH(dhcp-opt[remote])# exit
SWITCH(config)#
SWITCH(config)# ip dhcp option82
SWITCH(config-opt82)# system-remote-id option format remote
SWITCH(config-opt82)# system-circuit-id 1-4 option format circuit
SWITCH(config-opt82)# trust default permit
SWITCH(config-opt82)# exit
SWITCH(config)# gpon
SWITCH(gpon)# traffic-profile TEST create
SWITCH(config-traffic-pf[TEST])# mapper 1
SWITCH(config-traffic-pf[TEST]-mapper[1])# gemport count 1
SWITCH(config-traffic-pf[TEST]-mapper[1])# write memory
SWITCH(config-traffic-pf[TEST]-mapper[1])# exit
SWITCH(config-traffic-pf[TEST])# mapper 2
SWITCH(config-traffic-pf[TEST]-mapper[2])# gemport count 1
SWITCH(config-traffic-pf[TEST]-mapper[2])# write memory
SWITCH(config-traffic-pf[TEST]-mapper[2])# exit
SWITCH(config-traffic-pf[TEST])# bridge 1
SWITCH(config-traffic-pf[TEST]-bridge[1])# ani mapper 1
SWITCH(config-traffic-pf[TEST]-bridge[1]-ani[mapper:1])# vlan-filter vid
3500,3510 untagged allow
SWITCH(config-traffic-pf[TEST]-bridge[1]-ani[mapper:1])# write memory
SWITCH(config-traffic-pf[TEST]-bridge[1]-ani[mapper:1])# exit
SWITCH(config-traffic-pf[TEST]-bridge[1])# uni eth 1
SWITCH(config-traffic-pf[TEST]-bridge[1]-uni[eth:1])# multicast-profile
V3510_tag
SWITCH(config-traffic-pf[TEST]-bridge[1]-uni[eth:1])# extended-vlan-tagging-
operation HSI_1
SWITCH(config-traffic-pf[TEST]-bridge[1]-uni[eth:1])# write memory
SWITCH(config-traffic-pf[TEST]-bridge[1]-uni[eth:1])# exit
SWITCH(config-traffic-pf[TEST]-bridge[1])# exit
SWITCH(config-traffic-pf[TEST])# bridge 2
SWITCH(config-traffic-pf[TEST]-bridge[2])# ani mapper 2
SWITCH(config-traffic-pf[TEST]-bridge[2]-ani[mapper:2])# vlan-filter vid
3500,3510 untagged allow
SWITCH(config-traffic-pf[TEST]-bridge[2]-ani[mapper:2])# write memory
SWITCH(config-traffic-pf[TEST]-bridge[2]-ani[mapper:2])# exit