Link to home
Start Free TrialLog in
Avatar of smarashi
smarashi

asked on

Setting up gateway address for Linux 5.2

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
Avatar of stefanx
stefanx

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
ASKER CERTIFIED SOLUTION
Avatar of dkieta
dkieta

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of smarashi

ASKER

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.