TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG:20771] Creating virtual hosts



On Tue, 29 Aug 2000, Nate Carlson wrote:
> You can create aliases doing 'ifconfig ethx:y', where x is the main
> interface number, and y starts at zero and increments for each interface.
> 
> With Advanced Routing in your kernel, you can assign an entire subnet to
> your interface with:
> 
> ip addr add n.n.n.n/yy brd + dev eth0 label eth0:Aliases
> 
> ..which takes all of the IP's in n.n.n.n/yy, assigns them to your
> interface with the standard broadcast address, and calls the alias
> 'eth0:Aliases'.

whoops! that's wrong.
hehe

that adds n.n.n.n as an alias, not the whole subnet.  :)

I know you can do it with adv routing somehow, but I don't remember how
right now. Ugh.

-- 
Nate Carlson <natecars@real-time.com>   | Phone : (952)943-8700
http://www.real-time.com                | Fax   : (952)943-8500