Visit Jeremy's Blog.
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 08-26-2004, 03:54 PM   #1
LQ Newbie
Registered: Apr 2004
Distribution: RedHat 9.0
Posts: 4

Rep: Reputation: 0
Default Gateway

I usually set static IP addresses on my Linux boxes, and I set the gateway address in the same file (i.e. /etc/sysconfig/network-scripts/ifcfg-eth0).

I've inherited a VmWare ESX box (modified Red Hat 7.3), that only has the IPADDR and NETMASK parameters set, no mention of GATEWAY, yet the machine has no problem pinging machines outside it's subnet.

I ran the route command and saw the correct gateway address referenced there.

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface * U 0 0 0 eth0 * U 0 0 0 lo
default UG 0 0 0 eth0

Obviously, the default gateway address is set somewhere else. Can someone tell me other places it could be set besides in the configuration file of the ethernet port itself?

Old 08-26-2004, 04:48 PM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
It is probably in:
Old 08-27-2004, 12:00 AM   #3
Registered: Aug 2004
Location: .au
Distribution: debian, BSD
Posts: 104

Rep: Reputation: 16
fgrep -r /etc/*
Old 08-27-2004, 09:41 AM   #4
LQ Newbie
Registered: Apr 2004
Distribution: RedHat 9.0
Posts: 4

Original Poster
Rep: Reputation: 0
Thank you very much...

It was in /etc/sysconfig/network.

fgrep -r /etc/*

Great tip! I didn't know about fgrep. This will help me find all kinds of stuff from now on.

Again, thanks for the help


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 12:43 PM
HELP default gateway MrSavage Linux - Newbie 2 01-10-2005 08:46 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:50 AM.

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