Difference between revisions of "Iproute2"

From HackerNet
Jump to: navigation, search
(Created page with "Iproute2 is a collection of utilities for controlling TCP/IP networking and traffic control in Linux. iproute2 is usually shipped in a package called iproute or iproute2 and c...")
 
m
Line 6: Line 6:
 
==ip==
 
==ip==
 
===ip address show===
 
===ip address show===
  ip a s
+
  ip a
 
  ip a s eth0
 
  ip a s eth0
 
===ip routes show===
 
===ip routes show===
  ip r s
+
  ip r
 
===ip link list===
 
===ip link list===
  ip l l
+
  ip l
 +
ip -s l (med statistik)
 
===ip neigh show===
 
===ip neigh show===
  ip n s
+
  ip n
 
===ip neigh flush===
 
===ip neigh flush===
 
  ip n f
 
  ip n f
 
==tc==
 
==tc==

Revision as of 15:47, 12 May 2015

Iproute2 is a collection of utilities for controlling TCP/IP networking and traffic control in Linux. iproute2 is usually shipped in a package called iproute or iproute2 and consists of several tools, of which the most important are ip and tc. ip controls IPv4 and IPv6 configuration and tc stands for traffic control.

Med dessa kommandon behöver man inte skriva ut alla bokstäver, likt switchar och routrar. T.ex. ip a s är samma som ip address show
Ifconfig, arp och route-kommandona är påväg bort, vänj dig.

ip

ip address show

ip a
ip a s eth0

ip routes show

ip r

ip link list

ip l
ip -s l (med statistik)

ip neigh show

ip n

ip neigh flush

ip n f

tc