RHEL 5 and Network Port Order

Posted on 2012-08-17
Medium Priority
Last Modified: 2012-08-28
I have a RHEL 5 server with 4 network ports.  Im using 2 network ports to connect directly to application servers and one of the ports is on the network with access to a default gateway. When I restarted my server it seem to be trying to access the internet through one of the other ports. The port to my main network is reading as en0 so I was assuming it would use that and not the others. Any ideas?
Question by:Scott_Smith24

Accepted Solution

AggieTex earned 2000 total points
ID: 38307090
You would want to setup static routes for your server.  You can do this by editing the following file:


default via dev en0 # (Fill in the IP and device name, en0 could be eth0)

Open in new window

Fill in the other routes as needed.  You can check what the computer is trying to send traffic through by typing route at the command line and looking at the default route.
LVL 19

Expert Comment

ID: 38308591

is it eth0 or is it something like solaris?

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
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…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month16 days, 15 hours left to enroll

862 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