|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-users] 2 network cards and two physical network.
Dirk H. Schulz a écrit : Hi Jean, Jean-Michel Caricand schrieb:Hi all, I have 2 network cards on my computer. I want to use : - eth0 for xen0 host: ip 192.168.1.4 - eth1 for xenU guest: ip 192.168.2.1 guest and host are not on the same network. eth0 is configured when I start xend (xen-br0->eth0). I configure eth1 with : /etc/xen/scripts/network start bridge=xen-br1 netdev=eth1In my guest domain config, I add vif = [ 'bridge=xen-br1'], but when I startmy domain, I can't ping machines on network 192.168.2.0/24. ifconfig on guest show a correct config.What is your correct config? Please provide it. And did you verify with brctl show that eth1 is on xen-br1 and working? What is the contents of the routing table on dom0?Since the above config should work, any additional info would help tracking down the problem.Dirk _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users
For examples, I test the config at home.
Before "xend start"
amande:/home/jm# ifconfig
eth0 Lien encap:Ethernet HWaddr 00:D0:70:02:0C:B3
inet adr:192.168.3.1 Bcast:192.168.3.255 Masque:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1289 errors:0 dropped:0 overruns:0 frame:0
TX packets:1527 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:425133 (415.1 KiB) TX bytes:368301 (359.6 KiB)
Interruption:10 Adresse de base:0xe000
lo Lien encap:Boucle locale
inet adr:127.0.0.1 Masque:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:204 errors:0 dropped:0 overruns:0 frame:0
TX packets:204 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:23402 (22.8 KiB) TX bytes:23402 (22.8 KiB)
amande:/home/jm# route -n
Table de routage IP du noyau
Destination Passerelle Genmask Indic Metric Ref Use
Iface
192.168.3.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.3.254 0.0.0.0 UG 0 0 0 eth0
amande:/home/jm#
After:
amande:/home/jm# ifconfig
eth0 Lien encap:Ethernet HWaddr 00:D0:70:02:0C:B3
inet adr:192.168.3.1 Bcast:192.168.3.255 Masque:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1289 errors:0 dropped:0 overruns:0 frame:0
TX packets:1527 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:425133 (415.1 KiB) TX bytes:368301 (359.6 KiB)
Interruption:10 Adresse de base:0xe000
lo Lien encap:Boucle locale
inet adr:127.0.0.1 Masque:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:204 errors:0 dropped:0 overruns:0 frame:0
TX packets:204 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:23402 (22.8 KiB) TX bytes:23402 (22.8 KiB)
xen-br0 Lien encap:Ethernet HWaddr 00:D0:70:02:0C:B3
inet adr:192.168.3.1 Bcast:192.168.3.255 Masque:255.255.255.255
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1079 errors:0 dropped:0 overruns:0 frame:0
TX packets:1249 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:303127 (296.0 KiB) TX bytes:344472 (336.3 KiB)
amande:/home/jm# route -n
Table de routage IP du noyau
Destination Passerelle Genmask Indic Metric Ref Use
Iface
192.168.3.0 0.0.0.0 255.255.255.0 U 0 0 0
xen-br0
0.0.0.0 192.168.3.254 0.0.0.0 UG 0 0 0
xen-br0
amande:/home/jm#
amande:/home/jm# /etc/xen/scripts/network start bridge=xen-br1 netdev=eth1
network start bridge=xen-br1 netdev=eth1 antispoof=yes
iptables: No chain/target/match by that name
amande:/home/jm# cat /etc/xen/xmaurige
...
# Optionally define mac and/or bridge for the network interfaces.
# Random MACs are assigned if not given.
vif = [ 'bridge=xen-br1' ]
...
amande:/home/jm# ifconfig
eth0 Lien encap:Ethernet HWaddr 00:D0:70:02:0C:B3
inet adr:192.168.3.1 Bcast:192.168.3.255 Masque:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1374 errors:0 dropped:0 overruns:0 frame:0
TX packets:1595 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:443680 (433.2 KiB) TX bytes:378263 (369.3 KiB)
Interruption:10 Adresse de base:0xe000
lo Lien encap:Boucle locale
inet adr:127.0.0.1 Masque:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:204 errors:0 dropped:0 overruns:0 frame:0
TX packets:204 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:23402 (22.8 KiB) TX bytes:23402 (22.8 KiB)
xen-br0 Lien encap:Ethernet HWaddr 00:D0:70:02:0C:B3
inet adr:192.168.3.1 Bcast:192.168.3.255 Masque:255.255.255.255
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1164 errors:0 dropped:0 overruns:0 frame:0
TX packets:1315 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:320412 (312.9 KiB) TX bytes:353884 (345.5 KiB)
xen-br1 Lien encap:Ethernet HWaddr 00:E0:7D:8F:0A:AC
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 lg file transmission:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
amande:/home/jm# route -n
Table de routage IP du noyau
Destination Passerelle Genmask Indic Metric Ref Use
Iface
192.168.3.0 0.0.0.0 255.255.255.0 U 0 0 0
xen-br0
0.0.0.0 192.168.3.254 0.0.0.0 UG 0 0 0
xen-br0
amande:/home/jm#
===================================================
I start aurige computer
aurige:~# ifconfig
eth0 Link encap:Ethernet HWaddr AA:00:00:16:2A:0D
inet addr:192.168.4.18 Bcast:192.168.4.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 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:0 (0.0 b) TX bytes:8567 (8.3 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:140 errors:0 dropped:0 overruns:0 frame:0
TX packets:140 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:8777 (8.5 KiB) TX bytes:8777 (8.5 KiB)
aurige:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
192.168.4.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 192.168.4.254 0.0.0.0 UG 0 0 0 eth0 aurige:~# ping 192.168.4.5 PING 192.168.4.5 (192.168.4.5) 56(84) bytes of data. From 192.168.4.18 icmp_seq=1 Destination Host Unreachable From 192.168.4.18 icmp_seq=2 Destination Host Unreachable From 192.168.4.18 icmp_seq=3 Destination Host Unreachable ==================================================== _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |