| Q: |
I run a UML hosting provider, how can I restrict what IP addresses a UML can use? |
| A: |
This can be done using "ebtables", a URL for this is available at the end of the document. In newer 2.6 kernels, iptables can also accomplish this. |
| Q: |
Why can multiple UMLs on a bridge talk to the host but not each other? |
| A: |
Often this is caused by UML instances having the same MAC address. Please see the next question. |
| Q: |
Why do all my interfaces have the same MAC address? |
| A: |
This could due to the way interfaces are brought
up. If an interface is brought up using
|
| Q: |
How can I guarantee a UML network interface will always have the same MAC address? |
| A: |
A unique MAC address can be assigned by specifying
it as part of the network interface argument, like
so: |
| Q: |
If I have daemons on the host machine that bind to all addresses, what will they actually bind to? |
| A: |
The daemons will (normally) bind to any IP that
isn't |
| Q: |
Can I add more than one physical adapter to the bridge? |
| A: |
Of course, bridges are designed for this. Simply repeat steps (1) and (7) in Chapter 2, The host kernel. |
| Q: |
My ethernet adapter has more than one IP, how can I make this work with bridging? |
| A: |
Simply add aliases to the bridge interface in the same way you would any other interface. |
| Q: |
I get the error |
| A: |
This happens if you don't have bridging support compiled into your kernel, or the module isn't loaded. Read the section about the host kernel. |
| Q: |
I get the error |
| A: |
Most likely you don't have tuntap compiled into your kernel, or the module isn't loaded. Read Chapter 2, The host kernel. |
| A: |
If your host kernel uses devfs, the TUN device can
also be REGISTER misc MKOLDCOMPAT # Create correct /dev/net/tun symlink REGISTER ^misc/net/tun$ CFUNCTION GLOBAL unlink net/tun REGISTER ^misc/net/tun$ CFUNCTION GLOBAL symlink /dev/$devname net/tun and comment out the old UNREGISTER for misc if it exists: #UNREGISTER misc RMOLDCOMPAT then send a HUP signal to the devfsd process to
force it to read the modified configuration file.
This will create a symlink |
| Q: |
I get the error |
| A: |
Most likely, permissions on |
| A: |
If you are running UML inside a chroot, you will
need to bind mount |
| Q: |
I get various errors about the network being unreachable on the host after I've added the bridge, what could be the cause? |
| A: |
Check that you assigned the bridge an IP address
and that it is up. The output of |
| A: |
Setting up the bridge may remove your default
route, in which case you need to issue the command
|
| Q: |
Does ARP travel across my bridge? |
| A: |
Yes, ARP will travel across bridges, this is necessary in order for ethernet to work as it should. If you are not seeing ARP pass your bridge interface this may be an indication of a problem. |
| Q: |
Can I use DHCP with bridging? |
| A: |
DHCP is fully compatible with bridging as described in this HOWTO. Setup a DHCP server somewhere on the network and use dhclient or dhcpcd in the UML. |
| Q: |
I seem to be having trouble with Samba and Windows SMB clients when using UML, is there a fix? |
| A: |
Configuring a Samba server on your LAN to act as a WINS replicator fixes these issues in many cases. See this page at the Samba site for more information on WINS. |