Debian Codegraph @

examples/interfaces

raw
1 #
2 # IPIP tunnel & ampr-ripd startup example via /etc/network/interfaces
3 #
4 #
5 # - Tunnel interface is named 'ampr0'
6 # - Local WAN IP is 192.168.0.2 on eth1
7 # - AMPR routing table used is table 'default'
8 # - gateway IP is 44.128.0.1
9 #
10
11 auto ampr0
12 iface ampr0 inet static
13 address 44.128.0.1
14 netmask 255.255.255.255
15 metric 100
16 pre-up ip tun add ampr0 mode ipip ttl 64 local 192.168.0.2 dev eth1
17 up ip route add default via 169.228.34.84 dev ampr0 onlink table default
18 up ip rule add from 44.128.0.1 table default
19 up ampr-ripd -s -t default -i ampr0 -m 90 -a 44.128.0.0/24
20 up ping -c 1 -I ampr0 44.0.0.1 > /dev/null 2>&1
21 pre-down ip route del default via 169.228.34.84 dev ampr0 onlink table default
22 post-down killall ampr-ripd
23 post-down ip rule del from 44.128.0.1 table default
24 post-down ip tunnel del ampr0
25 post-down rmmod ipip