All of lore.kernel.org
 help / color / mirror / Atom feed
* Must have been asked before, but I can't find the solution
@ 2005-01-19 21:11 B.G. Bruce
  0 siblings, 0 replies; 9+ messages in thread
From: B.G. Bruce @ 2005-01-19 21:11 UTC (permalink / raw)
  To: xen-devel

I'm attempting to migrate from vmware to xen, however I need to be able
to run more than one bridge.  Think of it this way:
			xen0	xenU-1		xenU-2		xenU-3
------------------------------------------------------------------------	
Inside_bridge_1:	eth0 	vm1_eth0	vm2_eth0
virtual_switch_2:		vm1_eth1	vm2_eth1	vm3_eth1
Outside_bridge_3:	eth1 			vm2_eth2	vm3_eth0

Now, I can modify the existing network/vif-bridge or build replacement
scripts/config files that will get this done, with the exception of the
MAC.  If you configure (xen-2.0.3-src.tar.bz2) a domain for more than 1
nic, the xenU domains use the same MAC for all interfaces. EX.

devel root # ip link
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether aa:00:00:0d:d0:26 brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop qlen 1000
    link/ether aa:00:00:0d:d0:26 brd ff:ff:ff:ff:ff:ff
4: eth2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop qlen 1000
    link/ether aa:00:00:0d:d0:26 brd ff:ff:ff:ff:ff:ff
5: eth3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop qlen 1000
    link/ether aa:00:00:0d:d0:26 brd ff:ff:ff:ff:ff:ff


How/where do I change this? (not in the config file as far as I can
tell)

Thanks,
B. 


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: Must have been asked before, but I can't find the solution
@ 2005-01-19 21:21 Ian Pratt
  2005-01-19 21:32 ` B.G. Bruce
  2005-01-19 21:52 ` Felipe Alfaro Solana
  0 siblings, 2 replies; 9+ messages in thread
From: Ian Pratt @ 2005-01-19 21:21 UTC (permalink / raw)
  To: bgb, xen-devel


> I'm attempting to migrate from vmware to xen, however I need 
> to be able
> to run more than one bridge.  

Should be no problem.

> Now, I can modify the existing network/vif-bridge or build replacement
> scripts/config files that will get this done, with the 
> exception of the
> MAC.  If you configure (xen-2.0.3-src.tar.bz2) a domain for 
> more than 1
> nic, the xenU domains use the same MAC for all interfaces. EX.

OK, we need to add the vif number into the MAC generation hash. Anyone
care to submit a patch?

> How/where do I change this? (not in the config file as far as I can
> tell)

I believe you can set the MAC for each vif.

Ian


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: Must have been asked before, but I can't find the solution
  2005-01-19 21:21 Ian Pratt
@ 2005-01-19 21:32 ` B.G. Bruce
  2005-01-19 21:51   ` Kip Macy
  2005-01-19 21:52 ` Felipe Alfaro Solana
  1 sibling, 1 reply; 9+ messages in thread
From: B.G. Bruce @ 2005-01-19 21:32 UTC (permalink / raw)
  To: Ian Pratt; +Cc: xen-devel

On Wed, 2005-01-19 at 17:21, Ian Pratt wrote:
> > I'm attempting to migrate from vmware to xen, however I need 
> > to be able
> > to run more than one bridge.  
> 
> Should be no problem.
> 
> > Now, I can modify the existing network/vif-bridge or build replacement
> > scripts/config files that will get this done, with the 
> > exception of the
> > MAC.  If you configure (xen-2.0.3-src.tar.bz2) a domain for 
> > more than 1
> > nic, the xenU domains use the same MAC for all interfaces. EX.
> 
> OK, we need to add the vif number into the MAC generation hash. Anyone
> care to submit a patch?
> 
> > How/where do I change this? (not in the config file as far as I can
> > tell)
> 
> I believe you can set the MAC for each vif.

WHERE?  I must be missing something but for the life of me, I have not
been able to set this for anything other than eth0.  If it CAN be done
in the config file, please give an example.

Thanks,

B.

> 
> Ian
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
> Tool for open source databases. Create drag-&-drop reports. Save time
> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xen-devel
> 


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: Must have been asked before, but I can't find the solution
  2005-01-19 21:32 ` B.G. Bruce
