For example:
esmf04m-root> cat redhat-routes-for-optiputer add -net 137.110.243.0 netmask 255.255.255.0 gw 137.110.247.209 add -net 137.110.244.0 netmask 255.255.255.0 gw 137.110.247.209 add -net 137.110.245.0 netmask 255.255.255.0 gw 137.110.247.209 add -net 137.110.246.0 netmask 255.255.255.128 gw 137.110.247.209 add -net 137.110.246.128 netmask 255.255.255.128 gw 137.110.247.209 add -net 137.110.247.208 netmask 255.255.255.240 gw 137.110.247.209 add -net 137.110.247.208 netmask 255.255.255.0 gw 137.110.247.209 Wed Nov 16 16:41:29 esmf04m-root> ./redhat-to-aix-routes -h Usage: ./redhat-to-aix-routes -i interface [-r|-o] [-h] [-e] -i interface specifies what interface the routes are for -r says to add entries to the routing table (this script should just generate an error on dups, no big deal) -o says to add entries to the ODM (be careful about duplicates - this script will not avoiding adding dups) -h says to show this help message -e says to just echo what would be done - don't actually do it Wed Nov 16 16:41:33 esmf04m-root> ./redhat-to-aix-routes -i en3 -e -o -r < redhat-routes-for-optiputer route add -net 137.110.243.0 -netmask 255.255.255.0 137.110.247.209 chdev -l inet0 -a net,-hopcount,0,-netmask,255.255.255.0,-if,en3,,137.110.243.0,137.110.247.209 route add -net 137.110.244.0 -netmask 255.255.255.0 137.110.247.209 chdev -l inet0 -a net,-hopcount,0,-netmask,255.255.255.0,-if,en3,,137.110.244.0,137.110.247.209 route add -net 137.110.245.0 -netmask 255.255.255.0 137.110.247.209 chdev -l inet0 -a net,-hopcount,0,-netmask,255.255.255.0,-if,en3,,137.110.245.0,137.110.247.209 route add -net 137.110.246.0 -netmask 255.255.255.128 137.110.247.209 chdev -l inet0 -a net,-hopcount,0,-netmask,255.255.255.128,-if,en3,,137.110.246.0,137.110.247.209 route add -net 137.110.246.128 -netmask 255.255.255.128 137.110.247.209 chdev -l inet0 -a net,-hopcount,0,-netmask,255.255.255.128,-if,en3,,137.110.246.128,137.110.247.209 route add -net 137.110.247.208 -netmask 255.255.255.240 137.110.247.209 chdev -l inet0 -a net,-hopcount,0,-netmask,255.255.255.240,-if,en3,,137.110.247.208,137.110.247.209 route add -net 137.110.247.208 -netmask 255.255.255.0 137.110.247.209 chdev -l inet0 -a net,-hopcount,0,-netmask,255.255.255.0,-if,en3,,137.110.247.208,137.110.247.209 Wed Nov 16 16:41:39
You can e-mail the author with questions or comments: