?
Solved

Setting up gateway address for Linux 5.2

Posted on 2000-04-26
3
Medium Priority
?
272 Views
Last Modified: 2012-05-04
Greetings

I have a linux machine on a WAN.  The linux machine along with a whole bunch of win pcs are routed by a cisco router.  the router is the gateway.  all local machines can ping the remote pcs but the linux machine has lost its gateway configurations.  I don't know how to setup gateway ip for linux.  I'd appreciate the help.

Thanks
0
Comment
Question by:smarashi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 8

Expert Comment

by:stefanx
ID: 2751917
Just enter the command :

route add default gw xxx.xxx.xxx.xxx

where xxx.xxx.xxx.xxx is the address of the router.

I don't use Redhat, so I can't tell you where you save this so that your machine will execute it on boot up.

On my system, you can configure it by running a utility called netconfig. You can also manually edit the file called /etc/rc.d/rc.inet1. Of course, I don't know if this is the same for RedHat Linux
0
 

Accepted Solution

by:
dkieta earned 150 total points
ID: 2766722
Edit the /etc/sysconfig/network file and add the gateway address. This will make the changes permanent when you reboot.
0
 

Author Comment

by:smarashi
ID: 2767803
Thank you all.  The first solution didn't work but later I found out that I needed to att eth0 to the end it.  dkieta's solution worked however I had taken care of it anyway.  thank you both.
0

Featured Post

Supports up to 4K resolution!

The VS192 2-Port 4K DisplayPort Splitter is perfect for anyone who needs to send one source of DisplayPort high definition video to two or four DisplayPort displays. The VS192 can split and also expand DisplayPort audio/video signal on two or four DisplayPort monitors.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question