/usr/share/doc/ifupdown-scripts-zg2/examples/interfaces-example is in ifupdown-scripts-zg2 0.6-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | # example /e/n/i file demonstrating some features of
# ifupdown-scripts-zg2
# if you find that your scenario is worth documenting here, please file
# a wishlist bug against the Debian BTS
auto lo
iface lo inet loopback
# establish unreachable routes for site local and link local
# networks
route_silo_1_unreach ip route unreachable 192.168.0.0/16
route_silo_2_unreach ip route unreachable 172.16.0.0/12
route_silo_3_unreach ip route unreachable 10.0.0.0/8
route_lilo_unreach ip route unreachable 169.254.0.0/16
# a plain interface with an IP address
iface dotqc inet manual
address 10.2.101.62/27
mac 08:00:27:c4:cd:04
device dotqc
# a tagged VLAN on interface dotqc
iface up0 inet manual
address 192.168.83.225/29
vlan_id 302
encapsulation dot1q
mac 08:00:27:c4:cd:04
device unt302
route_default default 192.168.83.230 to_isp
# add rules on interface up, delete rules on interface down
scrup_fwmark_to_isp 's/add /del /' ip rule add pref 32 fwmark 302 table to_isp
scrup_table_defroute 's/add /del /' ip rule add pref 32000 table defaultroute
scrup_table_main 's/add /del /' ip rule add pref 10 table main
# another plain interface with an IP address
auto dotqb
iface dotqb inet manual
address 10.2.100.62/27
mac 08:00:27:72:48:03
device dotqb
# an internal network on a tagged VLAN
auto f808d
iface f808d inet manual
address 192.168.248.14/29
vlan_id 201
encapsulation dot1q
mac 08:00:27:72:48:03
device per201
# a static route
route_cisco_ipsec 10.2.70.0/25 192.168.248.10
|