aboutsummaryrefslogtreecommitdiffstats
path: root/tools/examples/xen-network-common.sh
Commit message (Collapse)AuthorAgeFilesLines
* tools/hotplug: Separate OS-specific scripts.Keir Fraser2008-11-041-118/+0
| | | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Fix to Xen NAT network scripts for Debian.Keir Fraser2008-02-021-1/+1
| | | | | | | | | | | Xen recently (changeset 16873:86c32269ba60) started looking for a DHCP defaults file in /etc/sysconfig/dhcpd or /etc/defaults/dhcp. Debian (lenny) puts this file in a different place though: /etc/default/dhcp3-server. I added this location to Xen's search path. From: Michael Abd-El-Malek <mabdelmalek@cmu.edu> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* network-nat: Fix NAT scripts.Keir Fraser2008-01-241-0/+5
| | | | Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
* network scripts: SUSE has sensible use of ifup nowadaysKeir Fraser2008-01-171-16/+1
| | | | | | | | While wading through the patches made to Xen by OpenSUSE in their [s]rpm, I found that they have removed various special casing for ifup on ther distribution. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* [NET] Remove netloop from network bridge init scripts.kfraser@localhost.localdomain2007-06-041-13/+0
| | | | | | The scripts are partly based on work by Daniel P. Berrange. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
* [LINUX] ipv6: Disable addrconf on Xen bridge devicekfraser@localhost.localdomain2007-01-121-0/+5
| | | | | | | | | | | | | | | | | | | The ipv6-no-autoconf patch didn't disable IPv6 addrconf completely. This means that the Xen bridge device still interfered with normal IPv6 operation by engaging the IPv6 network with a bogus MAC address. For details please refer to https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=200360 The following patch completely disables IPv6 on the Xen bridge device by temporarily setting the MTU to a value less than the minimum allowed for IPv6. Upstream will provide a cleaner way to disable IPv6 addrconf in future, possibly in the form of a proc sysctl. Of course if the Xen loopback device is removed it would render this change unnecessary. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
* [TOOLS] Remove Gentoo-specific workaround in networkingkaf24@localhost.localdomain2006-08-281-28/+12
| | | | | | | | scripts -- apparently it is not needed (reported by Tuan Van <lang.thang@gmail.com>). See bugzilla issue #741 for more details. Signed-off-by: Keir Fraser <keir@xensource.com>
* Make add_to_bridge() always leave the device up even when it bails out due ↵Anil Madhavapeddy2006-08-221-0/+1
| | | | | | | | | to the device already being present on the bridge. This makes the script more idempotent if run twice (e.g. from hotplug and udev), since the second time the device will be taken down and not brought up again, leaving the host without networking. Signed-off-by: Anil Madhavapeddy <anil@xensource.com>
* [TOOLS] Clean up the network setup scripts. Create somekaf24@firebug.cl.cam.ac.uk2006-06-171-0/+45
| | | | | | setup functions and use them everywhere. Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
* 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>