

To make an interface up (or down) in linux, use You can configure interface parameters like MAC, MTU, status etc using “ip link” Linux networking commands, part 1.2 : ip link Sudo ip -6 addr add fc00::1/64 dev wlp3s0 You can use the option “-6” with the above command to configure or delete IPv6 address. If multiple ip addresses are configured, you can delete all address using “flush” Note: “ip” command allows configuring multiple ip address in one interface. To delete ip address replace the option “add” with “del” in the above command “ip addr” can be used to add, delete, replace and show IP address of an interface. Linux networking commands, part 1.1 : ip addr “ip -bri a” will show both IPv4 and IPv6 addresses, If you want to filter only IPv4 addresses use If you need more detailed information about interfaces like MAC address, MTU size, broadcast address etc, use


(You can also use the command in abbreviated form as “ip -bri addr” or just “ip -bri a” )įor those who like a fancy output, use “-c” option to get the output in color This command can also be used for monitoring the status of interfaces, routes, addresses continuously.Ĭhecking IP address and status of all interfaces “ip” can be used for configuring interfaces, multicast address, arp table, routes, NAT, packet encryption, tunneling, routing policies etc.

“ip” command is the SwissKnife for networking included in the iproute2 package. This tutorial describes how to use “ip” command for configuring IP address, MAC address, routing table, ARP table etc. Networking commands which are part of of the iproute2 package are ip, tc, arpd, ss, bridge, devlink, rtmon, nstat, routef, routel, ctstat and lnstat. Iproute2 package contain commands for linux kernal’s advanced networking features like tunneling, traffic controlling, packet encryption along with commands for doing familiar tasks like configuration of interfaces (IP addresses, MAC addresses, MTU, Link status etc), routing table, multicast addressing, arp table etc. Though popular, most of the linux distributions are slowly trying replace these with the networking commands present in new package iproute2. These commands are part of the package net-tools which has been part of all linux distributions for a long time. You would have probably used commands like ifconfig, route, arp, hostname etc if you have done networking with linux devices. Linux networking commands are provided by two packages iproute2 and net-tools. Checking ARP table using "ip neighbor" command.
