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