Hello List, i would like to use eth2 and eth3 on my DomU Domains. Right now i can only get one interface working. I espect eth2 to become peth2 and eth3 to peth3. What must the config file look like? i tried: (network-script ''network-bridge netdev=eth2'') (network-script ''network-bridge netdev=eth3'') or (network-script ''network-bridge netdev=eth2, netdev=eth3'') or (network-script ''network-bridge netdev=eth2 netdev=eth3'') Is this correct so far? I set the ip adress via /etc/network/interfaces statically. Cheers, Mario _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thiago Camargo Martins Cordeiro
2009-Mar-03  18:05 UTC
Re: [Xen-users] Multiple bridged interfaces
Mario,
 First, put some address in your /etc/network/interfaces, like:
# The primary network interface
auto eth0
iface eth0 inet static
        address 192.168.1.1
        netmask 255.255.255.0
        gateway 192.168.1.254
auto eth1
iface eth1 inet static
        address 10.10.1.1
        netmask 255.255.255.252
auto eth2
iface eth2 inet static
        address 10.10.2.1
        netmask 255.255.255.252
 Make the file /etc/xen/scripts/network-bridge-wrapper with:
#!/bin/sh
/etc/xen/scripts/network-bridge $1 netdev=eth0
/etc/xen/scripts/network-bridge $1 netdev=eth1
/etc/xen/scripts/network-bridge $1 netdev=eth2
 Save it and "chmod +x /etc/xen/scripts/network-bridge-wrapper";
 And in /etc/xen/xend-config.sxp change the line:
(network-script network-bridge)
to:
(network-script network-bridge-wrapper)
 This will bring up 3 bridges, eth0, eth1 and eth2...
Good luck!
Thiago
2009/3/3 ml@bortal.de <ml@bortal.de>
> Hello List,
>
> i would like to use eth2 and eth3 on my DomU Domains. Right now i can only
> get one interface working.
> I espect eth2 to become peth2 and eth3 to peth3. What must the config file
> look like?
>
> i tried:
>
> (network-script ''network-bridge netdev=eth2'')
> (network-script ''network-bridge netdev=eth3'')
>
> or
>
> (network-script ''network-bridge netdev=eth2,
netdev=eth3'')
>
> or
>
> (network-script ''network-bridge netdev=eth2 netdev=eth3'')
>
> Is this correct so far? I set the ip adress via /etc/network/interfaces
> statically.
>
> Cheers,
> Mario
>
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@lists.xensource.com
> http://lists.xensource.com/xen-users
>
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users