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 13:13] – 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 13: | Line 25: | ||
| ifconfig |more | ifconfig |more | ||
| \\ | \\ | ||
| - | If you know the interface name, you can use that to show the IP details of just that interface | + | If you know the interface name, you can use that to show the IP details of just that interface: |
| \\ | \\ | ||
| ifconfig eth0 | ifconfig eth0 | ||
| \\ | \\ | ||
| + | This will give the details for a single interface only | ||
| + | \\ | ||
| + | \\ | ||
| + | If an interface is using DHCP, and you see no IP Address, then you might have a link issue, to check this you can use: | ||
| + | \\ | ||
| + | ip link show | ||
| + | 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.1469366020.txt.gz · Last modified: (external edit)
