Advertisement
Guest User

Untitled

a guest
Oct 2nd, 2012
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. The Gateway to the Internet is 10.151.240.1!
  2. No internet connection...
  3. root@bt:~# route -n
  4. Kernel IP routing table
  5. Destination Gateway Genmask Flags Metric Ref Use Iface
  6. 10.151.248.0 0.0.0.0 255.255.248.0 U 0 0 0 eth0
  7. root@bt:~# route add default gw 10.151.240.1
  8. SIOCADDRT: No such process
  9.  
  10. But when I do:
  11.  
  12. route add -net 10.151.240.1 netmask 255.255.255.255 dev eth0
  13. route add default gw 10.151.240.1
  14. I get:
  15.  
  16. route -n
  17. Kernel IP routing table
  18. Destination Gateway Genmask Flags Metric Ref Use Iface
  19. 0.0.0.0 10.151.240.1 0.0.0.0 UG 0 0 0 eth0
  20. 10.151.240.1 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
  21. 10.151.248.0 0.0.0.0 255.255.248.0 U 0 0 0 eth0
  22.  
  23. ... Everything seems alright!
  24. Why can't I do
  25. route add default gw 10.151.240.1
  26. on the first step?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement