~ubuntu-xen-org/xcp/master

« back to all changes in this revision

Viewing changes to kronos-test/fix_networking.sh

  • Committer: Jon Ludlam
  • Date: 2012-02-07 15:26:29 UTC
  • Revision ID: git-v1:86ca040e1dd88b3b102c02635b08b10626ec9e37
More fix_networking fixups

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/bash
2
2
 
3
3
pif=`xe pif-list device=eth0 --minimal`
 
4
killall dhclient
 
5
xe pif-reconfigure-ip uuid=$pif mode=dhcp
 
6
cat > /etc/network/interfaces << EOF
 
7
# This file describes the network interfaces available on your system
 
8
# and how to activate them. For more information, see interfaces(5).
 
9
 
 
10
# The loopback network interface
 
11
auto lo
 
12
iface lo inet loopback
 
13
EOF
4
14
ifconfig eth0 0.0.0.0
5
 
xe pif-reconfigure-ip uuid=$pif mode=dhcp
6
15