Gateway IP in Ubuntu? (or Linux)

Monday, July 7, 2008 | Labels: , | |

Well, in Windows you usually do this:

ipconfig /all

They call it the ipconfig command, but in truth, you can never config-ure anything with that command. In Ubuntu, or any other Linux distro in particular, you simply do this to get your gateway IP.

netstat -r | grep default

or you can also do...

ip neigh

The latter is a lot faster though.

Useful when someone needs to configure their IP statically/manually.

0 comments: