Bering rc2
This is the general procedure I use to bring up networking... I
understand there is a way to bring up an interface to listen to an
entire subnet, not just an address. Can someone help me with the ip
syntax?
Thanks,
// George
down () {
d=`ip -o link show | cut -d: -f2`
for i in $d ; do
ip addr flush $i
ip link set $i down
done
}
up () {
ip link set lo up
ip link set eth0 up
ip link set eth1 up
ip addr add 127.0.0.1/8 label lo dev lo
ip addr add 192.168.2.66/24 label eth0 dev eth0
ip addr add 10.1.1.1/8 label eth1 dev eth1
ip route add 127/8 via 127.0.0.1 table main
}
case "$1" in
start)
down
up
;;
stop)
down
;;
restart)
down
up
;;
*)
echo "Usage: /etc/init.d/network.sh {start|stop|restart}"
exit 1
esac
exit 0
--
GEORGE GEORGALIS, System Admin/Architect cell: 347-451-8229
Security Services, Web, Mail, mailto:[EMAIL PROTECTED]
File, Print, DB and DNS Servers. http://www.galis.org/george
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Two, two, TWO treats in one.
http://thinkgeek.com/sf
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html