WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Networking problems with debian packages

> > But I still cannot ping to the domU. After
> > # xm create -f speedyU.conf
> > ifconfig shows an interface vif1.0, but nowhere anything with 192.168.5.
> > (I configured my domU to 192.168.5.2)
>
> vif1.0 is just the p-t-p link for the tun device on the host side.
>
> Set the ip address in the guest on eth0.

I think I did:
speedyU:~# ifconfig
eth0      Link encap:Ethernet  HWaddr AA:00:00:75:E8:9F
          inet addr:192.168.5.2  Bcast:192.168.5.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:27 errors:0 dropped:0 overruns:0 frame:0
          TX packets:98 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1240 (1.2 KiB)  TX bytes:4620 (4.5 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:23 errors:0 dropped:0 overruns:0 frame:0
          TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2046 (1.9 KiB)  TX bytes:2046 (1.9 KiB)

speedyU:~# cat /etc/network/interfaces
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address 192.168.5.2
        netmask 255.255.255.0
        network 192.168.5.0
        gateway 192.168.5.1

On domain 0 I tried a 
# ifconfig vif1.0 192.168.5.1 pointopoint 192.168.5.2 up
ifconfig shows now the ip and route the route:
# LANG=EN ifconfig
eth0      Link encap:Ethernet  HWaddr 00:00:E2:7D:84:FA
          inet addr:192.168.1.3  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::200:e2ff:fe7d:84fa/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:720 errors:0 dropped:0 overruns:0 frame:0
          TX packets:896 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:369312 (360.6 KiB)  TX bytes:115735 (113.0 KiB)
          Interrupt:10 Base address:0x7000

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:680 errors:0 dropped:0 overruns:0 frame:0
          TX packets:680 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:53945 (52.6 KiB)  TX bytes:53945 (52.6 KiB)

vif1.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          inet addr:192.168.5.1  Bcast:192.168.5.255  Mask:255.255.255.0
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:104 errors:0 dropped:0 overruns:0 frame:0
          TX packets:33 errors:0 dropped:4 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:4872 (4.7 KiB)  TX bytes:1492 (1.4 KiB)

xen-br0   Link encap:Ethernet  HWaddr 00:00:E2:7D:84:FA
          inet addr:192.168.1.3  Bcast:192.168.1.255  Mask:255.255.255.255
          inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:812 errors:0 dropped:0 overruns:0 frame:0
          TX packets:815 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:361056 (352.5 KiB)  TX bytes:108721 (106.1 KiB)

# LANG=EN route -n
Kernel IP routing table
Destination     Gateway        Genmask         Flags Metric Ref    Use Iface
192.168.5.0     0.0.0.0        255.255.255.0   U     0      0        0 vif1.0
192.168.1.0     0.0.0.0        255.255.255.0   U     0      0        0 xen-br0
0.0.0.0         192.168.1.1    0.0.0.0         UG    0      0        0 xen-br0

but ping to 192.168.5.2 still doesn't work. It doesn't work from domU either.

Thanks,
Christian


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel