alternate_address
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
alternate_address [2023/10/25 16:52] – created bent | alternate_address [2025/01/05 16:03] (current) – [Service script] bent | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | Hi Bent | + | ====== Alternate address ====== |
- | So here's what I think we'll need to do (syntax may not be quite right!) | + | Based on my experiments with [[prefix_delegation|IPv6 prefix delegation and subnetting]] |
- | === a) Steve' | ||
+ | ===== Steve' | ||
+ | (basically excerpts from an email) | ||
- | i) on my VPN router | + | |
+ | i) on the VPN router | ||
ip addr add dev br-lan 2a06: | ip addr add dev br-lan 2a06: | ||
ip route add default from 2a06: | ip route add default from 2a06: | ||
- | ii) on ictoan | + | ii) on Ictoan |
ip addr add br-lan 2a06: | ip addr add br-lan 2a06: | ||
ip route add default from 2a06: | ip route add default from 2a06: | ||
- | a) on vultrgate | + | a) on Vultrgate |
ip route add 2a06: | ip route add 2a06: | ||
ip route add 2001: | ip route add 2001: | ||
Add 2001: | Add 2001: | ||
- | === b) Bent's end 2001: | + | ===== Bent's end 2001: |
- | + | ||
- | + | ||
- | i) on gate-rpi | + | |
- | ip addr add dev br-lan 2001: | + | |
- | ip route add default from 2001: | + | |
- | ip -6 route add 2a06: | + | |
- | + | ||
- | ii) on Spot | + | |
- | ip addr add dev br-lan 2001: | + | |
- | ip route add default from 2001: | + | |
- | + | ||
- | IP numbers and device names may not be correct! | + | |
- | Some firewall additions may be required..... | + | |
- | Does this all seem right????? | + | |
- | Steve | + | ==== gate-rpi ==== |
+ | The basic IP commands are: | ||
+ | ip addr add dev eth0 2001: | ||
+ | ip route add default from 2001: | ||
+ | ip -6 route add 2a06: | ||
+ | Two of the three commands are easily transferred to Networkd configurations files but the one with ' | ||
+ | #/ | ||
+ | [Match] | ||
+ | Name=eth0 | ||
+ | |||
+ | [Network] | ||
+ | Address=192.168.19.44/ | ||
+ | DNS=192.168.19.5 | ||
+ | IPForward=yes | ||
+ | Address=2a06: | ||
+ | Address=2001: | ||
+ | IPv6AcceptRA=yes | ||
+ | and for the tunnel interface (wg0): | ||
+ | #/ | ||
+ | [Match] | ||
+ | Name=wg0 | ||
+ | |||
+ | [Network] | ||
+ | Address=10.8.3.2/ | ||
+ | IPForward=yes | ||
+ | |||
+ | [Route] | ||
+ | # | ||
+ | Destination=2a06: | ||
+ | ==== Spot ==== | ||
+ | Similarly the basic IP commands are: | ||
+ | ip addr add dev enp2s0 2001: | ||
+ | ip route add default from 2001: | ||
+ | The ' | ||
+ | Configuration file for enp2s0: | ||
+ | [Match] | ||
+ | Name=enp2s0 | ||
+ | | ||
+ | [Network] | ||
+ | Address=192.168.19.5/ | ||
+ | Gateway=192.168.19.254 | ||
+ | Address=2a06: | ||
+ | DHCP=no | ||
+ | IPv6AcceptRA=yes | ||
+ | | ||
+ | [Address] | ||
+ | Address=2001: | ||
+ | PreferredLifetime=0 | ||
+ | (the PreferredLifetime=0 is there to prevent usein this address as source address for outgoing connections | ||
+ | ==== Service script ==== | ||
+ | #/ | ||
+ | [Unit] | ||
+ | Description=Return route for IPv6 traffic | ||
+ | After=network-online.target | ||
+ | | ||
+ | [Service] | ||
+ | ExecStart=/ | ||
+ | ExecStop=/ | ||
+ | Type=oneshot | ||
+ | RemainAfterExit=yes | ||
+ | | ||
+ | [Install] | ||
+ | WantedBy=multi-user.target | ||
+ | This is the script from Spot. The one on gate-rpi is identical except for the interface name which is eth0 on gate-rpi. It doesn' |
alternate_address.1698252721.txt.gz · Last modified: 2023/10/25 16:52 by bent