On Tue, Jul 13, 2004 at 02:32:46PM -0700, Darren Pilgrim wrote:

> >     ifconfig_ed0="inet  netmask"
> >     ifconfig_vr0="inet  netmask"
> and are blocks of addresses in CIDR notation,
> not the actual addresses to be fed to ifconfig.  You need to pick addresses
> within the netblock to use for myserver and all the other machines on your
> network.  Since myserver can reach the internet just fine, you should keep
> the IP address for vr0 the same, just lengthen the netmask to allow the use
> of on the LAN.

ifconfig(8) understands CIDR notation just fine, although it's not
usual to configure an interface using the '.0' /network/ address.  Look
on it as a third alternate way of specifying the netmask, so that the
following three examples are equivalent:

        ifconfig fxp0 inet
        ifconfig fxp0 inet netmask 0xfffffff8
        ifconfig fxp0 inet netmask

Those correspond to the slightly contrived example of the /29 network
starting with network address and running up to the
broadcast address

Note: you can give a broadcast address on the ifconfig command line,
but usually it's not necessary as a standard value will be calculated
from any ip number forming part of that network and from the netmask.
However you can't in general use ip address + broadcast to do the
converse, as there isn't necessarily a unique solution.



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

Attachment: pgpU9D8Zu0LLa.pgp
Description: PGP signature

Reply via email to