Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

ip Command Line Cheat Sheet, Cheat Sheet of Computer Systems Networking and Telecommunications

ip configuration and other settings through commands

Typology: Cheat Sheet

2020/2021

Uploaded on 04/23/2021

borich
borich 🇬🇧

4.3

(26)

293 documents

1 / 6

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
“ip” Command cheat sheet (Command Line
Reference)
IP QUERIES
addr: Display IP Addresses and property information (abbreviation of address)
SUBCOMMAND DESCRIPTIONS AND TASKS
ip addr Show information for all addresses
ip addr show dev em1 Display information only for device em1
link: Manage and display the state of all network interfaces
SUBCOMMAND DESCRIPTIONS AND TASKS
ip link Show information for all interfaces
ip link show dev em1 Display information only for device em1
ip -s link Display interface statistics
route: Display and alter the routing table.
pf3
pf4
pf5

Partial preview of the text

Download ip Command Line Cheat Sheet and more Cheat Sheet Computer Systems Networking and Telecommunications in PDF only on Docsity!

“ip” Command cheat sheet (Command Line

Reference)

IP QUERIES

addr : Display IP Addresses and property information (abbreviation of address) SUBCOMMAND DESCRIPTIONS AND TASKS ip addr Show information for all addresses ip addr show dev em1 Display information only for device em link : Manage and display the state of all network interfaces SUBCOMMAND DESCRIPTIONS AND TASKS ip link Show information for all interfaces ip link show dev em1 Display information only for device em ip -s link Display interface statistics route : Display and alter the routing table.

SUBCOMMAND DESCRIPTIONS AND TASKS

ip route List all of the route entries in the kernel maddr : Manage and display multicast IP addresses. SUBCOMMAND DESCRIPTIONS AND TASKS ip maddr Display multicast information for all devices ip maddr show dev em1 Display multicast information for device em neigh : Show neighbour objects; also known as the ARP table for IPv SUBCOMMAND DESCRIPTIONS AND TASKS ip neigh Display neighbour objects ip neigh show dev em1 Show the ARP cache for device em

MODIFYING ADDRESS AND LINK PROPERTIES

addr add : Add an address. SUBCOMMAND DESCRIPTIONS AND TASKS

ip route add default via 192.168.1. dev em Add a default route (for all addresses) via the local gateway 192.168.1.1 that can be reached on device em ip route add 192.168.1.0/24 via 192.168.1. Add a route to 192.168.1.0/24 via the gateway at 192.168.1. ip route add 192.168.1.0/24 dev em Add a route to 192.168.1.0/24 that can be reached on device em route delete : Delete a routing table entry. SUBCOMMAND DESCRIPTIONS AND TASKS ip route delete 192.168.1.0/24 via 192.168.1.1 Delete the route for 192.168.1.0/24 via the gateway at 192.168.1. route replace : Replace, or add if not defined, a route. SUBCOMMAND DESCRIPTIONS AND TASKS ip route replace 192.168.1.0/24 dev em1 Replace the defined route for 192.168.1.0/24 to use device em route get : Display the route an address will take.

SUBCOMMAND DESCRIPTIONS AND TASKS

ip route get 192.168.1.5 Display the route taken for IP 192.168.1.

MANAGING THE ARP TABLE

neigh add : Add an entry to the ARP Table. SUBCOMMAND DESCRIPTIONS AND TASKS ip neigh add 192.168.1.1 lladdr 1:2:3:4:5:6 dev em1 Add address 192.168.1.1 with MAC 1:2:3:4:5:6 to em neigh del : Invalidate an entry. SUBCOMMAND DESCRIPTIONS AND TASKS ip neigh del 192.168.1.1 dev em1 Invalidate the entry for 192.168.1.1 on em neigh replace : Replace, or adds if not defined, an entry to the ARP table. SUBCOMMAND DESCRIPTIONS AND TASKS ip neigh replace 192.168.1.1 lladdr 1:2:3:4:5: dev em Replace the entry for address 192.168.1.1 to use MAC 1:2:3:4:5:6 on em