@ 2005-01-19 21:51   ` Kip Macy
  0 siblings, 0 replies; 9+ messages in thread
From: Kip Macy @ 2005-01-19 21:51 UTC (permalink / raw)
  To: B.G. Bruce; +Cc: Ian Pratt, xen-devel

>
> WHERE?  I must be missing something but for the life of me, I have not
> been able to set this for anything other than eth0.  If it CAN be done
> in the config file, please give an example.

and the voodoo is ...

vif = [ mac=aa:1:0:0:3:37,bridge=xen-br0 ]

let me know if you want the complete context that this comes from


			-Kip


>
> Thanks,
>
> B.
>
> >
> > Ian
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
> > Tool for open source databases. Create drag-&-drop reports. Save time
> > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> > Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/xen-devel
> >
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
> Tool for open source databases. Create drag-&-drop reports. Save time
> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xen-devel
>


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Must have been asked before, but I can't find the solution
  2005-01-19 21:21 Ian Pratt
  2005-01-19 21:32 ` B.G. Bruce
@ 2005-01-19 21:52 ` Felipe Alfaro Solana
  2005-01-19 22:08   ` B.G. Bruce
  1 sibling, 1 reply; 9+ messages in thread
From: Felipe Alfaro Solana @ 2005-01-19 21:52 UTC (permalink / raw)
  To: Ian Pratt; +Cc: bgb, xen-devel

On 19 Jan 2005, at 22:21, Ian Pratt wrote:

>
>> I'm attempting to migrate from vmware to xen, however I need
>> to be able
>> to run more than one bridge.
>
> Should be no problem.
>
>> Now, I can modify the existing network/vif-bridge or build replacement
>> scripts/config files that will get this done, with the
>> exception of the
>> MAC.  If you configure (xen-2.0.3-src.tar.bz2) a domain for
>> more than 1
>> nic, the xenU domains use the same MAC for all interfaces. EX.
>
> OK, we need to add the vif number into the MAC generation hash. Anyone
> care to submit a patch?
>
>> How/where do I change this? (not in the config file as far as I can
>> tell)
>
> I believe you can set the MAC for each vif.

Yep! By adding

vif = [ "mac = XX:XX:XX:XX:XX:XX" ]

to the domain configuration file.



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Must have been asked before, but I can't find the solution
  2005-01-19 21:52 ` Felipe Alfaro Solana
@ 2005-01-19 22:08   ` B.G. Bruce
  2005-01-19 22:13     ` Kip Macy
  2005-01-20 13:01     ` Mark Williamson
  0 siblings, 2 replies; 9+ messages in thread
From: B.G. Bruce @ 2005-01-19 22:08 UTC (permalink / raw)
  To: Felipe Alfaro Solana; +Cc: Ian Pratt, xen-devel

On Wed, 2005-01-19 at 17:52, Felipe Alfaro Solana wrote:
> On 19 Jan 2005, at 22:21, Ian Pratt wrote:
> 
> >
> >> I'm attempting to migrate from vmware to xen, however I need
> >> to be able
> >> to run more than one bridge.
> >
> > Should be no problem.
> >
> >> Now, I can modify the existing network/vif-bridge or build replacement
> >> scripts/config files that will get this done, with the
> >> exception of the
> >> MAC.  If you configure (xen-2.0.3-src.tar.bz2) a domain for
> >> more than 1
> >> nic, the xenU domains use the same MAC for all interfaces. EX.
> >
> > OK, we need to add the vif number into the MAC generation hash. Anyone
> > care to submit a patch?
> >
> >> How/where do I change this? (not in the config file as far as I can
> >> tell)
> >
> > I believe you can set the MAC for each vif.
> 
> Yep! By adding
> 
> vif = [ "mac = XX:XX:XX:XX:XX:XX" ]
> 
> to the domain configuration file.
> 

