Solved

Setting up gateway address for Linux 5.2

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

Building an interactive eFuture classroom

Watch and learn how ATEN provided a total control system solution including seamless switching matrix switch, HDBaseT extenders, PDU, lighting control to build an interactive eFuture classroom.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
resolv.conf empty ubuntu server 14 3 76
How to get my virtual machine IP address - Virtualbox 10 115
Automate the blocking off IP's from a list file in Ubuntu 9 83
ifconfig 4 118
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…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

732 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