linux:networking
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:networking [2024/02/16 09:40] – [Linux IP Command] bstafford | linux:networking [2026/03/21 01:04] (current) – [Show Network Data] bstafford | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| [[https:// | [[https:// | ||
| + | ===== Show Subnet Data ===== | ||
| + | < | ||
| + | < | ||
| ===== Show Network Data ===== | ===== Show Network Data ===== | ||
| - | Use < | + | Use [[https:// |
| or | or | ||
| < | < | ||
| Line 10: | Line 13: | ||
| INTERFACE=ens34 | INTERFACE=ens34 | ||
| - | echo " | + | echo " |
| - | ip -4 addr show $INTERFACE | grep inet | awk -F " " ' | + | ip -4 addr show $INTERFACE | grep inet | awk -F " " ' |
| - | ip route | grep default | awk -F " " ' | + | ip route | grep default |
| - | resolvectl -i $INTERFACE status --no-pager | awk '/DNS Server/, | + | resolvectl -i $INTERFACE status --no-pager | awk '/DNS Server/, |
| + | nmcli connection show Wired\ connection\ 1 | grep -i dhcp_server_identifier | awk -F " " ' | ||
| + | |||
| + | Get DHCP Server | ||
| + | < | ||
| + | nmcli connection show "< | ||
| ====== Ubuntu 20.04 Static IP ====== | ====== Ubuntu 20.04 Static IP ====== | ||
| set the following in ''/ | set the following in ''/ | ||
linux/networking.1708076420.txt.gz · Last modified: by bstafford
