Carles Pina i Estany
2008-Mar-09 16:25 UTC
[Xen-users] domU HVM network problem (no pinging)
Hello,
After Max E. Baro help I already have a NIC in my domU but I cannot use
it :-) (but luckily I hvae the NIC!!)
Fast question: in dom0 console appears an error message:
--------
I see in console that dom0 complains that "network link vif31.0 is NOT
READY"
--------
I try to setup the IP 192.168.0.150. The domU configuration file
contains:
--------
vif = [ ''ip=192.168.0.150, type=ioemu, mac=00:16:3e:00:00:11''
]
ip = ''192.168.0.150''
netmask = ''255.255.255.0''
gateway = ''192.168.0.1''
--------
The status after create the HVM machine is:
ifconfig:
------
eth0 (192.168.0.1)
(some other interfaces)
vif31.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.255
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:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
------
route -n
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.5.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
192.168.0.150 0.0.0.0 255.255.255.255 UH 0 0 0 vif31.0
PUBLIC-IP... 0.0.0.0 255.255.255.192 U 0 0 0 eth1
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 GW OF PUBLICIP 0.0.0.0 UG 0 0 0 eth1
the domU IP is 192.168.0.150, but I cannot ping to 192.168.0.1. Yes, I made:
echo 1 >/proc/sys/net/ipv4/ip_forward
echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp
I''ve checked too and iptables FORWARD policty is ACCEPT and I have two
lines
refering to vif31.0:
ACCEPT 0 -- 192.168.0.150 0.0.0.0/0 PHYSDEV match
--physdev-in vif31.0
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 PHYSDEV match
--physdev-in vif31.0 udp spt:68 dpt:67
Tcpdump is not giving me anything.
I see in console that dom0 complains that "network link vif31.0 is NOT
READY".
Any idea? I really feel stupid :-) (again :-D)
Thank you very much,
--
Carles Pina i Estany GPG id: 0x8CBDAE64
http://pinux.info Manresa - Barcelona
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
On Sunday 09 March 2008 12:25:07 pm Carles Pina i Estany wrote:> The status after create the HVM machine is: > ifconfig: > ------ > eth0 (192.168.0.1) > (some other interfaces) > > vif31.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF > inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.255Why do eth0 and vif31.0 have the same IP? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Carles Pina i Estany
2008-Mar-09 18:24 UTC
Re: [Xen-users] domU HVM network problem (no pinging)
Hello, On Mar/09/2008, jim burns wrote:> On Sunday 09 March 2008 12:25:07 pm Carles Pina i Estany wrote: > > The status after create the HVM machine is: > > ifconfig: > > ------ > > eth0 (192.168.0.1) > > (some other interfaces) > > > > vif31.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF > > inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.255 > > Why do eth0 and vif31.0 have the same IP?I don''t know, but reading /etc/xen/scripts/vif-route I see: main_ip=$(dom0_ip) and then bit later: ifconfig ${vif} ${main_ip} netmask 255.255.255.255 up so it looks like the correct behaviour... Somebody could show me a running configuration using route network? I mean, the /etc/xen/machine.cfg (vif and IP sections), tell me which IP has domU and the (relevant parts) of ifconfig and route -n in dom0. I think that I could do the puzzle. Or any suggestion, etc. Thank you! -- Carles Pina i Estany GPG id: 0x8CBDAE64 http://pinux.info Manresa - Barcelona _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users