Linux顯示自己的ip:ip addr show

指令:ip addr show

執行結果:

[email protected]:~# ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    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: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 00:0c:29:83:b5:81 brd ff:ff:ff:ff:ff:ff
    inet 192.168.214.131/24 brd 192.168.214.255 scope global dynamic noprefixroute ens33
       valid_lft 1723sec preferred_lft 1723sec
    inet6 fe80::ae:ed6:c9ba:edf6/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever