LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   Network issue with a Windows 2003 guest on an openSuSE host (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/network-issue-with-a-windows-2003-guest-on-an-opensuse-host-4175439463/)

NetEng1 11-30-2012 10:34 AM

Network issue with a Windows 2003 guest on an openSuSE host
 
I installed Xen 4.1.3 on an openSuSE 12.2 system. I was able to get Windows 2003 server running as a guest on that system. I configured a static IP address for the guest. I am not able to ping anything outside of the host. I can ping the host, but can not ping even the default router. Pinging the default router from the host works fine. If I do a tcpdump on the the bridge (br0), I can see the ping requests and responses when going from guest to host. When I ping from the guest to the default router, I do not even see the requests go out. Any ideas?

Here is the output of ifconfig:

test-web2:/etc/sysconfig/network # ifconfig
br0 Link encap:Ethernet HWaddr 00:10:5A:1E:D6:92
inet addr:172.16.0.122 Bcast:172.16.0.255 Mask:255.255.255.0
inet6 addr: fe80::210:5aff:fe1e:d692/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:100539 errors:0 dropped:0 overruns:0 frame:0
TX packets:27561 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:21807781 (20.7 Mb) TX bytes:3071594 (2.9 Mb)

eth0 Link encap:Ethernet HWaddr 00:10:5A:1E:D6:92
inet6 addr: fe80::210:5aff:fe1e:d692/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:100481 errors:0 dropped:0 overruns:0 frame:0
TX packets:27890 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:23197584 (22.1 Mb) TX bytes:3131416 (2.9 Mb)
Interrupt:17 Base address:0x8000

eth1 Link encap:Ethernet HWaddr 54:04:A6:B4:E8:0F
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:38241 errors:0 dropped:0 overruns:0 frame:0
TX packets:38241 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:35730211 (34.0 Mb) TX bytes:35730211 (34.0 Mb)

tap5.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:89 errors:0 dropped:0 overruns:0 frame:0
TX packets:27325 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:11797 (11.5 Kb) TX bytes:3311001 (3.1 Mb)

vif5.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:27321 overruns:0 carrier:0
collisions:0 txqueuelen:32
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

Output of brctl show:

test-web2:/etc/sysconfig/network # brctl show
bridge name bridge id STP enabled interfaces
br0 8000.00105a1ed692 no eth0
eth1
tap5.0
vif5.0

The xml configuration file for the guest:

test-web2:/etc/xen/vm # cat windowsxpx64-1.xml
<domain type='xen'>
<name>windowsxpx64-1</name>
<description>None</description>
<uuid>74c2b8d4-c252-b390-2b16-ee07c3845afd</uuid>
<memory>524288</memory>
<currentMemory>524288</currentMemory>
<vcpu>2</vcpu>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<clock sync='localtime'/>
<keymap>en-us</keymap>
<os>
<type>hvm</type>
<loader>/usr/lib/xen/boot/hvmloader</loader>
<boot dev='hd'/>
</os>
<features>
<apic/>
<acpi/>
<pae/>
</features>
<devices>
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
<disk type='file' device='disk'>
<driver name='file'/>
<source file='/var/lib/xen/images/windowsxpx64/disk0.raw'/>
<target dev='hda'/>
</disk>
<interface type='bridge' model='rtl8139'>
<source bridge='br0'/>
<mac address='00:16:3e:26:84:ea'/>
<script path='/etc/xen/scripts/vif-bridge'/>
</interface>

<graphics type='vnc'/>

</devices>
</domain>

Any ideas?
Thanks

NetEng1 12-03-2012 10:50 AM

Ok, so here is the strangest thing. As you can see from my configuration I presented earlier, I have two Ethernet ports associated with br0. Althought the host could get out to the network fine, the guest would not. I changed the Ethernet port to the other one that is part of the group and believe it or not the guest now sees the external network. Why the host woudl be fine, but the guest was not, is beyond me, but just switching did the trick. I guess I just can't use the other ethernet.


All times are GMT -5. The time now is 11:19 AM.