Ubuntu Pastebin

Paste from dimitern at Thu, 11 Aug 2016 10:13:46 +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
76
77
78
79
80
81
82
83
84
85
86
87
oot@vmaas-20:~# cat /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback

# External interface (unmanaged; NAT-ed) - for external access
auto eth0
iface eth0 inet static
    address 10.10.20.2/24
    gateway 10.10.20.1

#iface eth0 inet6 manual
#    up ip -6 address add fc00:1020::2/64 dev eth0 || true
#    up ip -6 route replace default via fc00:1020::1 || true
#    down ip -6 route del default via fc00:1020::1 || true
#    down ip -6 address del fc00:1020::2 dev eth0 || true

# Internal interface (managed/PXE; isolated network) - used for nodes
auto eth1
iface eth1 inet static
    address 10.20.20.2/24
    pre-up iptables -t nat -A POSTROUTING -s 10.20.20.0/24 -o eth0 -j SNAT --to-source 10.10.20.2
    post-down iptables -t nat -D POSTROUTING -s 10.20.20.0/24 -o eth0 -j SNAT --to-source 10.10.20.2

#iface eth1 inet6 manual
#    up ip -6 address add fc00:2020::2/64 dev eth1 || true
#    down ip -6 address del fc00:2020::2 dev eth1 || true

# public-api VLAN 50
auto eth1.50
iface eth1.50 inet static
    address 10.50.20.2/24
    vlan-raw-device eth1

# internal-api VLAN 100
auto eth1.100
iface eth1.100 inet static
    address 10.100.20.2/24
    vlan-raw-device eth1

# admin-api VLAN 150
auto eth1.150
iface eth1.150 inet static
    address 10.150.20.2/24
    vlan-raw-device eth1

# storage-data VLAN 200
auto eth1.200
iface eth1.200 inet static
    address 10.200.20.2/24
    vlan-raw-device eth1

# compute-data VLAN 250
auto eth1.250
iface eth1.250 inet static
    address 10.250.20.2/24
    vlan-raw-device eth1

# compute-external VLAN 99
auto eth1.99
iface eth1.99 inet static
    address 10.99.20.2/24
    vlan-raw-device eth1

# storage-cluster VLAN 30
auto eth1.30
iface eth1.30 inet static
    address 10.30.20.2/24
    vlan-raw-device eth1

# demo-internal VLAN 11
auto eth1.11
iface eth1.11 inet static
    address 10.11.20.2/24
    vlan-raw-device eth1

# demo-admin VLAN 12
auto eth1.12
iface eth1.12 inet static
    address 10.12.20.2/24
    vlan-raw-device eth1

# demo-public VLAN 13
auto eth1.13
iface eth1.13 inet static
    address 10.13.20.2/24
    vlan-raw-device eth1
Download as text