LinuxQuestions.org
Help answer threads with 0 replies.
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 11-27-2005, 12:27 PM   #1
Xandor
Member
 
Registered: Oct 2005
Distribution: Ubuntu 5.10
Posts: 31

Rep: Reputation: 15
Unable to manually define default Gateway


Alright, I'm using Kubuntu 5.10 and am trying to get my computer set up on the network properly. The only problem I have is I can't seem to set the default gateway. If I go to settings:/Network and click on Network Settings then click on Routes and try to manually set the gateway it acts like it sets then just resets to it's previous value. If I have the Protocol set to manual (which is what I really want) instead of DHCP the the gateway for some reason by default is blank. If I try to change it, it just resets back to a blank value. Is there a file that I can just type it into? That would make it much easier, or if you could tell me how to keep it from reseting.
 
Old 11-28-2005, 03:30 AM   #2
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
#route add default gw <ipaddress>
 
Old 11-28-2005, 03:49 AM   #3
heema
Senior Member
 
Registered: Sep 2003
Location: Egypt
Distribution: Arch
Posts: 1,528

Rep: Reputation: 47
if you want to make it permanent then add it in /etc/network/interfaces

here is mine:

Code:
auto eth0
iface eth0 inet static
address 192.168.1.2
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1
 
Old 11-28-2005, 05:02 AM   #4
Xandor
Member
 
Registered: Oct 2005
Distribution: Ubuntu 5.10
Posts: 31

Original Poster
Rep: Reputation: 15
heema, you are absolutely beautiful. I have been trying to get my computer set up properly on my network for months. I new what the problem was and just couldn't fix it. Thank you so much. And jayakrishnan thanks to you too. I like to learn as many commands as possible. I may yet need that if I need to change it temporarily. Thank you both so much again, you have no idea how much simpler this makes things.
 
Old 11-28-2005, 05:14 AM   #5
heema
Senior Member
 
Registered: Sep 2003
Location: Egypt
Distribution: Arch
Posts: 1,528

Rep: Reputation: 47
No problem
 
Old 11-28-2005, 05:58 AM   #6
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
U R Welcome
 
Old 11-29-2005, 04:35 AM   #7
lpoorman
LQ Newbie
 
Registered: Nov 2005
Location: Germany
Distribution: SuSE
Posts: 14

Rep: Reputation: 0
permanent routing ?

My problem is similar to heema's suggestion. I am using SuSE 9.3 and according to the SuSE handbook the directory/files are:

/etc/sysconfig/network/routes
and
/etc/sysconfig/network/ifroute-*
where * is the interface.

When I enter my routing data via the route command then all is fine. However I cannot get it to work when I try to make it permanent using the files above. Also, in the /etc/sysconfig/network/ directory the file ifroute-eth0 did not exist so I created it and inserted my data according to the example in the handbook. Are there any SuSE users who could post what they are using for their permanent routing. It would be much appreciated.

Larry

QUOTE]Originally posted by heema
if you want to make it permanent then add it in /etc/network/interfaces

here is mine:

Code:
auto eth0
iface eth0 inet static
address 192.168.1.2
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1
[/QUOTE]
 
  


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
Unable to ping other than default gateway senthilpr_in Linux - Networking 6 08-17-2005 07:42 PM
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
What's a default gateway and do I need one? Travis86 Linux - Newbie 8 05-25-2003 05:44 PM
Unable to define RH7.3 hostname glorinc Linux - Networking 3 09-09-2002 06:37 AM

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

All times are GMT -5. The time now is 06:24 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