MacOS display network interface configuration (command line)
- January 28th, 2011
- Posted in Documentation
- Write comment
To display the network interface information for a particular network interface in Snow Leopard (not sure about other versions) use the following:
ipconfig getpacket interface
For example,
# ipconfig getpacket en0
op = BOOTREPLY
htype = 1
flags = 0
hlen = 6
hops = 0
xid = 446704316
secs = 0
ciaddr = 172.18.32.24
yiaddr = 172.18.32.24
siaddr = 0.0.0.0
giaddr = 0.0.0.0
chaddr = 0:1e:c2:f:1b:45
sname = dhcp.domain.com
file =
options:
Options count is 8
dhcp_message_type (uint8): ACK 0x5
server_identifier (ip): 172.18.10.45
lease_time (uint32): 0x15180
subnet_mask (ip): 255.255.0.0
router (ip_mult): {172.18.10.1}
domain_name_server (ip_mult): {172.18.10.65, 172.18.10.66}
domain_name (string): domain.local
end (none):
This gives you much more information than a standard ifconfig command. The command above will display all the current options for the interface. You can narrow this down with the getoption parameter.
No comments yet.