summaryrefslogtreecommitdiff
path: root/cdr1.sunet.se/overlay/etc/network/interfaces
blob: edcc8fdf4dfc7d8d62a4606c2da9a6c1ad433642 (plain)
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
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
#
# ###################################################
# # This file is maintained in
# #
# #    ####    ####    ####   #    #   ####    ####
# #   #    #  #    #  #       ##  ##  #    #  #
# #   #       #    #   ####   # ## #  #    #   ####
# #   #       #    #       #  #    #  #    #       #
# #   #    #  #    #  #    #  #    #  #    #  #    #
# #    ####    ####    ####   #    #   ####    ####
# #
# # ... so you can't just change it locally.
# #
# ###################################################

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

auto em1
iface em1 inet manual
      bond-master bond0
      bond-primary em1

auto em2
iface em2 inet manual
      bond-master bond0

# bond0 is the bonding NIC and can be used like any other normal NIC.
auto bond0
iface bond0 inet manual
      bond-mode active-backup
      bond-miimon 100
      bond-slaves none

# Bridge interface for KVM guests
auto br0
iface br0 inet static
      pre-up sleep 4  # must make br0 start _after_ bond0 is configured
      bridge_ports bond0
      bridge_stp off
      bridge_fd 0
      bridge_maxwait 0
      #
      address 130.242.125.70
      netmask 255.255.255.192
      network 130.242.125.64
      broadcast 130.242.125.127
      gateway 130.242.125.65
      # dns-* options are implemented by the resolvconf package, if installed
      dns-nameservers 130.242.80.14 130.242.80.99
      dns-search sunet.se

iface br0 inet6 static
      pre-up sleep 4  # must make br0 start _after_ bond0 is configured
      address 2001:6b0:8:4::70
      netmask 64
      gateway 2001:6b0:8:4::1