Re: (hopefully perl) API to /etc/network/interfaces?
Yes, I absolutely need to change the boot config. The endpoint for the
tunnel to purgatory needs to follow purgatory every where purgatory
goes, even after a reboot.
The running config can be altered by rebooting, however I was just going
to ifdown/up. Now I'm contemplating either running the commands to
alter the running config VS ifdown, change boot, ifup.
# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
# /usr/share/doc/ifupdown/examples for more information.
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
# Uncomment this and configure after the system has booted for the first
time
auto eth0
iface eth0 inet static
address 184.106
netmask 255.255.255.0
gateway 184.106
dns-nameservers 173.203.4.8 173.203.4.9
auto tun6to4
iface tun6to4 inet6 v4tunnel
address 2002:b86a::1
netmask 16
remote ::192.88.99.1
endpoint any
local 184.106
ttl 255
mtu 1431
up ip -6 route add 2000::/3 via ::192.88.99.1 dev tun6to4
down ip -6 route flush dev tun6to4
##auto tunpurgatory
iface tunpurgatory inet6 v4tunnel
address 2001:470:2::2
netmask 64
endpoint 184.97
local 184.106
ttl 255
# mtu 1431
up ip -6 route add 2001:470:9e9::/64 dev tunpurgatory
down ip -6 route flush dev tunpurgatory
auto eth1
iface eth1 inet static
address 10.180
netmask 255.255.224.0
up route add -net 10.176.0.0 netmask 255.248.0.0 gw 10.180.64.1
down route del -net 10.176.0.0 netmask 255.248.0.0 gw 10.180.64.1
up route add -net 10.191.192.0 netmask 255.255.192.0 gw 10.180.64.1
down route del -net 10.191.192.0 netmask 255.255.192.0 gw 10.180.64.1
Reply to: