When network to domU is connected via bridge config, having an open ssh connection to dom0 and domU at the same time randomly drops dom0 connection (Connection reset by peer) and doesn't allow me back in.
Authorization is done via ssh keys. Any tips on solving that one?
EDIT: some more details about the environment
dom0
# cat /proc/version Linux version 2.6.18-128.1.10.el5xen (mockbuild@builder10.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-44)) #1 SMP Thu May 7 11:07:18 EDT 2009
domU
# cat /proc/version Linux version 2.6.9-78.0.22.ELxenU (mockbuild@builder10.centos.org) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-10)) #1 SMP Thu Apr 30 19:39:33 EDT 2009
Xen version 3.1.2-128.1.10.el5
Important detail I first forgot to mention: this happens only when dom0 has an external IP associated with it.
Current solution: no external IP on dom0, access to dom0 via domU -> dom0 path. This could be relatively safe when having a separate domU which does nothing but provide this route. I can still connect to dom0 remotely and reboot other machines when needed.
EDIT2: additional info about MAC addresses on dom0
dom0
# ifconfig|grep HWaddr bond0 Link encap:Ethernet HWaddr 00:04:23:DC:28:60 bond0.100 Link encap:Ethernet HWaddr 00:04:23:DC:28:60 eth0 Link encap:Ethernet HWaddr 00:04:23:DC:28:60 eth1 Link encap:Ethernet HWaddr 00:04:23:DC:28:60 tap0 Link encap:Ethernet HWaddr 7E:CE:49:45:3F:2E vif4.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF vif4.1 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF vif22.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF xenbr0 Link encap:Ethernet HWaddr 00:04:23:DC:28:60 xenbr1 Link encap:Ethernet HWaddr 00:04:23:DC:28:60
It would seem that there's really some issue with dup MAC addresses.
Best Answer
Based on the information you've provided so far I would suggest that problem is with the MAC address duplication and the disconnections may be from the switch you're ethernet port is going through.
That said there will be some MAC address duplication. I just checked on one of my Xen servers that I have been working on and I get the following when I run
ifconfig | grep HWaddr
This is on a RHEL5 Xen 3.0.3 server so I am assuming the interface differences are based on changes between 3.0.3 and 3.1.2. That aside you can see that both my eth0 and eth1 interfaces are different MAC addresses whereas yours are both identical. the pethX and vifX.X entries are all virtual interfaces for Xen so the MAC address FE:FF:FF:FF:FF:FF is perfectly fine.
The xenbr0 is the bridge that eth0 is attached to and xenbr1 is the bridge for eth1 and use the same MAC address. The virbr0 interface is the bridge for the internal virtual network and has the 00:00:00:00:00:00 MAC because of having spanning tree protocol enabled. You can confirm the bridging on your system by running
brctl show
which should give you something like: