more on current pull
Quoted 5 lines
When you run "xend start", you should see a bridge device being created (xen-br0), and the IP address and routes that previously were set up for eth0 being transferred to xen-br0. Doing the transfer is necessary because of an oddity in the Linux bridge code.
How can I stop this behaviour? I set up my own bridges in /etc/network/interfaces eg:
auto br0
iface br0 inet static
address 192.168.200.210
netmask 255.255.255.0
gateway 192.168.200.203
bridge_ports eth0
up sleep 10 && ifconfig eth0 promisc
(that last line is because of a bug in the tlan network driver re:
promisc mode - I've sent a patch to the lkml but it's so far just been ignored).
And i'd much rather xend not create the bridge for me. Imho, it is not xend's place to create the bridge, just to add vif's to bridges, and it would muck up firewall rules that rely on interface specifications if on boot the interface is eth0 then later on xen-br0.
Other things that might break on changing interfaces midstream are:
DHCP
samba
static routes
I understand that xend doing this means that it 'just works' for anyone trying out xen with a reasonably standard config, but it's just a pain for me.
Any ideas?
thanks
James
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
Quoted 6 lines
Quoted 5 lines
When you run "xend start", you should see a bridge device being created (xen-br0), and the IP address and routes that previously were set up for eth0 being transferred to xen-br0. Doing the transfer is necessary because of an oddity in the Linux bridge code.
Quoted 7 lines
How can I stop this behaviour? I set up my own bridges in
/etc/network/interfaceseg:And i'd much rather xend not create the bridge for me. Imho, it is not xend's place to create the bridge, just to add vif's to bridges, and it would muck up firewall rules that rely on interface specifications if on boot the interface is eth0 then later on xen-br0.
Yep, if you've got a complicated setup you certainly don't want xend messing with it.
If you've already got everything setup how you want before xend starts, then just edit /etc/xen/xend-config.sxp to set:
(network-script /bin/true)
Thus, it won't execute /etc/xen/network at all.
You might find some of the stuff in /etc/xen/network useful, in which case rename it and edit it to suit.
/etc/xen/network is just there to help out the majority of people who have one physical interface and a single bridge and want things working straight out of the box.
Best,
Ian
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
Take a look at /etc/xen/{vifctl,vif-bridge,network} - comments in them describe what they do.
Also take a look in /etc/xen/xend-config.sxp (also commented). You could write some new scripts, based on the old ones and point xend-config.sxp to them. This will allow you to get xend to add vifs to your custom bridges.
The move to shell scripts for this is a fairly recent addition to make it easier to accomodate advanced setups.
Cheers,
Mark
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com