Re: IP address aliases
- From: Rainer Weikusat <rweikusat@xxxxxxxxxxx>
- Date: Mon, 11 Jun 2007 19:26:30 +0200
Grant Edwards <grante@xxxxxxxx> writes:
On 2007-06-11, phil-news-nospam@xxxxxxxx <phil-news-nospam@xxxxxxxx> wrote:
Would you be able to write a script to use the above (which currently
makes no sense to me) to implement simple IP address add/delete like:
ipalias -a 192.168.3.4
ipalias -a 172.31.0.0/24
ipalias -d 192.168.3.4
ipalias -d 172.31.0.0/24
How is the script supposed to know which interface to tweak on?
If you add a parameter for the interface, then it's really not
much shorter than the "long" way of doing it:
ifconfig eth0:1 192.168.3.4
ifconfig eth0:2 172.31.0.0/24
ifconfig eth0:1 down
ifconfig eth0:2 down
Since this has been obsolete since Linux 2.2, it should really be
called the 'old way of doing it'. For non-manual configuration, this
is PITA, because it is necessary to keep track of the 'alias numbers'
associated with each additional protocol address.
.
- References:
- IP address aliases
- From: phil-news-nospam
- Re: IP address aliases
- From: Rainer Weikusat
- Re: IP address aliases
- From: phil-news-nospam
- Re: IP address aliases
- From: Grant Edwards
- IP address aliases
- Prev by Date: Re: IP address aliases
- Next by Date: Re: IP address aliases
- Previous by thread: Re: IP address aliases
- Next by thread: Re: IP address aliases
- Index(es):
Relevant Pages
|