Freebsd 5.1 <-> Win XP Networking problems
Matthew Seaman
m.seaman at infracaninophile.co.uk
Wed Jul 14 02:41:17 PDT 2004
On Tue, Jul 13, 2004 at 02:32:46PM -0700, Darren Pilgrim wrote:
> > ifconfig_ed0="inet 192.168.1.0/24 netmask 255.255.0.0"
> > ifconfig_vr0="inet 192.168.0.0/24 netmask 255.255.0.0"
>
> 192.168.1.0/24 and 192.168.0.0/24 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 192.168.1.0/24 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 192.168.123.74/29
ifconfig fxp0 inet 192.168.123.74 netmask 0xfffffff8
ifconfig fxp0 inet 192.168.123.74 netmask 255.255.255.248
Those correspond to the slightly contrived example of the /29 network
starting with network address 192.168.123.72 and running up to the
broadcast address 192.168.123.79
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.
Cheers,
Matthew
--
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/20040714/a573491b/attachment.bin
More information about the freebsd-questions
mailing list