|
|
|
|
|
|
|
|
|
|
xen-users
[Xen-users] network-route and vif-route setup help
Hello,
I am trying to configure a hosted machine to run a number fo virtual
machines. The DomU is CentOS 5 with Xen 3.0.
I have to use routed networking as the ISP has set the switch to
disconnect the port if it receives traffic from any other MAC. My
situation is identical to this posting:
http://lists.xensource.com/archives/html/xen-users/2006-03/msg00725.html
I have followed the suggestion in that thread (See this post for what he
got to work:
http://lists.xensource.com/archives/html/xen-users/2006-03/msg00949.html)
and am running the domU with:
vif = [ "ip=domU_IP_HERE,bridge=virbr0" ]
ip = "domU_IP_HERE"
netmask="255.255.255.255"
gateway="10.255.255.1"
The domU is configured with the same IP details and I have run:
ip route add default dev eth0
Having followed all the steps outlined in that mail I can't send/receive
from domU.
The network setup on dom0 is:
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:19:99:5C:AF:D4
inet addr:dom0_IP_HERE Bcast:dom0_IP_HERE Mask:255.255.255.255
inet6 addr: fe80::219:99ff:fe5c:afd4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:163744 errors:0 dropped:0 overruns:0 frame:0
TX packets:102344 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:154023376 (146.8 MiB) TX bytes:22900634 (21.8 MiB)
Interrupt:16 Memory:ddef0000-ddf00000
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:179245 errors:0 dropped:0 overruns:0 frame:0
TX packets:179245 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:35306524 (33.6 MiB) TX bytes:35306524 (33.6 MiB)
tap0 Link encap:Ethernet HWaddr E6:D2:1D:52:B1:49
inet6 addr: fe80::e4d2:1dff:fe52:b149/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:500
RX bytes:0 (0.0 b) TX bytes:4126 (4.0 KiB)
vif10.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
inet addr:dom0_IP_HERE Bcast:dom0_IP_HERE 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:32
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
virbr0 Link encap:Ethernet HWaddr E6:D2:1D:52:B1:49
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:32179 errors:0 dropped:0 overruns:0 frame:0
TX packets:98471 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1727533 (1.6 MiB) TX bytes:147778233 (140.9 MiB)
#route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.255.255.1 * 255.255.255.255 UH 0 0 0 eth0
dom0_IP_HERE * 255.255.255.255 UH 0 0 0
vif10.0
192.168.122.0 * 255.255.255.0 U 0 0 0 virbr0
default 10.255.255.1 0.0.0.0 UG 0 0 0 eth0
The network setup on domU is:
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3E:29:C2:D3
inet addr:domU_IP_HERE Bcast:domU_IP_HERE Mask:255.255.255.255
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:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:32 Base address:0x4000
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: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:560 (560.0 B) TX bytes:560 (560.0 B)
#route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default * 0.0.0.0 UH 0 0 0 eth0
Can anyone see where I have gone wrong? Any suggestions on how to proceed
from here?
Thanks,
Will
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|
|
|
|
|