WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] 2 nics on Dom0

To: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-users] 2 nics on Dom0
From: ko0nz <yesiko0nz@xxxxxxxxx>
Date: Wed, 7 Nov 2007 12:55:17 +0100
Delivery-date: Wed, 07 Nov 2007 03:56:08 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; bh=aE8KqOoXtg7lvcgH34OjszZeAIQ5dyC+iCbXt7n2FN8=; b=hg8cljrIk393tVa7xNBnjVek+6HHIAC+EATZRuhdV+xoQ1ZNGgTtbD3X9hGh5HCFLMk5O3uYfYlkyp5HmMyC5BfDEqz/sokdXnncI11MM6EQM0miMGJIf8UOjjo9ziPmUH0Ytlg1tENWv+tCo2fzH7e4nlXRA4d0A4YFZOIFvDk=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=sEJ0z1gd+zFw3pYs6CjlwcgoXCS99IVG8OB5o4hxC+EBVoTyRyyYa880xM6TM5OngodDj3qEOmj/FN38BNOzZOYChgGqF2FntdQlK6nfRtwYB1EBBP6uAsywZsdIWgpnazF3yKt9TlsreQx9+JolMwf4fBIp3Us2vzBgqGuMX/w=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
hi,

i was in mistake with my config...

so now, i 've got 2 nics:
eth0 192.168.1.10 gw 192.168.1.1
eth1 192.168.2.20 gw 192.168.2.1

 ---Router(VLAN)----
l                         l
l                         l
eth0---Dom0-----eth1
l                         l
l         Dom1-----eth0
l
l------eth0--Dom2
l
l------eth0--Dom3

===========================
# cat /etc/network/interfaces

auto lo
iface lo inet loopback

auto xenbr0
iface xenbr0 inet static
 address 192.168.1.10
 netmask 255.255.255.0
 network 192.168.1.0
 broadcast 192.168.1.255
 gateway 192.168.1.1
 bridge_ports eth0
 # optional
 bridge_maxwait 0

auto xenbr0
iface xenbr0 inet static
 address 192.168.2.20
 netmask 255.255.255.0
 network 192.168.2.0
 broadcast 192.168.2.255
 gateway 192.168.2.1
 bridge_ports eth0
 # optional
 bridge_maxwait 0
=============================
# cat /etc/xen/xend-config.sxp

(xend-relocation-hosts-allow '^localhost$ ^localhost\\.localdomain$')
(network-script network-bridge)
(vif-script vif-bridge)
(dom0-min-mem 196)
(dom0-cpus 0)
(vncpasswd '')
===============================
# ifconfig

eth0      Link encap:Ethernet  HWaddr 00:0F:FE:6D:F4:E5
          inet6 addr: fe80::20f:feff:fe6d:f4e5/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:55205 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3464 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:11382549 (10.8 MiB)  TX bytes:725505 (708.5 KiB)
          Base address:0x2100 Memory:f0500000-f0520000

eth1      Link encap:Ethernet  HWaddr 00:13:F7:0B:A9:5C
          inet6 addr: fe80::213:f7ff:fe0b:a95c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:135269 errors:0 dropped:0 overruns:0 frame:0
          TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:39981510 (38.1 MiB)  TX bytes:1588 (1.5 KiB)
          Interrupt:19 Base address:0xa000

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:21 errors:0 dropped:0 overruns:0 frame:0
          TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2376 (2.3 KiB)  TX bytes:2376 (2.3 KiB)

vif8.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
          RX packets:10 errors:0 dropped:0 overruns:0 frame:0
          TX packets:28659 errors:0 dropped:1 overruns:0 carrier:0
          collisions:0 txqueuelen:32
          RX bytes:496 (496.0 b)  TX bytes:6112602 (5.8 MiB)

xenbr0    Link encap:Ethernet  HWaddr 00:0F:FE:6D:F4:E5
          inet addr:192.168.1.10  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20f:feff:fe6d:f4e5/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:30636 errors:0 dropped:0 overruns:0 frame:0
          TX packets:717 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:6003035 (5.7 MiB)  TX bytes:135514 (132.3 KiB)

xenbr1    Link encap:Ethernet  HWaddr 00:13:F7:0B:A9:5C
          inet addr:192.168.2.20  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::213:f7ff:fe0b:a95c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:82384 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:22305870 (21.2 MiB)  TX bytes:720 (720.0 b)
=============================================
# brctl show

bridge name     bridge id               STP enabled     interfaces
xenbr0          8000.000ffe6df4e5       no              eth0
                                                vif8.0
xenbr1          8000.0013f70ba95c       no              eth1
============================================

i can ping my 2 nics on Dom0: 192.168.1.10 and 192.168.2.20

on my Dom1, i put

# grep vif /etc/xen/test0.cfg
vif  = [ 'ip=192.168.2.200,bridge=xenbr1' ]

#cat /etc/network/interfaces

auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
 address 192.168.2.200
 netmask 255.255.255.0
 network 192.168.2.0
 broadcast 192.168.2.255
 gateway 192.168.2.1
---------

but on my Dom1, i can't ping anything with the subnet 192.168.2.x

if i define my DomU with the subnet 192.168.1.x (like the eth0
interface of Dom0), i can ping anything.

so how could i configure my Dom1 to use the eth1 interfaceof Dom0 to
go outside (192.168.2.x with gateway 192.168.2.1) instead of  the
gaetway192.168.1.1 ?

thank you in adavance for your help.

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] 2 nics on Dom0, ko0nz <=