From: Brian E. <be...@sa...> - 2004-09-03 20:41:51
|
Hi, My problem is that when the system first boots up, it takes an extremely long time (read 4+ hours) for my UML to respond on a public IP address. Lets say that I have a UML configured to listen on both public IP address 1.2.3.4 and private IP address 192.168.1.1 When the UML boots, the private IP address is immediately active. Then, in about 4 hours the system begins to also respond on the public IP address. When the system first boots, I have a script running the following: # Load the tun module modprobe tun # Remove the ip addresses of the devices ifconfig eth0 0.0.0.0 promisc up ifconfig eth1 0.0.0.0 promisc up # Add the internal uml-bridge brctl addbr uml-int0 brctl setfd uml-int0 1 brctl sethello uml-int0 1 brctl stp uml-int0 off ifconfig uml-int0 0.0.0.0 promisc up brctl addif uml-int0 eth0 (Just in case you were wondering... eth0 is our internal interface, eth1 is the external interface) # Add the external uml-bridge brctl addbr uml-ext0 brctl setfd uml-ext0 1 brctl sethello uml-ext0 1 brctl stp uml-ext0 off ifconfig uml-ext0 0.0.0.0 promisc up brctl addif uml-ext0 eth1 Then when the UML boots it runs tunctl -t uml-test0 tunctl -t uml-test1 ifconfig uml-test0 promisc up ifconfig uml-test1 promisc up brctl addif uml-ext0 uml-test0 brctl addif uml-int0 uml-test1 So then to run the UML I use the command linux mem=128M ubd0=UML_rootfs eth0=tuntap,uml-test0 eth1=tuntap,uml-test1 umid=test After the UML is shut down, I run brctl delif uml-ext0 uml-test0 brctl delif uml-int0 uml-test1 ifconfig uml-test0 down ifconfig uml-test1 down tunctl -d uml-test0 tunctl -d uml-test1 And for the most part this works great. Like I said, it takes about 4 hours for the public IP address to work though. I also had the same problem if I tried to change which UML was bringing up a public IP address (switching from one UML to another). I imagine I am probably just doing something stupid along the way. Once the first public IP address is active, I can bring up a second UML on a different public IP address and it is immediately available. My setup: Host: RedHat 7.3 with kernel 2.4.26 with SKAS3 and /dev/anon patch brctl version: 0.9.3-4 UML kernel: 2.6.6 (with UML patch of course) UML file system: Debian stable ISP: Road Runner Thanks! |