| Author |
Message |
Dookus

Joined: 15 Mar 2011 Posts: 19 Location: now living in wonderful Stanmore, inner western suburb of Sydney Australia, where the sun shines nic
|
Posted: Tue 19 Apr 2011, 04:37 Post subject:
ifconfig and discovering the default Gateway? {Solved} Subject description: What are the commands for ifconfig |
|
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
Last edited by Dookus on Tue 19 Apr 2011, 08:57; edited 1 time in total
|
|
Back to top
|
|
 |
Ian
Official Dog Handler

Joined: 04 May 2005 Posts: 1237 Location: Queensland
|
Posted: Tue 19 Apr 2011, 05:22 Post subject:
|
|
In Puppy.
Open a terminal and type in:
route -n
this should give you a couple of rows of info with headings:
Destination Gateway Genmask Flags Metric Ref Use Iface
the second row should have your gateway address.
|
|
Back to top
|
|
 |
CatDude

Joined: 03 Jan 2007 Posts: 1355 Location: UK
|
Posted: Tue 19 Apr 2011, 05:25 Post subject:
|
|
Hello Dookus
| Dookus wrote: | | ...how do you discover the default gateways IP? |
You could try this:
That will give you something like this: (only formatted better )
| Code: | # 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 |
Or, if you want to get the name of the gateway
do this:
That will give you something like this: (only formatted better )
| Code: | # 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:
Or click here
Hope that helps
CatDude
.
_________________

|
|
Back to top
|
|
 |
Dookus

Joined: 15 Mar 2011 Posts: 19 Location: now living in wonderful Stanmore, inner western suburb of Sydney Australia, where the sun shines nic
|
Posted: Tue 19 Apr 2011, 06:35 Post subject:
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
|
|
Back to top
|
|
 |
Béèm

Joined: 21 Nov 2006 Posts: 11782 Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win
|
Posted: Tue 19 Apr 2011, 07:21 Post subject:
|
|
Dookus,
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).
Consult Wikka
Use peppyy's puppysearch
|
|
Back to top
|
|
 |
|