Find the answer to your Linux question:
Results 1 to 4 of 4
Hi, Im using OEL 5.5 (which i believe is built on RHEL 5) Im trying to configure eth0 and eth1 to have the following parmeters: •hostname: rac1.localdomain •IP Address eth0: ...
  1. #1
    Just Joined!
    Join Date
    Oct 2010
    Posts
    38

    setting network information

    Hi, Im using OEL 5.5 (which i believe is built on RHEL 5)

    Im trying to configure eth0 and eth1 to have the following parmeters:

    •hostname: rac1.localdomain
    •IP Address eth0: 192.168.2.101 (public address)
    •Default Gateway eth0: 192.168.2.1 (public address)
    •IP Address eth1: 192.168.0.101 (private address)
    •Default Gateway eth1: none

    I have set the host name, but am new to linux and networking and confused as to how i can set the other addresses above??

    Any help would be appriciated,

    Thanks

  2. #2
    Linux Enthusiast meton_magis's Avatar
    Join Date
    Oct 2006
    Location
    arizona
    Posts
    665
    If it is the same as on RHEL 5, you need to modify the /etc/sysconfig/network-scripts/ifcfg-eth[01] files. you can google, or lookup redhat docs for the syntax.

    the gateway is in /etc/sysconfig/network I think. I don't remember, it's been a while.

    once it's done, run
    `service network restart`


    if you're wanting to forward packets across your system, make sure to modify the /etc/sysctl.conf file. the line says ipforward, or something like that. 0 is off, 1 is on. Then reboot your system.
    New to the internet, technical forums, or the hacker / open source community??
    Read this to learn good posting habits http://www.catb.org/~esr/faqs/smart-questions.html

    RHCE for RHEL version 5
    RHCT for RHEL version 4

  3. #3
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    No need to reboot after editing the sysctl.conf file, just issue the following command;

    Code:
    sysctl -p
    This tell the system to reread the file.
    As a RHCE for RHEL version 5 I would expect you to know this.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  4. #4
    Linux Enthusiast meton_magis's Avatar
    Join Date
    Oct 2006
    Location
    arizona
    Posts
    665
    Quote Originally Posted by Lazydog View Post
    No need to reboot after editing the sysctl.conf file, just issue the following command;

    Code:
    sysctl -p
    This tell the system to reread the file.
    As a RHCE for RHEL version 5 I would expect you to know this.

    Never came up in my studying. Remember, there is more than 1 way to do stuff. I know how to do it by modifying and rebooting, or by manualy writing a '1' to .... some file in /proc, don't remember off the top of my head.

    Being an RHCE doesn't mean I know the same way to do something as another guy who got his RHCE, it just means that both of us can do the stuff redhat tests on, and we know it well enough to do it in the timeframe they give you.

    Rebooting does work, and all things that are tested have to survive a reboot. So if this was tested for on the RHCE exam (I'm under NDA, can't say if it was or wasn't), it would add no more time to test it by rebooting.
    New to the internet, technical forums, or the hacker / open source community??
    Read this to learn good posting habits http://www.catb.org/~esr/faqs/smart-questions.html

    RHCE for RHEL version 5
    RHCT for RHEL version 4

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...