From: Matt A. <ma...@te...> - 2004-01-27 18:42:06
|
Try running your network-up script in the background (ie. ./network-up &). After it does the "ifconfig eth0.." your connection to the server will die. Of course, if you're running this from the console then ignore this as the problem is somewhere else :) On Sat, 2004-01-24 at 18:05, Dj Statik wrote: > Greetings List, > > I am trying to get network bridging to work for a couple of UML > systems. > > For some reason, the host isn't getting the IP I assign to it, it's > just falling off the network. > > Here is the relevant section of my network-up script. > > --- snip --- > # Configuration options > my $host_ip = "192.168.1.254"; > my $netmask = "255.255.255.0"; > my $broadcast = "192.168.1.255"; > my $gateway = "192.168.1.1"; > > # Configure eth0 > system "/sbin/ifconfig eth0 0.0.0.0 promisc up"; > > # Create the bridge > system "/usr/sbin/brctl addbr br0"; > system "/usr/sbin/brctl setfd br0 0"; > system "/usr/sbin/brctl sethello br0 0"; > system "/usr/sbin/brctl stp br0 off"; > > # Attach the host to the bridge > system "/sbin/ifconfig br0 $host_ip netmask $netmask broadcast > $broadcast up"; > system "/usr/sbin/brctl addif br0 eth0"; > system "/sbin/route add default gw $gateway"; > > > --- snip --- > > The above looks ok to me, and i have checked my setup against the > examples found in the bridging howto at www.usermodelinux.org > > Can anyone spot anything obvious that might stop the above from > working? > > Any assistance greatly appreciated. > > Thanks, > > From Mitchell > -- Matt Ayres <ma...@te...> TekTonic |