I'm trying to find with ifconfig the correct command to find all the adapter(s) and the default gateway, have tried ifconfig -a which shows all the info on the local adapter(s), how do you discover the default gateways IP? as you do with the string "ipconfig /all" in windows?
Lucid Puppy 520
ifconfig and discovering the default Gateway? {Solved}
- Dookus
- Posts: 47
- Joined: Tue 15 Mar 2011, 05:53
- Location: now living in wonderful Stanmore, inner western suburb of Sydney Australia, where the sun shines nic
ifconfig and discovering the default Gateway? {Solved}
Last edited by Dookus on Tue 19 Apr 2011, 12:57, edited 1 time in total.
Hello Dookus
That will give you something like this: (only formatted better )
Or, if you want to get the name of the gateway
do this:
That will give you something like this: (only formatted better )
For more information regarding route
enter the following command:
Or click here
Hope that helps
CatDude
.
You could try this:Dookus wrote:...how do you discover the default gateways IP?
Code: Select all
route -n
Code: Select all
# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.1.254 0.0.0.0 UG 0 0 0 eth0
do this:
Code: Select all
route
Code: Select all
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default BThomehub.home 0.0.0.0 UG 0 0 0 eth0
For more information regarding route
enter the following command:
Code: Select all
man route
Hope that helps
CatDude
.
[img]http://www.smokey01.com/CatDude/.temp/sigs/acer-futile.gif[/img]
- Dookus
- Posts: 47
- Joined: Tue 15 Mar 2011, 05:53
- Location: now living in wonderful Stanmore, inner western suburb of Sydney Australia, where the sun shines nic
ifconfig and discovering the default Gateway?
Thanks guys, that's the stuff I had not found while reading the PDF I had downloaded.
This is the friendliest forum on the web
cheers
J
This is the friendliest forum on the web
cheers
J
- Béèm
- Posts: 11763
- Joined: Wed 22 Nov 2006, 00:47
- Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win
Dookus,
For the sake of fellow posters, could you edit the subject of your initial post and add [SOLVED] to the end?
For the sake of fellow posters, could you edit the subject of your initial post and add [SOLVED] to the end?
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]