Ok, yes, that works for eth0, but what about eth1,eth2,eth3,.... what
voodoo do I use for multiple vif?

B.

> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
> Tool for open source databases. Create drag-&-drop reports. Save time
> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xen-devel
> 


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Must have been asked before, but I can't find the solution
  2005-01-19 22:08   ` B.G. Bruce
@ 2005-01-19 22:13     ` Kip Macy
  2005-01-20 13:01     ` Mark Williamson
  1 sibling, 0 replies; 9+ messages in thread
From: Kip Macy @ 2005-01-19 22:13 UTC (permalink / raw)
  To: B.G. Bruce; +Cc: Felipe Alfaro Solana, Ian Pratt, xen-devel

bootscript "xenargs":
 more ~mowat/xen/xenargs
BSD_KERNEL=/u/mowat/p4/tricks/freebsd/usr/src/sys/i386/compile/XENCONF/kernel
CONFIG=/u/mowat/xen/freebsd
BOOTARGS="boot_verbose=yes, boot_gdb=yes"

# Other BSD bootargs
#
# boot_single=yes
# boot_gdb_pause=yes

# curly IP addresses
# SIM_NAME=xen-vm1
# IPADDR="172.16.9.213 172.16.9.214"
# DISKS=loop5
#
# Don't need to specify number of NICS if we specify the list of MACs
# NICS=2

# mowat1/mowat2 sim IPs
SIM_NAME=mowat1
IPADDR="10.56.18.123 10.56.18.125"
MACS="aa:1:0:0:3:37 aa:1:0:0:3:38"
DISKS="loop0 loop1 loop2 loop3 loop4 loop5 loop6 loop7"

xm create -f $CONFIG -c name=$SIM_NAME ipstr="$IPADDR" macstr="$MACS"
diskstr="$DI
SKS" bsdbootargs="$BOOTARGS" kernel=$BSD_KERNEL





excerpt from /u/mowat/xen/freebsd:

i = 0
vlist = string.split(macstr,' ')
for vintf in vlist:
    if vintf == "":
        break
    if i == 0:
        vif = [ "mac="+vintf+",bridge=xen-br0" ]
    else:
        vif += [ "mac="+vintf+",bridge=xen-br0" ]
    i = i + 1

try:
    nics
except:
    if i > 1:
        nics = i




On Wed, 19 Jan 2005, B.G. Bruce wrote:

> On Wed, 2005-01-19 at 17:52, Felipe Alfaro Solana wrote:
> > On 19 Jan 2005, at 22:21, Ian Pratt wrote:
> >
> > >
> > >> I'm attempting to migrate from vmware to xen, however I need
> > >> to be able
> > >> to run more than one bridge.
> > >
> > > Should be no problem.
> > >
> > >> Now, I can modify the existing network/vif-bridge or build replacement
> > >> scripts/config files that will get this done, with the
> > >> exception of the
> > >> MAC.  If you configure (xen-2.0.3-src.tar.bz2) a domain for
> > >> more than 1
> > >> nic, the xenU domains use the same MAC for all interfaces. EX.
> > >
> > > OK, we need to add the vif number into the MAC generation hash. Anyone
> > > care to submit a patch?
> > >
> > >> How/where do I change this? (not in the config file as far as I can
> > >> tell)
> > >
> > > I believe you can set the MAC for each vif.
> >
> > Yep! By adding
> >
> > vif = [ "mac = XX:XX:XX:XX:XX:XX" ]
> >
> > to the domain configuration file.
> >
>
> Ok, yes, that works for eth0, but what about eth1,eth2,eth3,.... what
> voodoo do I use for multiple vif?
>
> B.
>
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
> > Tool for open source databases. Create drag-&-drop reports. Save time
> > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> > Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/xen-devel
> >
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
> Tool for open source databases. Create drag-&-drop reports. Save time
> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xen-devel
>


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Must have been asked before, but I can't find the solution
  2005-01-19 22:08   ` B.G. Bruce
  2005-01-19 22:13     ` Kip Macy
@ 2005-01-20 13:01     ` Mark Williamson
  2005-01-20 15:30       ` B.G. Bruce
  1 sibling, 1 reply; 9+ messages in thread
From: Mark Williamson @ 2005-01-20 13:01 UTC (permalink / raw)
  To: xen-devel, bgb; +Cc: Felipe Alfaro Solana, Ian Pratt

> Ok, yes, that works for eth0, but what about eth1,eth2,eth3,.... what
> voodoo do I use for multiple vif?

Square brackets mean it's a list (config files are really Python scripts that 
get run in a sandbox, so this is in fact just a Python list!):

vif = [ "mac = XX:XX:XX:XX:XX:XX", "mac = XX:XX:XX:XX:XX:XX" ]

Should give you the functionality you want.

HTH,
Mark

>
> B.
>
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
> > Tool for open source databases. Create drag-&-drop reports. Save time
> > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> > Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/xen-devel
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
> Tool for open source databases. Create drag-&-drop reports. Save time
> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xen-devel


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Must have been asked before, but I can't find the solution
  2005-01-20 13:01     ` Mark Williamson
