Mailinglist Archive: opensuse (4547 mails)

< Previous Next >
Re: [SLE] double ip address on the same ethernet card: is it possible?
  • From: Sid Boyce <sboyce@xxxxxxxxxxxxxxxx>
  • Date: Fri, 14 May 2004 14:18:22 +0100
  • Message-id: <40A4C71E.4010005@xxxxxxxxxxxxxxxx>
Luca Mollica wrote:

This method has been deprecated in SuSE since (I believe) version 8.0
in favor of the first one. More in manpage of ip(8) and ifup(8).



Kastus, before trying to configure the double ip connection, which one do you mean by "the first one" ?
Mayb do you mean Riccardo Facchni's advice to add a virtual ethernet card with eth0:0 ?
Anyway, I will check for other advices in manpages ....

LM


Regards, -Kastus




IP-Aliasing was deprecated as an option way back, but it's still available, e.g "ifconfig eth0:0 192.168.10.1" "ifconfig eth0:1 10.0.0.1".

From /usr/src/linux-2.6.6-mm2/Documentation/networking/alias.txt
IP-Aliasing:
============

IP-aliases are additional IP-addresses/masks hooked up to a base
interface by adding a colon and a string when running ifconfig.
This string is usually numeric, but this is not a must.

IP-Aliases are avail if CONFIG_INET (`standard' IPv4 networking)
is configured in the kernel.


o Alias creation.
Alias creation is done by 'magic' interface naming: eg. to create a
200.1.1.1 alias for eth0 ...

# ifconfig eth0:0 200.1.1.1 etc,etc....
~~ -> request alias #0 creation (if not yet exists) for eth0

The corresponding route is also set up by this command.
Please note: The route always points to the base interface.


o Alias deletion.
The alias is removed by shutting the alias down:

# ifconfig eth0:0 down
~~~~~~~~~~ -> will delete alias


o Alias (re-)configuring

Aliases are not real devices, but programs should be able to configure and
refer to them as usual (ifconfig, route, etc).


o Relationship with main device

If the base device is shut down the added aliases will be deleted
too.

Regards
Sid.

--
Sid Boyce .... Hamradio G3VBV and keen Flyer
Linux Only Shop.


< Previous Next >
Follow Ups