LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-28-2001, 06:58 PM   #1
pjrestrepo
LQ Newbie
 
Registered: Nov 2001
Location: Boulder, Colorado
Distribution: Red Hat
Posts: 10

Rep: Reputation: 0
Specifying gateway IP under RH 7.2


I have been trying to setup a gateway for my network. The gateway computer is using RedHat 7.0. There are two more computers: one using RedHat 7.0 and a new one using RedHat 7.2.

RH 7.0 comes with netcfg, which allows to specify the IP address of the gateway (192.168.0.1). RH 7.2 has a different network configuration program that does not allow the user to enter that information. The RH 7.0 client computer can see the internet through the gateway without any problem. The RH 7.2 computer insists that the gateway IP is 192.168.0.254. How do I tell the RH 7.2 computer that the gateway IP address is 192.168.0.1?

Thanks for any suggestions.
 
Old 11-28-2001, 07:41 PM   #2
DMR
Member
 
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
At the command line:
Code:
route add default gw xxx.xxx.xxx.xxx
where xxx.xxx.xxx.xxx is the gateway IP.
 
Old 11-28-2001, 07:58 PM   #3
pjrestrepo
LQ Newbie
 
Registered: Nov 2001
Location: Boulder, Colorado
Distribution: Red Hat
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks a lot. That was simple enough!

I read the man page for route, and could not find a simple example.

Pedro
 
Old 11-28-2001, 11:28 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
you can always use setup as well now in redhat, which gives a list of many different configs for many things like network, mouse, X... etc...
 
Old 11-29-2001, 05:48 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
the route program will not normally be permanent i think, to do it permanently, just edit the GATEWAY= line in /etc/sysconfig/network
 
Old 11-29-2001, 11:35 AM   #6
pjrestrepo
LQ Newbie
 
Registered: Nov 2001
Location: Boulder, Colorado
Distribution: Red Hat
Posts: 10

Original Poster
Rep: Reputation: 0
Follow up

I tried all suggestions. For RedHat 7.2, this is the final case:

1) route works for the current session, but does not make a permanent change to the gateway setting
2) Editing the /etc/sysconfig/network and changing the value of GATEWAY= does not make a permanent change either.
3) running /usr/sbin/setup brings up a text-based interface that does make a permanent change to the gateway IP address.

Again, thanks a lot to all who responded.

Pedro
 
Old 11-30-2001, 02:37 AM   #7
DMR
Member
 
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
Quote:
Originally posted by acid_kewpie
the route program will not normally be permanent i think, to do it permanently, just edit the GATEWAY= line in /etc/sysconfig/network
Weird. That definitely should have worked, although I haven't mucked around with RH 7.2 yet.

 
Old 12-01-2001, 10:35 AM   #8
wdingus
Member
 
Registered: Aug 2001
Location: Kingsport, TN
Distribution: RHEL & FC
Posts: 267

Rep: Reputation: 30
Editing /etc/sysconfig/network and adding a GATEWAY=x.x.x.x line IS permanent too... Change it and restart networking by doing /etc/rc.d/init.d/network restart and then do a "netstat -rn" to see your route tables. Reboot and check again. That file is parsed on bootup. If yours is not, something is broken on yours.
 
  


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
lm10.0 gateway is set but when I reboot I have to set the gateway rharvey32 Mandriva 8 02-13-2006 01:35 PM
What is a gateway? can I have more than one gateway on a vlan? abefroman Linux - Networking 3 09-06-2005 10:43 AM
Need for a gateway? ThePlague Linux - Networking 2 12-27-2004 06:59 PM
Odd problem: Gateway unreachable after certain amount of time (Win XP Gateway) SocialEngineer Linux - Networking 2 08-13-2004 12:54 AM
What is this ??? Gateway or NOT ??? Lilltjalle Mandriva 3 11-30-2003 11:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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