[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-users] Dom0 gateway
Sergio, All, This is very similar to the question I posted a couple of days ago regarding the networking setup on a colo server with public IPs. My settings are similar - but I have not got an IP assigned to eth0 on domU.... On domU (FC4): [root@dellserver ~]# brctl show xen-br0 bridge name bridge id STP enabled interfaces xen-br0 8000.00142272e278 no eth0 vif1.0 [root@dellserver ~]# ifconfig eth0 Link encap:Ethernet HWaddr 00:14:22:72:E2:78 inet6 addr: fe80::214:22ff:fe72:e278/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:15940810 errors:0 dropped:0 overruns:0 frame:0 TX packets:42 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:4185960609 (3.8 GiB) TX bytes:3566 (3.4 KiB) Base address:0xecc0 Memory:dfde0000-dfe00000 eth1 Link encap:Ethernet HWaddr 00:14:22:72:E2:79 inet addr:85.234.137.34 Bcast:85.234.137.255 Mask:255.255.255.0 inet6 addr: fe80::214:22ff:fe72:e279/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1117214 errors:0 dropped:0 overruns:0 frame:0 TX packets:62116 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:81320608 (77.5 MiB) TX bytes:86637157 (82.6 MiB) Base address:0xdcc0 Memory:df9e0000-dfa00000 eth1:0 Link encap:Ethernet HWaddr 00:14:22:72:E2:79 inet addr:85.234.137.35 Bcast:85.234.137.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 Base address:0xdcc0 Memory:df9e0000-dfa00000 eth1:1 Link encap:Ethernet HWaddr 00:14:22:72:E2:79 inet addr:85.234.137.36 Bcast:85.234.137.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 Base address:0xdcc0 Memory:df9e0000-dfa00000 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:3591 errors:0 dropped:0 overruns:0 frame:0 TX packets:3591 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:290872 (284.0 KiB) TX bytes:290872 (284.0 KiB) vif1.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:35 errors:0 dropped:0 overruns:0 frame:0 TX packets:467698 errors:0 dropped:4424 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2702 (2.6 KiB) TX bytes:26353434 (25.1 MiB) xen-br0 Link encap:Ethernet HWaddr 00:14:22:72:E2:78 inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1081281 errors:0 dropped:0 overruns:0 frame:0 TX packets:5 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:62848349 (59.9 MiB) TX bytes:378 (378.0 b) [root@dellserver ~]# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 85.234.137.0 * 255.255.255.0 U 0 0 0 eth1 169.254.0.0 * 255.255.0.0 U 0 0 0 eth1 default 85-234-137-1.po 0.0.0.0 UG 0 0 0 eth1 [root@dellserver ~]# on my dom0 (FC4 also) [root@dellserver ~]# xm console vm-colo1 ************ REMOTE CONSOLE: CTRL-] TO QUIT ******** [root@vm-colo1 ~]# ifconfig eth0 Link encap:Ethernet HWaddr BA:D0:C0:FF:EE:01 inet addr:85.234.137.244 Bcast:85.234.137.255 Mask:255.255.255.0 inet6 addr: fe80::b8d0:c0ff:feff:ee01/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:560282 errors:0 dropped:0 overruns:0 frame:0 TX packets:35 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:31647509 (30.1 MiB) TX bytes:2702 (2.6 KiB) 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:8 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:560 (560.0 b) TX bytes:560 (560.0 b) [root@vm-colo1 ~]# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 85.234.137.0 * 255.255.255.0 U 0 0 0 eth0 169.254.0.0 * 255.255.0.0 U 0 0 0 eth0 default dellserver.comw 0.0.0.0 UG 0 0 0 eth0 [root@vm-colo1 ~]# What happens with this network configuration? Well I can ping eth1 on domU but I am not able to ping e.g. the network gateway. As you can see from my iptables output I have tried to use the rules as outlined in the xensource wiki. root@dellserver ~]# iptables -L Chain FORWARD (policy ACCEPT) target prot opt source destination ACCEPT all -- anywhere anywhere PHYSDEV match --physdev-in eth0 ! --physdev-out eth0 ACCEPT all -- anywhere anywhere PHYSDEV match ! --physdev-in eth0 --physdev-out eth0 RH-Firewall-1-INPUT all -- anywhere anywhere Chain INPUT (policy ACCEPT) target prot opt source destination RH-Firewall-1-INPUT all -- anywhere anywhere Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain RH-Firewall-1-INPUT (2 references) target prot opt source destination ACCEPT all -- anywhere anywhere ACCEPT icmp -- anywhere anywhere icmp any ACCEPT ipv6-crypt-- anywhere anywhere ACCEPT ipv6-auth-- anywhere anywhere ACCEPT udp -- anywhere 224.0.0.251 udp dpt:5353 ACCEPT udp -- anywhere anywhere udp dpt:ipp ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:imap ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:domain ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:smtp ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:http REJECT all -- anywhere anywhere reject-with icmp-host-prohibited [root@dellserver ~]# Any thoughts on how I should be structuring my networking to resolve this problem please? Thanks. Rob On 11/25/05, Sergio Maffioletti (CSCS) <sergio.maffioletti@xxxxxxx> wrote:
Dear All _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |