1 |
On 24 October 2020 06:55:54 CEST, Walter Dnes <waltdnes@××××××××.org> wrote: |
2 |
> After an outage on VDSL last month, I got a backup 10/1 cable |
3 |
>subscription backup. Switching is a bit of a hassle. In addition to |
4 |
>swapping cables, I have to run dhcpcd as root or sudo when swithching |
5 |
>from VDSL to cable. Switching back I have to run "dhcpcd -x", copy |
6 |
>over |
7 |
>my backup of /etc/resolve.conf, and run "/etc/init.d/net.eth0 restart". |
8 |
> |
9 |
> The VDSL router/modem offers dhcp and static address space at |
10 |
>192.168.1.0/24, DNS and default GW 192.168.1.1. I've bought a router |
11 |
>that gets a WAN address from the cable modem via dhcpcd, and offers |
12 |
>dhcp |
13 |
>and static address space at 192.168.10.0/24, DNS and default GW |
14 |
>192.168.10.1. My current /etc/conf.d/net is... |
15 |
> |
16 |
>mtu_eth0="1466" |
17 |
>config_eth0=" |
18 |
>192.168.1.249/24 broadcast 192.168.1.255" |
19 |
>routes_eth0=" |
20 |
>default via 192.168.1.1 metric 20 |
21 |
>192.168.1.240/28 via 192.168.1.1 metric 0" |
22 |
> |
23 |
>...for my machine 192.168.1.249. Can I have something like... |
24 |
> |
25 |
>mtu_eth0="1466" |
26 |
>config_eth0=" |
27 |
>192.168.1.249/24 broadcast 192.168.1.255 |
28 |
>192.168.10.249/24 broadcast 192.168.1.255" |
29 |
>routes_eth0=" |
30 |
>default via 192.168.1.1 metric 20 |
31 |
>192.168.1.240/28 via 192.168.1.1 metric 0" |
32 |
> |
33 |
>... and how would I tweak the last two lines to work without changes |
34 |
>each time I switch between VDSL (192.168.1.1) and cable (192.168.10.1) |
35 |
>? |
36 |
|
37 |
There are routers that support multiple WAN connections, removing the need to do this yourself. |
38 |
|
39 |
Alternatively, get a simple PC with multiple network cards to act as the router. |
40 |
|
41 |
-- |
42 |
Joost |
43 |
-- |
44 |
Sent from my Android device with K-9 Mail. Please excuse my brevity. |