[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Network configuration



Hi all:
	We have, in our DCF, a fileserver running ypserv and a few more
linux boxes bound to it. Till now, the network configuration in the
machines have been done through lines in rc.local. I am trying to write
proper ifcfg scripts and get it automated (that solves lot of problem that
crop up when the machines reboot). We have some machines which have a 202
ip and a 144 ip (eth0 and eth0:0 respectively). I need to have a static
route that will make IITM domain addresses to be cnotacted through eth0:0.
I have the following line in static-routes (/etc/sysconfig/static-routes)

eth0:0 net 144.16.224.0 netmask 255.255.224.0

On boot, I find thhat ethh0:0 is configured but the static-route not set.
However, after boot up, if I say 'ifup eth0:0', it works correctly.
Moreover, the netmask in ifconfig is set as 255.255.0.0 whereas I have
mentioned it as 255.255.224.0 in ifcfg-eth0:0. I'll also attach eth0:0
config:

DEVICE="eth0:0"
USERCTL=no
ONBOOT="yes"
BOOTPROTO="none"
BROADCAST="144.16.255.255"
NETWORK="144.16.224.0"
NETMASK="255.255.224.0"
IPADDR="144.16.242.6"
HOSTNAME="tekmerc.ce.iitm.ernet.in"
ISALIAS="yes"

SInce this did not work, I added the ifup-routes in the 
/etc/rc.d/init.d/network script. It now looks like this:

       for i in $interfaces; do
                ./ifup $i boot
                ./ifup-routes $i
        done

Still the same result. Please explain.

Thanks

Prasanna.
root@civil.

PS: Sorry about having to make the mail this long.

---
Send e-mail to 'ilugc-request@xxxxxxxxxxxxxxxxxx' with 'unsubscribe' 
in either the subject or the body to unsubscribe from this list.