1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-28 21:17:57 +01:00
tldr/pages/linux/ip.md
Sebastiaan Speck 7510205497
pages/*: fix small typos (#11831)
* pages/*: fix small typos

* Update ssh-copy-id.md

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* ansible-inventory: fix typo

* Update pages/linux/zathura.md

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>

* gcloud: fix typo

* fdesetup: mark as placeholder

* icalbuddy: use general placeholder

* ip: make it a placeholder

* git-svn: fix typo

* pages/*: fix typos

* kubectl-get: add mnemonics and long options

* kubectl-describe: add mnemonics and long options

* pip-install: use short option

* Update icalbuddy.md

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
2023-12-27 11:52:49 +05:30

745 B

ip

Show/manipulate routing, devices, policy routing and tunnels. Some subcommands such as ip address have their own usage documentation. More information: https://www.man7.org/linux/man-pages/man8/ip.8.html.

  • List interfaces with detailed info:

ip address

  • List interfaces with brief network layer info:

ip -brief address

  • List interfaces with brief link layer info:

ip -brief link

  • Display the routing table:

ip route

  • Show neighbors (ARP table):

ip neighbour

  • Make an interface up/down:

ip link set {{interface}} {{up|down}}

  • Add/Delete an IP address to an interface:

ip addr add/del {{ip}}/{{mask}} dev {{interface}}

  • Add a default route:

ip route add default via {{ip}} dev {{interface}}