Difference between revisions of "Ip address show"
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 14: | Line 14: | ||
* <code>[[ifconfig -a]]</code> | * <code>[[ifconfig -a]]</code> | ||
* <code>[[virsh domifaddr]]</code> and <code>[[virsh domiflist]]</code> | * <code>[[virsh domifaddr]]</code> and <code>[[virsh domiflist]]</code> | ||
+ | * <code>[[netstat -an]]</code> | ||
+ | * macOS: <code>[[ipconfig getifaddr en0]]</code> | ||
== See also == | == See also == |
Latest revision as of 10:23, 20 September 2023
This article is a Draft. Help us to complete it.
ip address show
ip a s
ip addr show | grep "inet " | grep -v 127.0.0.1
MACHINE_IP=$(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1)
Related commands[edit]
hostname -I (--all-ip-addresses)
ifconfig -a
virsh domifaddr
andvirsh domiflist
netstat -an
- macOS:
ipconfig getifaddr en0
See also[edit]
Advertising: