Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 22 Dec 2014, 20:53
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
ifconfig and discovering the default Gateway? {Solved}
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [5 Posts]  
Author Message
Dookus


Joined: 15 Mar 2011
Posts: 47
Location: now living in wonderful Stanmore, inner western suburb of Sydney Australia, where the sun shines nic

PostPosted: 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
View user's profile Send private message MSN Messenger 
Ian
Official Dog Handler


Joined: 04 May 2005
Posts: 1237
Location: Queensland

PostPosted: 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
View user's profile Send private message 
CatDude


Joined: 03 Jan 2007
Posts: 1497
Location: UK

PostPosted: Tue 19 Apr 2011, 05:25    Post subject:  

Hello Dookus

Dookus wrote:
...how do you discover the default gateways IP?


You could try this:
Code:
route -n

That will give you something like this: (only formatted better Rolling Eyes )
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:
Code:
route

That will give you something like this: (only formatted better Rolling Eyes )
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:
Code:
man route

Or click here Wink

Hope that helps
CatDude
.

_________________

Back to top
View user's profile Send private message 
Dookus


Joined: 15 Mar 2011
Posts: 47
Location: now living in wonderful Stanmore, inner western suburb of Sydney Australia, where the sun shines nic

PostPosted: 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
View user's profile Send private message MSN Messenger 
Béèm


Joined: 21 Nov 2006
Posts: 11782
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

PostPosted: 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
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [5 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0568s ][ Queries: 12 (0.0061s) ][ GZIP on ]