Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. eth1 Link encap:Ethernet HWaddr AA:BB:CC:DD:EE:FF
  2. inet addr:169.254.1.1 Bcast:169.254.255.255 Mask:255.255.255.255
  3. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  4. RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  5. TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  6. collisions:0 txqueuelen:1000
  7. RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
  8. Base address:0x8000
  9.  
  10. lo Link encap:Local Loopback
  11. inet addr:127.0.0.1 Mask:255.0.0.0
  12. inet6 addr: ::1/128 Scope:Host
  13. UP LOOPBACK RUNNING MTU:16436 Metric:1
  14. RX packets:14 errors:0 dropped:0 overruns:0 frame:0
  15. TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
  16. collisions:0 txqueuelen:0
  17. RX bytes:1561 (1.5 KiB) TX bytes:1561 (1.5 KiB)
  18.  
  19. Kernel IP routing table
  20. Destination Gateway Genmask Flags Metric Ref Use Iface
  21. 169.254.1.1 * 255.255.255.255 UH 0 0 0 eth1
  22. A.B.C.96 * 255.255.255.240 U 0 0 0 eth0
  23. 127.0.0.0 * 255.0.0.0 U 0 0 0 lo
  24. default A.B.C.110 0.0.0.0 UG 0 0 0 eth0
  25.  
  26. PING 169.254.1.1 (169.254.1.1): 56 data bytes
  27. 64 bytes from 169.254.1.1: seq=0 ttl=64 time=0.143 ms
  28. 64 bytes from 169.254.1.1: seq=1 ttl=64 time=0.067 ms
  29.  
  30. # — let's add dummy IP-address to Wi-Fi NIC
  31. # ip ad ad 11.1.2.3/24 dev wlan0
  32. # — Now chage its scope from 'local' to 'link'
  33. # ip ro replace 11.1.2.3 dev wlan0 scope link table local
  34.  
  35. # — with tcpdump we can see now that's traffic to that dummy
  36. # ex-local IP-address actually tries to go out of Wi-Fi NIC:
  37.  
  38. 00:15:22.807607 ARP, Request who-has 11.1.2.3 tell 10.0.0.7, length 28
  39.  
  40. ip route get 169.254.1.1
  41.  
  42. local 169.254.1.1 dev lo src 169.254.1.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement