[j-nsp] Event script to advertise DHCP issued IP in LLDP?

Matt Peterson matt at peterson.org
Mon Apr 8 21:25:50 EDT 2019


In our environment we're using EX2300-C's as 10Gbps NID's for metro
ethernet use *(meaning they're essentially a managed L2 switch with an
in-band management IP). *These are configured without an IP address on the
physical me0 interface, but instead receive an IP via DHCPv4 & v6 as a
tagged "irb" VLAN interface *(note the dhcp retransmission-attempt,
-interval, and force-discover options are crucial here - otherwise the unit
will timeout all DHCP attempts prior to the interface having link up..).*

We're trying to figure out an approach to define the "protocols lldp
management-address" stanza with the current issued IP address.
Unfortunately this command only accepts a static defined IP address, not an
interface name. Upon looking at the possible events for a SLAX or Python
script, only DHCP serving events exist - not DHCP client *(based off "help
syslog" listing). *This is probably a feature request, but maybe another
creative solution is possible? Thanks.

--Matt


More information about the juniper-nsp mailing list