Advertisement
Guest User

Untitled

a guest
Mar 28th, 2015
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.06 KB | None | 0 0
  1. SnakeBook:~ root# netstat -nr
  2. Routing tables
  3.  
  4. Internet:
  5. Destination Gateway Flags Refs Use Netif Expire
  6. default 192.168.1.1 UGSc 14 4 en0
  7. default 192.168.42.129 UGScI 0 0 en7
  8.  
  9. SnakeBook:~ root# nslookup speedtest.net
  10. Server: 192.168.1.1
  11. Address: 192.168.1.1#53
  12.  
  13. Non-authoritative answer:
  14. Name: speedtest.net
  15. Address: 216.146.46.10
  16. Name: speedtest.net
  17. Address: 216.146.46.11
  18.  
  19. SnakeBook:~ root# route add -host 216.146.46.10 192.168.42.129
  20. add host 216.146.46.10: gateway 192.168.42.129
  21. SnakeBook:~ root# route add -host 216.146.46.11 192.168.42.129
  22. add host 216.146.46.11: gateway 192.168.42.129
  23. SnakeBook:~ root# netstat -nr
  24. Routing tables
  25.  
  26. Internet:
  27. Destination Gateway Flags Refs Use Netif Expire
  28. default 192.168.1.1 UGSc 14 4 en0
  29. default 192.168.42.129 UGScI 0 0 en7
  30. 127 127.0.0.1 UCS 0 0 lo0
  31. 127.0.0.1 127.0.0.1 UH 3 13259 lo0
  32. 169.254 link#4 UCS 0 0 en0
  33. 169.254 link#12 UCSI 0 0 en7
  34. 192.168.1 link#4 UCS 3 0 en0
  35. 192.168.1.1/32 link#4 UCS 1 0 en0
  36. 192.168.1.1 0:1c:f0:38:4e:49 UHLWIir 17 509 en0 1199
  37. 192.168.1.4/32 link#4 UCS 0 0 en0
  38. 192.168.1.7 30:59:b7:a6:3b:cf UHLWI 0 0 en0 1155
  39. 192.168.1.8 64:9a:be:ee:43:93 UHLWI 0 0 en0 1105
  40. 192.168.1.255 ff:ff:ff:ff:ff:ff UHLWbI 0 3 en0
  41. 192.168.42 link#12 UCS 1 0 en7
  42. 192.168.42.114/32 link#12 UCS 1 0 en7
  43. 192.168.42.129/32 link#12 UCS 1 0 en7
  44. 192.168.42.129 76:0:b4:4:cc:38 UHLWIir 3 2 en7 713
  45. 192.168.42.255 ff:ff:ff:ff:ff:ff UHLWbI 0 3 en7
  46. 216.146.46.10 192.168.42.129 UGHS 0 0 en7
  47. 216.146.46.11 192.168.42.129 UGHS 0 0 en7
  48.  
  49. SnakeBook:~ root# traceroute speedtest.net
  50. traceroute: Warning: speedtest.net has multiple addresses; using 216.146.46.11
  51. traceroute to speedtest.net (216.146.46.11), 64 hops max, 52 byte packets
  52. 1 192.168.42.129 (192.168.42.129) 0.760 ms 0.192 ms 0.366 ms
  53. ...
  54. ...
  55. 12 * *^C
  56.  
  57. SnakeBook:tmp root# netstat -nr | grep default
  58. default 192.168.1.1 UGSc 30 4 en0
  59. default 192.168.42.129 UGScI 0 0 en7
  60. SnakeBook:tmp root#
  61. SnakeBook:tmp root#
  62. SnakeBook:tmp root# route delete default 192.168.42.129
  63. delete net default: gateway 192.168.42.129
  64. SnakeBook:tmp root#
  65. SnakeBook:tmp root#
  66. SnakeBook:tmp root# netstat -nr | grep default
  67. default 192.168.42.129 UGScI 0 0 en7
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement