Re: polymix-4 routing

From: shadha (shadhanker@yahoo.com)
Date: Tue Feb 05 2002 - 00:04:35 MST


Hello Alex,

Thanks for your reply.
You are correct, I'm talking abt the script in PolyMix-4 HOWTO document[1]
only . I'm using polyser and polyclt machines.
while creating routes using script ,it creates routes to " iface eth0,not
for lo" , i've attched script result below...for u'r reference.

#!/bin/sh
X=1
p=1
while test $p -lt 32; do
        j=`expr \( $p - 1 \) \* 4`
        k=`expr $j + 128`
        c=`expr $p + 60`
        s=`expr $p + 190`
        /sbin/route add -net 10.$X.$j.0/22 gw 172.16.$X.$c
        /sbin/route add -net 10.$X.$k.0/22 gw 172.16.$X.$s
        p=`expr $p + 1`
done
# in case the proxy is behind a router
#route add -net 10.$X.124.0/22 172.16.$X.30

/sbin/route shows,
[root@transquid workloads]# /sbin/route |more
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
172.16.1.116 * 255.255.255.255 UH 0 0 0
eth0
172.16.1.0 * 255.255.255.0 U 0 0
0 eth0
10.1.28.0 172.16.1.68 255.255.252.0 UG 0 0 0
eth0
10.1.92.0 172.16.1.84 255.255.252.0 UG 0 0 0
eth0
10.1.152.0 172.16.1.197 255.255.252.0 UG 0 0 0 eth0
10.1.216.0 172.16.1.213 255.255.252.0 UG 0 0 0 eth0
10.1.24.0 172.16.1.67 255.255.252.0 UG 0 0 0
eth0
10.1.88.0 172.16.1.83 255.255.252.0 UG 0 0 0
eth0
10.1.156.0 172.16.1.198 255.255.252.0 UG 0 0 0 eth0
10.1.220.0 172.16.1.214 255.255.252.0 UG 0 0 0 eth0
10.1.20.0 172.16.1.66 255.255.252.0 UG 0 0 0
eth0
10.1.84.0 172.16.1.82 255.255.252.0 UG 0 0 0
eth0
10.1.144.0 172.16.1.195 255.255.252.0 UG 0 0 0
eth0



This archive was generated by hypermail 2b29 : Mon Feb 06 2006 - 12:00:21 MST