linux:networking
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:networking [2022/11/23 12:49] – external edit 127.0.0.1 | linux:networking [2026/03/21 01:04] (current) – [Show Network Data] bstafford | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Linux IP Command ====== | ====== Linux IP Command ====== | ||
| [[https:// | [[https:// | ||
| + | |||
| + | ===== Show Subnet Data ===== | ||
| + | < | ||
| + | < | ||
| + | ===== Show Network Data ===== | ||
| + | |||
| + | Use [[https:// | ||
| + | or | ||
| + | < | ||
| + | |||
| + | INTERFACE=ens34 | ||
| + | |||
| + | echo " | ||
| + | ip -4 addr show $INTERFACE | grep inet | awk -F " " ' | ||
| + | ip route | grep default | grep " | ||
| + | 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.1669207782.txt.gz · Last modified: by 127.0.0.1
