migrating server ips

D. Hugh Redelmeier hugh-pmF8o41NoarQT0dZR+AlfA at public.gmane.org
Tue Mar 10 07:46:22 UTC 2009


| From: Teddy Mills <teddy-5sHjOODPK7E at public.gmane.org>

| ipr /etc -R 111.222.333 777.888.999

A doted triple?  Possible, but not usually intended.

333 and up are not valid either.

Surprisingly, those two features kind of cancel out since 111.222.333
actually means the same as 111.222.1.77
But nothing saves 777.888.999

Beware "." is a regular expression operator.

String equality is not the same as ip address equality.  See
inet_aton(3) to see all the ways of writing an IP address.
Think of leading zeros.  Think of hex.

All this suggests that hand editing is called for.

Oh, and consider using DNS or even /etc/hosts.  This would seem to be
an opportunity to cut over.
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list