After an outage on VDSL last month, I got a backup 10/1 cable
subscription backup.  Switching is a bit of a hassle.  In addition to
swapping cables, I have to run dhcpcd as root or sudo when swithching
from VDSL to cable.  Switching back I have to run "dhcpcd -x", copy over
my backup of /etc/resolve.conf, and run "/etc/init.d/net.eth0 restart".

  The VDSL router/modem offers dhcp and static address space at
192.168.1.0/24, DNS and default GW 192.168.1.1.  I've bought a router
that gets a WAN address from the cable modem via dhcpcd, and offers dhcp
and static address space at 192.168.10.0/24, DNS and default GW
192.168.10.1. My current /etc/conf.d/net is...

mtu_eth0="1466"
config_eth0="
192.168.1.249/24 broadcast 192.168.1.255"
routes_eth0="
default via 192.168.1.1 metric 20
192.168.1.240/28 via 192.168.1.1 metric 0"

...for my machine 192.168.1.249.  Can I have something like...

mtu_eth0="1466"
config_eth0="
192.168.1.249/24 broadcast 192.168.1.255
192.168.10.249/24 broadcast 192.168.1.255"
routes_eth0="
default via 192.168.1.1 metric 20
192.168.1.240/28 via 192.168.1.1 metric 0"

... and how would I tweak the last two lines to work without changes
each time I switch between VDSL (192.168.1.1) and cable (192.168.10.1) ?

-- 
Walter Dnes <waltd...@waltdnes.org>
I don't run "desktop environments"; I run useful applications

Reply via email to