LinuxQuestions.org
Visit Jeremy's Blog.
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 08-26-2004, 03:54 PM   #1
rrosenkoetter
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
10.10.48.0 * 255.255.252.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 10.10.48.1 0.0.0.0 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?

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

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

Rep: Reputation: 16
fgrep -r 10.10.48.1 /etc/*
 
Old 08-27-2004, 09:41 AM   #4
rrosenkoetter
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 10.10.48.1 /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
 
  


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
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

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

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