wiki:find_ip_address
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
wiki:find_ip_address [2016/07/24 14:16] – walkeradmin | wiki:find_ip_address [2023/03/21 19:57] (current) – walkeradmin | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
+ | <color darkorange> | ||
+ | \\ | ||
+ | \\ | ||
+ | --- | ||
+ | Update, on Centos 7 and onwards this works and is a great mini view of interface IPs, especially if you have a lot of interfaces. | ||
+ | ip -br -c a | ||
+ | \\ | ||
+ | \\ | ||
+ | ip is the ip command | ||
+ | -br is brief | ||
+ | -c is colourised | ||
+ | a is all interfaces | ||
\\ | \\ | ||
\\ | \\ | ||
Line 25: | Line 37: | ||
ip link show eth0 | ip link show eth0 | ||
\\ | \\ | ||
+ | \\ | ||
+ | We can use grep to filter out just the information we require: | ||
+ | \\ | ||
+ | Show MAC address of an interface - ifconfig eth0 |grep HWaddr | ||
+ | \\ | ||
+ | \\ | ||
+ | | ||
wiki/find_ip_address.1469366187.txt.gz · Last modified: 2023/03/09 22:35 (external edit)