Matthew Seaman m.seaman at infracaninophile.co.uk
Thu May 15 01:43:19 PDT 2003

On Thu, May 15, 2003 at 09:10:46AM +0200, Thomas Spreng wrote:
> hi,
> > 2) I am having trouble connecting jail to the internet.
> > here is an output of my ifconfig
> > harry at requiem:/home/harry# ifconfig rl0
> > rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> >        inet netmask 0xffffffe0 broadcast
> >        inet6 fe80::230:f1ff:fe44:9768%rl0 prefixlen 64 scopeid 0x1
> >        inet netmask 0xffffff00 broadcast
> >        ether 00:30:f1:44:97:68
> >        media: Ethernet autoselect (10baseT/UTP)
> >        status: active
> afaik, inet aliases need a netmask of 0xffffffff.

Usually you'ld be quite right in saying that, but unfortunately in
this case I'm afraid it is not correct.  The rule is that the second
and subsequent addresses from any particular netblock get a netmask of
0xffffffff.  In this case, where the alias address comes from a
different netblock to the original address (so that the alias is the
first address from that netblock) it gets the natural netmask as the
original poster showed.



Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030515/d6537f47/attachment.bin

More information about the freebsd-questions mailing list