Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 01 Nov 1997 22:04:47 +0100
From:      "IBS / Andre Oppermann" <andre@pipeline.ch>
To:        Ronald Wiplinger <ronald@trace.com.tw>
Cc:        FreeBSD-isp <freebsd-isp@FreeBSD.ORG>
Subject:   Re: Routing entry for sysconf
Message-ID:  <345B996E.6BE19A06@pipeline.ch>
References:  <199711011923.DAA07598@mail.trace.com.tw>

next in thread | previous in thread | raw e-mail | index | archive | help
You have calculated you netmasks in the wrong way.

The right way is this: 256 - 32 (the size of the subnet) = 224

So you have to enter 255.255.255.224 for your netmask.

Ronald Wiplinger wrote:
> 
> I have added into my router computer running FreeBSD 3 ethernet cards and one Router card.
> 
> I have problems to figure out the right way to define the subnets for the three ethernet cards in sysconfig.
> 
> I want:
> 
> fxp0:   203.67.189.0 netmask 255.255.255.112   (0, 1 - 30, 31  [network, usable addresses, broadcast])
>                                         (for all servers 100 MB/s)
> 
> ed0:    203.67.189.32 netmask 255.255.255.112  (32, 33 - 62, 63)
>                                         (for our office 10 MB/s)
> 
> ed1:    203.67.189.64 netmask 255.255.255.112  (64, 65 - 94, 95)
> ed1:    203.67.189.96 netmask 255.255.255.112  (96, 97 - 126, 127)
> ed1:    203.67.189.128 netmask 255.255.255.112  (128, 129 - 158, 159)
> ed1:    203.67.189.160 netmask 255.255.255.112  (160, 161 - 190, 191)
> ed1:    203.67.189.192 netmask 255.255.255.112  (192, 193 - 222, 223)
> ed1:    203.67.189.224 netmask 255.255.255.112  (224, 225 - 254, 255)
>                                         (for class room 10 MB/s)
> 
> eth0:  192.168.19.22 192.168.19.21 netmask 255.255.255.252  to my provider
> eth1:  192.168.150.1 192.168.150.2 netmask 255.255.255.255  to my customer
> ....
> 
> bye
> 
> Ronald Wiplinger
> Gen. Manager of Wang's Trace International Co., Ltd. (Taiwan: Taipei, Touyuan, Kaohsiung)
> Tel: +886 2 609-0652, Handy: +886 932 251430   Fax: +886 2 600-0132
> http://www.trace.com.tw



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?345B996E.6BE19A06>