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 Fri 25 Jul 2014, 08:56
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 Posts_count  
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}
Sub_title: 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

Edited_time_total
Back to top
View user's profile Send_private_message MSNM 
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: 1446
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 MSNM 
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:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0535s ][ Queries: 11 (0.0033s) ][ GZIP on ]