[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] network-route and vif-route setup help



No one has any idea how to solve this?


Md Mooktakim Ahmed wrote:
> 
> Here is the output of my domU:
> -bash-3.00# ifconfig
> eth0      Link encap:Ethernet  HWaddr 00:16:3E:7D:2B:63
>           inet addr:82.165.37.144  Bcast:82.165.37.144 
> Mask:255.255.255.255
>           inet6 addr: fe80::216:3eff:fe7d:2b63/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:0 (0.0 b)  TX bytes:756 (756.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: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)
> 
> -bash-3.00# ip r
> 169.254.0.0/16 dev eth0  scope link
> 
> as you can see the route isn't correct i don't think. and i can't add my
> own route:
> -bash-3.00# ip route replace default via 82.165.27.12
> RTNETLINK answers: Network is unreachable
> -bash-3.00# ip route replace default via 10.255.255.1
> RTNETLINK answers: Network is unreachable
> 
> 
> I have edited the network-route file:
> [root@cyclops ~]# cat /etc/xen/scripts/network-route
> #!/bin/sh
> #============================================================================
> # Default Xen network start/stop script.
> # Xend calls a network script when it starts.
> # The script name to use is defined in /etc/xen/xend-config.sxp
> # in the network-script field.
> #
> # Usage:
> #
> # network-route (start|stop|status) {VAR=VAL}*
> #
> # Vars:
> #
> # netdev     The gateway interface (default eth0).
> # antispoof  Whether to use iptables to prevent spoofing (default yes).
> #
> #============================================================================
> 
> echo 1 >/proc/sys/net/ipv4/ip_forward
> echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp
> 
> I am out of ideas.
> 
> On Wed, March 29, 2006 10:43 am, Ralf Steenbock wrote:
>> Hello,
>>
>>
>>> So what i see is this, ifconfig says:
>>> [root@cyclops ~]# ifconfig
>>> eth0      Link encap:Ethernet  HWaddr 00:40:CA:80:5B:80 inet
>>> addr:82.165.27.12
>>> Bcast:82.165.27.12  Mask:255.255.255.255
>>> inet6 addr: fe80::240:caff:fe80:5b80/64 Scope:Link 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)
>>> Interrupt:23 Base address:0xe000
>>>
>>>
>>> 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:48 errors:0 dropped:0 overruns:0 frame:0
>>> TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
>>> collisions:0 txqueuelen:0
>>> RX bytes:4360 (4.2 KiB)  TX bytes:4360 (4.2 KiB)
>>>
>>>
>>> vif1.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF inet
>>> addr:82.165.27.12
>>> Bcast:82.165.27.12  Mask:255.255.255.255
>>> inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link UP BROADCAST RUNNING
>>> MULTICAST
>>> MTU:1500  Metric:1
>>> RX packets:10 errors:0 dropped:0 overruns:0 frame:0
>>> TX packets:0 errors:0 dropped:5 overruns:0 carrier:0
>>> collisions:0 txqueuelen:0
>>> RX bytes:588 (588.0 b)  TX bytes:0 (0.0 b)
>>>
>>>
>>>
>>> 82.165.27.12 is my main IP. vif1.0 seems to have been assigned the same
>>> ip.
>>> which probably makes sense because of what ip r says: [root@cyclops ~]#
>>> ip r
>>> 82.165.37.144 dev vif1.0  scope link  src 82.165.27.12
>>> 169.254.0.0/16 dev eth0  scope link
>>> default via 10.255.255.1 dev eth0
>>>
>>> 37.144 is my domU ip. not sure exactly whats going on. but it probably
>>> means vif1.0
>>> is connected on 144? no idea.
>>>
>>> and what i have in my domU config: vif = [ 'ip=82.165.37.144' ] ip =
>>> "82.165.37.144"
>>> netmask="255.255.255.255" gateway="10.255.255.1" #gateway="82.165.27.12"
>>>
>>>
>>> the question is here do i use my isp's gateway? (10.*) the one for dom0?
>>> OR do i use
>>> dom0 itself? since we are routing i should use dom0? I tried both. the
>>> ifconfig and ip
>>> r output is the same.
>>>
>>> and lastly i used centos for domU too. so my
>>> /etc/sysconfig/network-scripts/ifcfg-eth0 is:
>>> DEVICE=eth0
>>> ONBOOT=yes
>>> BOOTPROTO=static
>>> IPADDR=82.165.37.144
>>> NETMASK=255.255.255.255
>>> GATEWAY=10.255.255.1
>>>
>>>
>>> Is everything correct here?
>>>
>>>
>> This looks quite similar to my config. This way your domu mac should not
>> be visible to the switch. Did you put
>>
>>
>> echo 1 >/proc/sys/net/ipv4/ip_forward echo 1 >
>> /proc/sys/net/ipv4/conf/eth0/proxy_arp
>>
>> into /etc/xen/scripts/network-route ?
>>
>> It is absolutely necessary, because otherwise the server will not
>> forward packets to domu (first line) and not answer to arp request for
>> the ip of domu
>> (second line).
>> Try it again and play with your network settings in domu ("xm console
>> xxx" with xxx as id of your domu). What is the output of "ifconfig" and
>> "ip r" in domu?
>>
>>
>> --
>> Dipl.-Ing. Ralf Steenbock -- EDV-Systementwicklung
>> Weg am KÃtterberg 39, D-44807 Bochum
>> Tel.:  +49 (0)234 3252043 / +49 (0)177 7550868
>> www:   <http://www.openlogic.de>
>>
>>
>>
>> _______________________________________________
>> Xen-users mailing list
>> Xen-users@xxxxxxxxxxxxxxxxxxx
>> http://lists.xensource.com/xen-users
>>
>>
>>
> 
> 
> -- 
> Website: http://www.mooktakim.com
> email: mma@xxxxxxxxxxxxx
> 
> 
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
> 
> 
--
View this message in context: 
http://www.nabble.com/network-route-and-vif-route-setup-help-t1333567.html#a3674980
Sent from the Xen - User forum at Nabble.com.


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.