Routed problem --- sub-net routing in /etc/gateways

Routed problem --- sub-net routing in /etc/gateways

Post by <ytl.. » Sun, 30 May 1999 04:00:00

    My ISP gives me a block of IP addresses to use. I have to divide them
into sub-nets and set up routing to through
gateway (a PPP connection to a router). When I put following
entry in /etc/gateways:

net gateway metric 2 active

routed then adds entry to routing-table:

Destination       Gateway         Mask

    It is a host instead of net. It seems the remote router is not supplying
the correct netmask or I have to manually specify it somewhere. Does anyone
know how to solve this? Thanks.

Yung-Tien Lee,