That is NOT a class C - that is a 24 bit subnet of a Class B. They are
VERY different when it comes to routing.
> Local network
>---------------- x.x.x.0 / 27 -----------------
> |
> |
> Portmaster
> address x.x.x.1
>netmask 255.255.255.224
> |
> | <---- dialup line
> |
> Router
> address 172.16.1.1
> netmask 255.255.255.0
> |
> |
> | remote network
>----------------- 172.16.1.0 / 24 -------------
Is this a dialin/out user or is it a network hardwired connection? If it
is network hardwired, then you put the route on the PM. If it is a dialout
user the route also goes in the PM. If it is a dialin user then the route
is best put in RADIUS.
>Now the problem:
>Portmaster> add route 172.16.1.0 172.16.1.1 1
>New route entry successfully added
>Portmaster> show routes
>Destination Gateway Flag Met Interface
>--------------------- -------------------- ---- --- ---------
>[...]
>172.16.1.0 172.16.1.1 HS 1 ptp31 <======= ????
>172.16.1.1 172.16.1.1 HL 1 ptp31
>[...]
>Portmaster>
>
>The portmaster always shows a hostroute! to the network 172.16.1.0
>and a traceroute to 172.16.1.2 ends at the portmaster.
Right, I fully expect this. The PM knows it is a class B host address
so it adds a host route. This is to be expected.
The dialin user is a special case, so if that is the case don't do the
following. Also, note that we do not yet support VLSM, so if you use ANY
addresses from the class B with anything other than a 24 bit mask, you just
can't do this.
'add netmask 172.16.0.0 255.255.255.0'
'add route 172.16.1.0 172.16.1.1 1'
Note that you must add the netmask *first*.
-MZ
-- Livingston Enterprises - Chair, Department of Interstitial Affairs Phone: 800-458-9966 510-426-0770 FAX: 510-426-8951 megazone@livingston.com For support requests: support@livingston.com <http://www.livingston.com/> Snail mail: 6920 Koll Center Parkway #220, Pleasanton, CA 94566 See me in person: Internet Expo, Boston, MA, October 16-17, Booth 422 ;-)