alternate_address
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| alternate_address [2025/01/05 15:38] – [Bent's end 2001:44b8:5135:7c07::/64] bent | alternate_address [2025/01/05 16:03] (current) – [Service script] bent | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| ===== Steve' | ===== Steve' | ||
| + | (basically excerpts from an email) | ||
| Line 28: | Line 28: | ||
| ip route add default from 2001: | ip route add default from 2001: | ||
| ip -6 route add 2a06: | ip -6 route add 2a06: | ||
| - | Two of the three commands are easily | + | Two of the three commands are easily |
| + | #/ | ||
| + | [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] | ||
| + | # | ||
| + | | ||
| ==== Spot ==== | ==== Spot ==== | ||
| + | Similarly the basic IP commands are: | ||
| ip addr add dev enp2s0 2001: | ip addr add dev enp2s0 2001: | ||
| ip route add default from 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 ==== | ||
| - | IP numbers and device have been updated. | + | #/ |
| - | Some firewall additions may be required..... | + | |
| - | Does this all seem right????? | + | Description=Return route for IPv6 traffic |
| - | + | After=network-online.target | |
| - | Steve | + | |
| - | + | | |
| + | | ||
| + | | ||
| + | | ||
| + | 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.1736091491.txt.gz · Last modified: by bent
