On Wed, 10 Jul 2002, George Georgalis wrote: > 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.
Are you thinking of proxy-arp? http://www.shorewall.net/Documentation.htm#ProxyArp > Can someone help me with the ip syntax? Why are you re-inventing the network scripts? It hardly looks like Bering when you do this. See below... > > 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 How about: ---/etc/network/interfaces--- # Loopback interface. auto lo iface lo inet loopback #... # Option 1.2: eth0 / Fixed IP (assumed to be 1.2.3.4). # (broadcast/gateway optional) auto eth0 iface eth0 inet static address 192.168.2.66 masklen 24 broadcast 192.168.2.255 # gateway 192.168.2.1 # ... # Step 2: configure internal interface # Default: eth1 / fixed IP = 192.168.1.254 auto eth1 iface eth1 inet static address 10.1.1.1 masklen 8 broadcast 10.255.255.255 ----------------------------- and use Shorewall, removing the "norfc1918" option. --------------------------------------------------------------------------- Jeff Newmiller The ..... ..... Go Live... DCN:<[EMAIL PROTECTED]> Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...2k --------------------------------------------------------------------------- ------------------------------------------------------- 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
