Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-17-2005, 09:06 AM   #1
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 " UG 0 0 0 eth0", I know that entering command "route del default gw" 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 U 0 0 0 eth0 U 0 0 0 eth1 UG 0 0 0 eth0 -----> remove UG 0 0 0 eth1


Ubuntu user
Old 06-17-2005, 12:43 PM   #2
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 :


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
;gateway -----------------> this

auto eth0

iface eth1 inet static

auto eth1


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
HELP default gateway MrSavage Linux - Newbie 2 01-10-2005 08:46 AM
Default Gateway rrosenkoetter Linux - Networking 3 08-27-2004 09:41 AM
default gateway avikosan Linux - Networking 3 12-09-2003 06:47 PM
Cannot change default gateway parr Linux - Networking 22 07-31-2003 07:13 PM
What's a default gateway and do I need one? Travis86 Linux - Newbie 8 05-25-2003 06:44 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:41 PM.

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