@ 2005-01-20 15:30       ` B.G. Bruce
  0 siblings, 0 replies; 9+ messages in thread
From: B.G. Bruce @ 2005-01-20 15:30 UTC (permalink / raw)
  To: Mark Williamson; +Cc: xen-devel, Felipe Alfaro Solana, Ian Pratt

THANK YOU!!! 

vif = [ "mac=aa:00:00:00:00:11, bridge=priv", "mac=aa:00:00:00:00:12,
bridge=pub", "mac=aa:00:00:00:00:13, bridge=mgmt",
"mac=aa:00:00:00:00:14, bridge=vsw0" ]


returns:

devel root # ip link
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether aa:00:00:00:00:11 brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop qlen 1000
    link/ether aa:00:00:00:00:12 brd ff:ff:ff:ff:ff:ff
4: eth2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop qlen 1000
    link/ether aa:00:00:00:00:13 brd ff:ff:ff:ff:ff:ff
5: eth3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop qlen 1000
    link/ether aa:00:00:00:00:14 brd ff:ff:ff:ff:ff:ff



On Thu, 2005-01-20 at 09:01, Mark Williamson wrote:
> > Ok, yes, that works for eth0, but what about eth1,eth2,eth3,.... what
> > voodoo do I use for multiple vif?
> 
> Square brackets mean it's a list (config files are really Python scripts that 
> get run in a sandbox, so this is in fact just a Python list!):
> 
> vif = [ "mac = XX:XX:XX:XX:XX:XX", "mac = XX:XX:XX:XX:XX:XX" ]
> 
> Should give you the functionality you want.
> 
> HTH,
> Mark
> 
> >
> > B.
> >
> > > -------------------------------------------------------
> > > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
> > > Tool for open source databases. Create drag-&-drop reports. Save time
> > > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> > > Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> > > _______________________________________________
> > > Xen-devel mailing list
> > > Xen-devel@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/xen-devel
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
> > Tool for open source databases. Create drag-&-drop reports. Save time
> > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> > Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/xen-devel
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
> Tool for open source databases. Create drag-&-drop reports. Save time
> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xen-devel
> 


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-01-20 15:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-19 21:11 Must have been asked before, but I can't find the solution B.G. Bruce
  -- strict thread matches above, loose matches on Subject: below --
2005-01-19 21:21 Ian Pratt
2005-01-19 21:32 ` B.G. Bruce
2005-01-19 21:51   ` Kip Macy
2005-01-19 21:52 ` Felipe Alfaro Solana
2005-01-19 22:08   ` B.G. Bruce
2005-01-19 22:13     ` Kip Macy
2005-01-20 13:01     ` Mark Williamson
2005-01-20 15:30       ` B.G. Bruce

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.