Junos OS

IMPORTANT MODERATION NOTICE

This community is currently under full moderation, meaning  all posts will be reviewed before appearing in the community. Please expect a brief delay—there is no need to post multiple times. If your post is rejected, you'll receive an email outlining the reason(s). We've implemented full moderation to control spam. Thank you for your patience and participation.



Expand all | Collapse all

EX switch sending chassis serial number to DHCP server instead of hostname

  • 1.  EX switch sending chassis serial number to DHCP server instead of hostname

    Posted 9 days ago
    Hey there,

    I have a few new EX devices(EX4300/EX3200) that I'm throwing on a management network using their me0 physical management interfaces. Management network has a DHCP server that puts the switch hostnames in DNS. The issue is each device sends its chassis serial number to the DHCP server instead of the device hostname(I need the switch hostname in DNS, not the S/n). I have observed the same behavior on JUNOS 18.2R3 and 20.4R1. Any ideas?

    me0.0 config (device hostname visible):

    DHCPREQUEST packet from EX device to DHCP server showing serial number as device hostname:

    Chassis S/N:




    ------------------------------
    ISAAC COLLINS
    ------------------------------


  • 2.  RE: EX switch sending chassis serial number to DHCP server instead of hostname

    Posted 8 days ago

    Each me0 has a unique MAC. Reserve the MAC in DHCP to get the IP address you want for that device.

    You can also just statically assign the IP and forget about DHCP no?

    Having  DHCP assign different addresses is only useful if you remove the switch from, say Datacenter A to B. That second DHCP scope in DC 2 would give a new IP for that scope and a DNS name is associated with that new IP.

    Maybe it would be useful if you have a datacenter redesign, but that doesn't happen all the time!

    But static is fine if the switch will never move.

    -Ambi