LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-19-2004, 11:28 AM   #1
nafsnipe685
LQ Newbie
 
Registered: Jan 2004
Location: Texas, USA
Distribution: Slackware 9
Posts: 19

Rep: Reputation: 0
Default Gateway using ifconfig


im trying to figure out how to set up the default gateway with ifconfig with a command similar to
ifconfig eth0 inet 192.168.1.1
wich is to setup the ip address, any clues?

Last edited by nafsnipe685; 07-19-2004 at 11:54 AM.
 
Old 07-19-2004, 11:31 AM   #2
nafsnipe685
LQ Newbie
 
Registered: Jan 2004
Location: Texas, USA
Distribution: Slackware 9
Posts: 19

Original Poster
Rep: Reputation: 0
oh and by the way im using slackware 9, wich really doesnt matter since ifconfig is the same on all linux systems.
 
Old 07-19-2004, 11:32 AM   #3
netmask
Member
 
Registered: Jul 2004
Location: Sherbrooke, Quebec, Canada, North America, World, Milky Way
Distribution: Gentoo
Posts: 103

Rep: Reputation: 16
ifconfig is used to set an ip address to your interface:

ifconfig eth0 192.168.0.1 netmask 255.255.255.0 for example.

To set a default gateway, you need to use the route command:

route add default gw 192.168.0.1 for example.
 
Old 07-19-2004, 11:39 AM   #4
nafsnipe685
LQ Newbie
 
Registered: Jan 2004
Location: Texas, USA
Distribution: Slackware 9
Posts: 19

Original Poster
Rep: Reputation: 0
thanks!! Works
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Default gateway dooda5555 Linux - Networking 1 06-17-2005 11:43 AM
HELP default gateway MrSavage Linux - Newbie 2 01-10-2005 07:46 AM
Default Gateway rrosenkoetter Linux - Networking 3 08-27-2004 08:41 AM
default gateway avikosan Linux - Networking 3 12-09-2003 05:47 PM
What's a default gateway and do I need one? Travis86 Linux - Newbie 8 05-25-2003 05:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration