[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Setting up gateway address for Linux 5.2

Posted on 2000-04-26
3
Medium Priority
?
279 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

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…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

656 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