Advertisement
teknoraver

iproute wat

Dec 15th, 2020 (edited)
321
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.10 KB | None | 0 0
  1. root@debian64:/tmp# cp /sbin/ip ipaddr
  2. root@debian64:/tmp# cp /sbin/ip ipro
  3. root@debian64:/tmp# cp /sbin/ip ipli
  4. root@debian64:/tmp# cp /sbin/ip iph
  5.  
  6. root@debian64:/tmp# ./ipaddr
  7. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
  8. link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
  9. inet 127.0.0.1/8 scope host lo
  10. valid_lft forever preferred_lft forever
  11. 4: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
  12. link/ether 52:54:00:12:34:56 brd ff:ff:ff:ff:ff:ff
  13. inet 192.168.122.76/24 brd 192.168.122.255 scope global dynamic eth0
  14. valid_lft 3548sec preferred_lft 3548sec
  15.  
  16. root@debian64:/tmp# ./ipli
  17. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
  18. link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
  19. 4: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
  20. link/ether 52:54:00:12:34:56 brd ff:ff:ff:ff:ff:ff
  21.  
  22. root@debian64:/tmp# ./ipro
  23. default via 192.168.122.1 dev eth0
  24. 192.168.122.0/24 dev eth0 proto kernel scope link src 192.168.122.76
  25.  
  26. root@debian64:/tmp# ./iph
  27. Usage: ip [ OPTIONS ] OBJECT { COMMAND | help }
  28. ip [ -force ] -batch filename
  29. where OBJECT := { link | address | addrlabel | route | rule | neigh | ntable |
  30. tunnel | tuntap | maddress | mroute | mrule | monitor | xfrm |
  31. netns | l2tp | fou | macsec | tcp_metrics | token | netconf | ila |
  32. vrf | sr | nexthop | mptcp }
  33. OPTIONS := { -V[ersion] | -s[tatistics] | -d[etails] | -r[esolve] |
  34. -h[uman-readable] | -iec | -j[son] | -p[retty] |
  35. -f[amily] { inet | inet6 | mpls | bridge | link } |
  36. -4 | -6 | -I | -D | -M | -B | -0 |
  37. -l[oops] { maximum-addr-flush-attempts } | -br[ief] |
  38. -o[neline] | -t[imestamp] | -ts[hort] | -b[atch] [filename] |
  39. -rc[vbuf] [size] | -n[etns] name | -N[umeric] | -a[ll] |
  40. -c[olor]}
  41.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement