Re: Multiple IP addresses (or hosts) on one LAN interface
From: /dev/rob0 (rob0_at_gmx.co.uk)
Date: 07/22/03
- Next message: saibe: "Re: Kernel panic, init not found"
- Previous message: Guardian83: "Re: migrating C++ to Linux from UNIX, I have never used linux before what do I do?"
- In reply to: Cedric Blancher: "Re: Multiple IP addresses (or hosts) on one LAN interface"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 22 Jul 2003 08:35:45 -0700
In article <pan.2003.07.22.12.11.28.750607@cartel-securite.fr>,
Cedric Blancher wrote:
>> But still there is a difference between 1) Adding the IP using "ifconfig
>> interface:id" 2) Adding the IP using "ip addr add" and the
>> route using "route add"
>
> Except the fact you do not create an aliased interface, I don't think
> there's any difference. I personaly prefer use ifconfig for I can see
> aliases as eth0:idx.
I use /sbin/ip to add my aliases, but I use the ethX:alias syntax. :) A
compromise, as it were. It's also necessary if you want to use the alias
interface with iptables. Well, I think you can only use the whole ethX
interface, which includes any :alias.
I use aliases for different services, so they're portable if I need to
move them to another machine (set up the service on B, stop the service
on A, cancel the alias on A, set up the alias on B, start the service on
B ... and everyone goes on as if nothing had happened.) If the alias is
in the same subnet no special routing is needed.
-- /dev/rob0 - preferred_email=i$((28*28+28))@softhome.net or put "not-spam" or "/dev/rob0" in Subject header to reply
- Next message: saibe: "Re: Kernel panic, init not found"
- Previous message: Guardian83: "Re: migrating C++ to Linux from UNIX, I have never used linux before what do I do?"
- In reply to: Cedric Blancher: "Re: Multiple IP addresses (or hosts) on one LAN interface"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|