JWK - Jackall's IT Wiki

Sécurité, Système, Réseau

Outils pour utilisateurs

Outils du site


en:iproute2

iproute2 Cheatsheet

Introduction

Here is my notes on iproute2.

<note important>This page will be update… Stay tuned </note>

Display active route

  • IPv4
[jackall@ace ~]$ ip route show
default via 192.168.0.254 dev wlan0  proto static 
192.168.0.0/24 dev wlan0  proto kernel  scope link  src 192.168.0.36
  • IPv6
[jackall@ace ~]$ ip -6 route show
2001:0:5ef5:79fb:ABCD:e6:e0cd:357c via fe80::224:d4ff:feac:f5c6 dev wlan0  metric 0 
    cache 
2001:0:5ef5:79fd:ABCD:10:4dab:54dc via fe80::224:d4ff:feac:f5c6 dev wlan0  metric 0 
    cache 
2a00:1450:4007:807::ABCD via fe80::224:d4ff:feAB:CDc6 dev wlan0  metric 0 
    cache 
2a00:1450:4007:808::ACCD via fe80::224:d4ff:feAB:CDc6 dev wlan0  metric 0 
    cache 
2a00:1450:400c:c00::ABCD via fe80::224:d4ff:feAB:CDc6 dev wlan0  metric 0 
    cache 
2a01:e35:2e2d:ABCD::/64 dev wlan0  proto kernel  metric 256  expires 86272sec
fe80::/64 dev wlan0  proto kernel  metric 256 
default via fe80::224:d4ff:feAB:CDc6 dev wlan0  proto static  metric 1 
default via fe80::224:d4ff:feEF:DBc6 dev wlan0  proto ra  metric 1024  expires 1672sec

Display active ip address (IPv4 et IPv6)

[jackall@ace ~]$ ip address show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: p2p1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
    link/ether 30:f9:ed:AB:CD:FF brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether 08:3e:8e:dc:AB:CD brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.36/24 brd 192.168.0.255 scope global wlan0
    inet6 2a01:e3:2e2:f1FF:FFe:8eff:fedc:8db/64 scope global dynamic 
       valid_lft 86379sec preferred_lft 86379sec
    inet6 fe80::a3:ABff:feCD:8AB/64 scope link 
       valid_lft forever preferred_lft forever

Use -4 or -6 switches to filter output.

search?q=iproute2%20Cheatsheet%20network%20admin%20Linux%20EN&amp;btnI=lucky

en/iproute2.txt · Dernière modification: 2018/02/18 16:01 (modification externe)