added ipv6 sending
[rrq/rrqnet.git] / interfaces-template-1
1 # Virtual cable with uplink to example host at 10.0.0.1:2
2 # + creates a local tap named "example" with tunneling MTU (1450)
3 # + uses UDP port 3 for this cable end
4 # + reniced service daemon
5 # + single-v logging to /var/log/rrqnet-example.log
6 # + cable PSK /etc/rrqnet/keys/example.key (not included)
7 # + 10 packet buffers and a single dispatch thread
8 # + using dhcpclient locally for IPv4 assignment
9 # + static MAC address and IPv4 assignment
10 #
11 # This template includes an extension block for adding an ipv6 setup
12 # (with fictive addresses). Usage:
13 # ifup example=ipv6
14 # ifdown example=ipv6
15
16 auto example
17 iface example inet static
18     mtu 1450
19     hwaddress 02:00:00:00:00:02
20     address 192.168.0.2/24
21     broadcast 192.168.0.255
22     rrqnet_port 3
23     rrqnet_nice -3
24     rrqnet_log -v /var/log/rrqnet-example.log
25     rrqnet_remote 10.0.0.1:2=/etc/rrqnet/keys/example.key
26     rrqnet_options -B 10 -T 1
27
28 iface ipv6 inet static inherits example
29     up ip addr  add fe00:0:0:0:0:1:c0a8:0002/96 dev example
30     up ip route add ::/0 via fe00:0:0:0:0:1:0:1 dev example
31     down ip route del ::/0 via fe00:0:0:0:0:1:0:1 dev example