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: ...
- 12-21-2010 #1Just 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
- 12-22-2010 #2
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
- 12-22-2010 #3
No need to reboot after editing the sysctl.conf file, just issue the following command;
This tell the system to reread the file.Code:sysctl -p
As a RHCE for RHEL version 5 I would expect you to know this.
- 12-27-2010 #4
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


Reply With Quote
