[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: IP address



On 17/07/15 18:49, John J. Boyer wrote:
None of these solutions work. ifconfig is not available on Jessie. ip
seems to be inapropriate. dig produces nothing. I have used ifconfig on
other distros.

I'm using DHCP at home, and it appears to me that the answer Lisi Reisz kindly provided you with is exactly what you want:

$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether c8:60:00:e9:69:34 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.2/24 brd 192.168.0.255 scope global dynamic eth0
       valid_lft 85953sec preferred_lft 85953sec
    inet6 fe80::ca60:ff:fee9:6934/64 scope link
       valid_lft forever preferred_lft forever

This shows the MAC, IPv4, and IPv6 addresses associated with the lo (local loopback) and eth0 (zero'th ethernet) interfaces of my system.


Reply to: