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



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

net 192.168.1.64 gateway 192.168.1.72 metric 2 active

routed then adds entry to routing-table:

Destination       Gateway         Mask
192.168.1.64    192.168.1.72    255.255.255.255

    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,