RHEL 5 and Network Port Order

Posted on 2012-08-17
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
    LVL 3

    Accepted Solution

    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


    is it eth0 or is it something like solaris?

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
    Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    779 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

    10 Experts available now in Live!

    Get 1:1 Help Now