aboutsummaryrefslogtreecommitdiffstats
path: root/tools/examples/xen-network-common.sh
Commit message (Collapse)AuthorAgeFilesLines
* Made network-bridge script work on ALL systems missing ifup/down.emellor@leeni.uk.xensource.com2006-01-101-4/+13
| | | | | | | | | | | | | | This is done by defining ifup/down both to 'false' when they're missing; then instead of attempting to parse the IP params from the kernel command line, we get them from 'ip' instead. So this works even with (for example) ip=dhcp on the kernel command line. Also made a few minor syntax changes (in particular, replaced "==" with "=", and ">&foo" with ">foo 2>foo") so this works with more limited shells. Signed-off-by: Ben Thomas <bjthomas3@gmail.com>
* Added /etc/init.d/dhcpd to list of init files to check for (supporting Centosemellor@leeni.uk.xensource.com2005-12-021-1/+1
| | | | | | | 4.2). Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Support facilities for the new DHCP support.emellor@leeni.uk.xensource.com2005-11-291-0/+26
| | | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Moved SuSE-specific getcfg call into a preiftransfer call. The semantics ofemellor@leeni.uk.xensource.com2005-10-251-2/+36
| | | | | | | | | this aren't beautiful, but this gets the distro-specific code out of the body of the network-bridge script and into a common place, while still preserving the existing code behaviour. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Break common network code in xen-network-common.sh, and common vif hotpluggingemellor@leeni.uk.xensource.com2005-10-211-0/+37
code into vif-common.sh. Fix the antispoofing in network-bridge to allow forwarding from physical device to bridge, and vif0.0 to eth0. Change the interface between netback driver and vif hotplugging scripts. The mac address and bridge details are read from the store directly by the script, so that the kernel driver does not need to get involved. Remove an awful lot of cruft from vif-bridge. Move the iptables handling into vif-common.sh, and fix it so that the new vif can get past the antispoofing entries. Merge vif-nat and vif-route into this structure too. Use ip instead of ifconfig to get necessary details. Signed-off-by: Ewan Mellor <ewan@xensource.com>