Review your favorite Linux distribution.
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-16-2004, 07:50 PM   #1
LQ Newbie
Registered: Jun 2004
Distribution: Red Hat 7.3
Posts: 11

Rep: Reputation: 0
Why does my internet interface keep getting a gateway

I use a Red hat 7.3 system as a router with IPTABLES. It works awesome untill you reboot and for some strange reason it thinks it needs a gateway on the internal interface. And it makes it the same as the ip.

1. why is it putting it there?
2. how do I make it stop?

If I clear it and reboot again it works.

I am using the config utility in X to fix it. Is it not applying it right?
Any help is appreciated.
Old 06-17-2004, 03:18 AM   #2
Senior Member
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
When you configured the NIC, it most have propagated the IP address to the gateway field. You should not configure any gateway at all for your internal NIC (obviously). If I remember right, the actual config files are buried some where in /etc/sysconfig/netinfo/ or netstart/ or something like that.

Poke around in /etc, you'll find it. One quick way to locate the offending file would be like this:
# grep -R '' /etc/
The -R means "recursive" so it will search all the files and subdirectories of /etc for files that contain When you find the one that lists that IP as a gateway, just remove that line from the file (or comment it out).
Old 06-18-2004, 11:34 AM   #3
LQ Newbie
Registered: Jun 2004
Distribution: Red Hat 7.3
Posts: 11

Original Poster
Rep: Reputation: 0
I think that is it. Thanx.
I found it in /etc/sysconfig/network


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
How to change defualt gateway interface banner Linux - Networking 1 05-08-2005 11:47 AM
ip + interface + gateway alaios Debian 3 11-12-2004 04:35 PM
Gateway for internet mfeoli Linux - Newbie 4 01-19-2004 11:14 AM
LAN interface on Gateway stops being able to send info to LAN intermittantly. BurnFEST Debian 2 11-01-2003 03:16 AM
Internet gateway fxlee Linux - Networking 1 01-06-2002 10:33 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:24 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration