help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Virtual network interfaces


From: Martin A. Brooks
Subject: Re: Virtual network interfaces
Date: Fri, 22 Nov 2002 08:56:14 +0000

At 09:18 22/11/2002 +0100, you wrote:

Hi - I never even heard of virtual network interfaces(!!)
I would not know where to start on this one. CAn anyone
else help?

On linux it's known as IP aliasing, and is simply a kernel option you enable. A regular interface is configured like this:

ifconfig eth0 192.168.1.2 netmask 255.255.255.0
route add default gw 192.168.1.1 dev eth0

With ip aliasing you can then configure another interface like this:

ifconfig eth0:0 10.119.48.2 netmask 255.255.255.0
route add default gw 10.119.48.1 dev eth0:0

and you can keep going up to eth0:255 and then start on eth1.

Each alias shares the same physical attributes of the card used, so it will have the same MAC address and interface speed and interface byte counts will be cumulative for all aliases.

Regards


Martin A. Brooks
---------------------------------
I/O, I/O, it's off to disk we go,
A bit or byte, to read or write,
I/O, I/O, I/O......





reply via email to

[Prev in Thread] Current Thread [Next in Thread]