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

Vincent Bernat bernat at luffy.cx
Tue Apr 9 01:14:14 EDT 2019


 ❦  8 avril 2019 18:25 -07, Matt Peterson <matt at peterson.org>:

> 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.

Maybe: set interfaces me0 unit 0 family inet unnumbered-address
xe-0/0/0.0 ?
-- 
In the Spring, I have counted 136 different kinds of weather inside of
24 hours.
		-- Mark Twain, on New England weather


More information about the juniper-nsp mailing list