Ubuntu Pastebin

Paste from Andrew McDermott at Wed, 14 Oct 2015 16:10:13 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
Cloud-init v. 0.7.5 running 'modules:final' at Wed, 14 Oct 2015 16:04:48 +0000. Up 140.01 seconds.
+ mkdir -p /var/lib/juju
+ cat
+ chmod 0755 /var/lib/juju/MAASmachine.txt
+ grep -q iface juju-br0 inet dhcp /etc/network/interfaces
+ cut -b5-
+ egrep -o dev [^ ]+
+ ip route list exact 0/0
+ PRIMARY_IFACE=eth0
+ [ -z eth0 ]
+ echo Contents of /etc/network/interfaces before changes
Contents of /etc/network/interfaces before changes
+ cat /etc/network/interfaces
auto eth0
iface eth0 inet static
    gateway 10.17.20.1
    address 10.17.20.201/24

auto eth0:1
iface eth0:1 inet static
    address 10.17.20.202/24

auto eth0:2
iface eth0:2 inet static
    address 10.17.20.203/24

dns-nameserver 10.17.20.200
+ isDHCP
+ grep -q iface eth0 inet dhcp /etc/network/interfaces
+ return 1
+ isStatic
+ grep -q iface eth0 inet static /etc/network/interfaces
+ return 0
+ sed -i s/iface eth0 inet static/iface juju-br0 inet static\n    bridge_ports eth0/ /etc/network/interfaces
+ sed -i s/auto eth0\s*$/auto juju-br0/ /etc/network/interfaces
+ cat
+ echo Contents of /etc/network/interfaces after changes
Contents of /etc/network/interfaces after changes
+ cat /etc/network/interfaces
auto juju-br0
iface juju-br0 inet static
    bridge_ports eth0
    gateway 10.17.20.1
    address 10.17.20.201/24

auto eth0:1
iface eth0:1 inet static
    address 10.17.20.202/24

auto eth0:2
iface eth0:2 inet static
    address 10.17.20.203/24

dns-nameserver 10.17.20.200

# Primary interface (defining the default route)
iface eth0 inet manual
+ ifdown -v eth0
Configuring interface eth0=eth0 (inet)
run-parts --verbose /etc/network/if-down.d
run-parts: executing /etc/network/if-down.d/resolvconf
run-parts: executing /etc/network/if-down.d/upstart
ip link set dev eth0 down
run-parts --verbose /etc/network/if-post-down.d
run-parts: executing /etc/network/if-post-down.d/bridge
+ ifup -v juju-br0
Configuring interface juju-br0=juju-br0 (inet)
run-parts --verbose /etc/network/if-pre-up.d
run-parts: executing /etc/network/if-pre-up.d/bridge

Waiting for juju-br0 to get ready (MAXWAIT is 32 seconds).
run-parts: executing /etc/network/if-pre-up.d/ethtool
ip addr add 10.17.20.201/255.255.255.0 broadcast 10.17.20.255     dev juju-br0 label juju-br0
ip link set dev juju-br0   up
 ip route add default via 10.17.20.1  dev juju-br0 
Download as text