[WBEL-users] Adding 2nd address to interface

Kirby C. Bohling kbohling@birddog.com
Tue, 12 Oct 2004 21:38:34 -0500


On Tue, Oct 12, 2004 at 10:03:11PM -0400, Robert Moskowitz wrote:
> I need to add a 2nd static address to my ethernet interface, and it seems 
> the GUI can't do this...
> 

I'm not sure this will work for your situation, but I can describe
how to get it to work via the GUI:

Run: redhat-config-network

You might be prompted for the root password.

Click on the ethernet device you want add another IP to.

Click the copy icon at the top of the primary window.

There will be a new device listed in the window.  Double click on
it.  A new window will open There should be three tabs: "General",
"Route", and "Hardware Device".  Pick "Hardware Device".

There should be a check box for "Deivce Alias Number".  Check that
box, and then you should be able to edit the number.  I'd use the
default of 1.  Go back to the "General" tab.  Set it to have the
static IP you want.  Possibly change the nickname (I hate the
default nicknames, but it's not really important).

Close that.  In the original window Highlight the aliased interface,
click Activate.  Choose "File->Save".  You might have to go thru and
make sure the rest of the settings are the way you want them.

That should pretty much add an aliased ethernet device (under Linux
that's one way you can add more static IP's to an interface).

This is the best set of RedHat docs I can find that explain the
situation, but they do a horrific job is here:

http://www.redhat.com/docs/manuals/enterprise/RHEL-3-Manual/sysadmin-guide/s1-network-aliases.html

> Situation.
> 
> This system will eventually be dropped onto my production network, 
> replacing an NT server.  I have to at least use the same FQDN during setup 
> (for openldap and sambe) and figured I might as well also use the same IP 
> address.  So the system is behind my firewall off one of the lab interfaces.
> 
> But I need to run up2date.  I want the latest Samba and openldap code (for 
> example a correct samba.schema).
> 
> Thus I want to add a second address to the system that is valid for the lab 
> net (and what ports do I need to open for up2date?).
> 
> How to?
> 
> Or will up2date only use the first IP address anyway, and I need to change 
> that, get up2date, then change it back?

	I have no idea if the interface will work for you, I'm merely
describing how to do what you wanted thru the GUI.  I'm not sure it
will solve the situation you describe.

	To answer the question of what ports you need open for up2date,
I'm assuming that would depend on how you have up2date configured.
I believe it defaults to using yum.  You'd can look in:

/etc/sysconfig/rhn/sources

	If it uses yum, it depends on how your yum is configured.
That'd be in:

/etc/yum.conf

	FTP and HTTP being the two most common.  I just use yum
directly, and have configured to read packages via HTTP.  So if you
can browse the web from that IP, you can get yum updates.  I don't
know what the defaults are.  I overwrite that file immediatly upon
install to use my local yum mirror.  However, the answer is in
buried in the two files listed above.

	Thanks,
		Kirby