Rename clear-proxy-ndp to fix-net
[snf-network] / interfaces
1 ###############
2 # GRNET SETUP #
3 ###############
4 # IP-less routing / proxy arp interfaces examples:
5 # This vlan is used for internet connection of the VMs
6 # The gateway is a router that connects all nodes VLANs
7 # snf_public should be an existing routing table (in /etc/iproute/rt_tables)
8 # The values of ip-routes and ip-gateway must be the same
9 # decrared in ganeti network related to this routing table.
10 # gnt-network add --network=62.217.123.128/27 --gateway=62.217.123.129 
11 #                 --network6=2001:648:2ffc:1201::/64 --gateway6=2001:648:2ffc:1201::1
12 #                 --network-type=public --tags=nfdhcpd,ip-less-routed snf-net-1
13 # gnt-network connect snf-net-1 all routed snf_public
14
15 auto eth0.201
16 iface eth0.201 inet manual
17   ip-routing-table snf_public
18   ip-routes 62.217.123.128/27
19   ip-gateway 62.217.123.129
20   ip-forwarding 1
21   ip-proxy-arp 1
22   arp-ip 62.217.123.158
23
24 iface eth0.201 inet6 manual
25   ip-routing-table snf_public
26   ip-routes 2001:648:2ffc:1201::/64
27   ip-gateway 2001:648:2ffc:1201::1
28   ip-forwarding 1
29   ip-proxy-ndp 1
30
31 # A bridge pool to connect tap devices of private networks
32 # A private network uses explicitly one vlan
33 # prv1            8000.e4115bb2925c       no              eth0.2991
34 # prv2            8000.e4115bb2925c       no              eth0.2992
35 # prv3            8000.e4115bb2925c       no              eth0.2993
36 # prv4            8000.e4115bb2925c       no              eth0.2994
37 # prv5            8000.e4115bb2925c       no              eth0.2995
38 auto prv
39 iface prv inet manual
40     up   prv-net-helper up   eth0 1 5 2990 prv
41     down prv-net-helper down eth0 1 5 2990 prv
42
43 # A bridge to connect tap devices of private networks
44 # All private networks use this bridge
45 # Isolation is provided with ebtables and MAC filtering
46 # prv0            8000.e4115bb2925c       no              eth0.2990
47 auto prv0
48 iface prv0 inet manual
49   bridge_ports eth0.2990
50   bridge_stp off
51   bridge_fd 2
52   post-up ip link set prv0 address e4:11:5b:b2:92:5c 
53
54
55 #################
56 # GENERIC SETUP #
57 #################
58 # All taps bridged on this bridged
59 # eth0 is the node's primary interface
60 # 62.217.123.132/27 is the node's primary address
61 # 62.217.123.129 is the node's primary Gateway
62 # aa:00:00:32:50:51 is the node's primary MAC address
63 auto br0
64 iface br0 inet manual
65   bridge_ports eth0
66   bridge_stp off
67   bridge_fd 2
68   up for ip in 62.217.123.132/27; do ip addr add $ip dev br0; done 
69   up ip route add default via 62.217.123.129 dev br0
70   post-up ip link set br0 address aa:00:00:32:50:51 
71
72