LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 06-17-2005, 08:06 AM   #1
dooda5555
LQ Newbie
 
Registered: Apr 2005
Location: Montreal, Canada
Distribution: Ubuntu
Posts: 11

Rep: Reputation: 0
Default gateway


Quick question.

If I want to remove routing entry "0.0.0.0 10.0.0.1 0.0.0.0 UG 0 0 0 eth0", I know that entering command "route del default gw 10.0.0.1" works. However, when I reboot the linux box, that same entry comes back to haunt me. So, which file should I edit in order to avoid having that routing entry add by itself on bootup? I'm quite sure it's one of the files in my /etc/init.d directory, but not sure which one.


root@ubuntu:~ # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.0 0.0.0.0 255.255.255.252 U 0 0 0 eth0
192.168.7.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
0.0.0.0 10.0.0.1 0.0.0.0 UG 0 0 0 eth0 -----> remove
0.0.0.0 192.168.7.1 0.0.0.0 UG 0 0 0 eth1

++++

Ubuntu user
 
Old 06-17-2005, 11:43 AM   #2
dooda5555
LQ Newbie
 
Registered: Apr 2005
Location: Montreal, Canada
Distribution: Ubuntu
Posts: 11

Original Poster
Rep: Reputation: 0
Oh well, figured it out myself. Went to :

/etc/networks/interfaces

Commented out :

root@ubuntu:/etc/bind # more /etc/network/interfaces
# This file describes the network interfaces available on your s
# and how to activate them. For more information, see interfaces

# The loopback network interface
auto lo
iface lo inet loopback

# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map eth1

# The primary network interface

iface eth0 inet static
address 10.0.0.2
netmask 255.255.255.252
;gateway 10.0.0.1 -----------------> this

auto eth0

iface eth1 inet static
address 192.168.7.2
netmask 255.255.255.0
gateway 192.168.7.1

auto eth1
 
  


Reply



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
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
Cannot change default gateway parr Linux - Networking 22 07-31-2003 06:13 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 03:10 AM.

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