List DHCP Address
(2015-02-11)
Problem
My SRX has been assigned an IP address and I don't know what it is. I have a serial terminal connected to the device.
Solution
root> show system services dhcp client
Logical Interface name vlan.0
Hardware address a8:d0:e5:xx:xx:xx
Client status bound
Address obtained xx.30.1.197
Update server disabled
Lease obtained at 2015-02-11 20:13:26 UTC
Lease expires at 2015-02-12 20:13:26 UTC
DHCP options:
Name: server-identifier, Value: xx.30.1.151
Code: 1, Type: ip-address, Value: 255.255.255.0
Name: router, Value: [ xx.30.1.254 ]
Name: domain-name, Value: xx.local
Name: name-server, Value: [ xx.30.1.151, xx.30.1.150 ]
Name: boot-server, Value: xx.30.1.148
Name: boot-file, Value: pxelinux.0