LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 02-14-2008, 09:23 AM   #1
xhimi
Member
 
Registered: Aug 2007
Posts: 30

Rep: Reputation: 15
IP aliasing in RHEL5


hi!
I'm trying to configure IP Aliasing.I was able making that by creating a new file ifcfg-eth0:1 and that was ok,and after rebooting.
Now, me was suggested to follow this howto http://www.faqs.org/docs/Linux-mini/IP-Alias.html
but after rebooting it doesn't exist.There is a sugestion to do for that but for me is not working.Any suggestion ???I'm using RHEL5.
thank you
 
Old 02-14-2008, 05:56 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Check out this link to add a file called ifcfg-eth0:0 in /etc/sysconfig/network-scripts
http://www.xenocafe.com/tutorials/li..._nic/index.php

Brian
 
Old 02-15-2008, 04:22 AM   #3
xhimi
Member
 
Registered: Aug 2007
Posts: 30

Original Poster
Rep: Reputation: 15
ok,brian thanks for the link but I have done this type of configuration. I'm asking for this configuration:

/sbin/ifconfig lo 127.0.0.1
/sbin/ifconfig eth0 up
/sbin/ifconfig eth0 172.16.3.1
/sbin/ifconfig eth0:0 172.16.3.10
/sbin/ifconfig eth0:1 172.16.3.100


/sbin/route add -net 127.0.0.0
/sbin/route add -net 172.16.3.0 dev eth0
/sbin/route add -host 172.16.3.1 dev eth0
/sbin/route add -host 172.16.3.10 dev eth0:0
/sbin/route add -host 172.16.3.100 dev eth0:1
/sbin/route add default gw 172.16.3.200


etc... Has anyone done this type of configuration in RHEL5.
greetings
 
Old 02-15-2008, 03:05 PM   #4
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
If those are the exact steps you enter to get it up and running then place those commands with their full path like you already have. Place those commands at the end of /etc/rc.local. That would be the easiest.

Brian
 
Old 02-17-2008, 09:18 PM   #5
Stevie-B-242
LQ Newbie
 
Registered: Oct 2005
Posts: 9

Rep: Reputation: 0
...I'm probably more of a newbie than you are so take my suggestion with a handful of salt.
(...if I'm way off base here, someone please feel free to humiliate me publicly %-)

It seems to me, with my < VERY LIMITED > experience that configuration setting in an if-cfg file in /etc/sysconfig/network-scripts/ don't seem to get applied consistently after a reboot.

If you use the GUI Networking utility to configure an interface, you will find that it creates the if-cfg file in /etc/sysconfig/networking/devices/

I have therefore found it helpful to copy all the if-cfg files I want to maintain after a system reboot to this secondary location.

Bottomline: Try putting your if-cfg files in /etc/sysconfig/networking/devices/ and see if that causes your IP alias settings to be maintained across system resets.


--Steve

...RHEL is the only distro that I have really worked with, so all of the proceeding is based on my (possibly flawed) observations of the workings of RHEL4 and RHEL5...other distro's may not exhibit these behaviors ...hell, RHEL may not even exhibit these behaviors at the hands of someone who knows what they are doing. %-)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ip Aliasing joseph Linux - Software 2 09-26-2003 11:52 PM
IP aliasing joseph Linux - General 2 09-01-2003 10:33 PM
IP aliasing lackofcare Linux - Networking 0 07-18-2003 02:10 AM
IP Aliasing nyek Linux - Networking 2 12-26-2001 07:36 PM
ip aliasing iquadri1 Linux - Networking 0 09-29-2001 02:04 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 05:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration