Solved

Setting up gateway address for Linux 5.2

Posted on 2000-04-26
3
252 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
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 50 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

758 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now