1 |
After an outage on VDSL last month, I got a backup 10/1 cable |
2 |
subscription backup. Switching is a bit of a hassle. In addition to |
3 |
swapping cables, I have to run dhcpcd as root or sudo when swithching |
4 |
from VDSL to cable. Switching back I have to run "dhcpcd -x", copy over |
5 |
my backup of /etc/resolve.conf, and run "/etc/init.d/net.eth0 restart". |
6 |
|
7 |
The VDSL router/modem offers dhcp and static address space at |
8 |
192.168.1.0/24, DNS and default GW 192.168.1.1. I've bought a router |
9 |
that gets a WAN address from the cable modem via dhcpcd, and offers dhcp |
10 |
and static address space at 192.168.10.0/24, DNS and default GW |
11 |
192.168.10.1. My current /etc/conf.d/net is... |
12 |
|
13 |
mtu_eth0="1466" |
14 |
config_eth0=" |
15 |
192.168.1.249/24 broadcast 192.168.1.255" |
16 |
routes_eth0=" |
17 |
default via 192.168.1.1 metric 20 |
18 |
192.168.1.240/28 via 192.168.1.1 metric 0" |
19 |
|
20 |
...for my machine 192.168.1.249. Can I have something like... |
21 |
|
22 |
mtu_eth0="1466" |
23 |
config_eth0=" |
24 |
192.168.1.249/24 broadcast 192.168.1.255 |
25 |
192.168.10.249/24 broadcast 192.168.1.255" |
26 |
routes_eth0=" |
27 |
default via 192.168.1.1 metric 20 |
28 |
192.168.1.240/28 via 192.168.1.1 metric 0" |
29 |
|
30 |
... and how would I tweak the last two lines to work without changes |
31 |
each time I switch between VDSL (192.168.1.1) and cable (192.168.10.1) ? |
32 |
|
33 |
-- |
34 |
Walter Dnes <waltdnes@××××××××.org> |
35 |
I don't run "desktop environments"; I run useful applications |