Linux ip: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
=External=
* http://www.policyrouting.org/iproute2.doc.html
=Internal=
=Internal=


* [[Linux#Commands]]
* [[Linux#Commands|Linux]]


=Overview=
=Overview=


<tt>ip</tt>
<tt>ip</tt> is the Linux command to show and manipulate routing, devices, policy routing and tunnels.
 
=Installation=
 
==With yum==
 
yum install -y iproute
 
==With apt==
 
apt install -y iproute2
 
=Usage Examples=
 
==Show All Network Interfaces and Their Details==
 
<pre>
ip addr show
</pre>
 
==Show Details for a Specific Network Interface==
 
<pre>
ip addr show dev eth0
</pre>
 
==Turn Device On/Off==
 
<pre>
ip link set dev eth0 up|down
</pre>
 
==Change MULTICAST Flag on Device==
 
<pre>
ip link set dev eth0 multicast on|off
</pre>
 
==Routing==
 
* [[Linux_Routing_Configuration#Adding_Multicast_Routing_to_a_Specific_Network_Interface|Add Multicast Routing to a Specific Network Interface]].
 
=Multicast=
 
==maddr==
 
<pre>
ip maddr
</pre>
 
Displays multicast addresses.
 
==mrule==
 
<pre>
ip mrule
</pre>
 
=Route Management=
 
{{Internal|Linux Routing Configuration|Linux Routing Configuration}}

Latest revision as of 18:46, 27 September 2019

External

Internal

Overview

ip is the Linux command to show and manipulate routing, devices, policy routing and tunnels.

Installation

With yum

yum install -y iproute

With apt

apt install -y iproute2

Usage Examples

Show All Network Interfaces and Their Details

ip addr show

Show Details for a Specific Network Interface

ip addr show dev eth0

Turn Device On/Off

ip link set dev eth0 up|down

Change MULTICAST Flag on Device

ip link set dev eth0 multicast on|off

Routing

Multicast

maddr

ip maddr

Displays multicast addresses.

mrule

ip mrule

Route Management

Linux Routing Configuration