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:50] – bent | alternate_address [2025/01/05 16:03] (current) – [Service script] bent | ||
---|---|---|---|
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 transferred to Networkd configurations files but the one with ' | + | Two of the three commands are easily transferred to Networkd configurations files but the one with ' |
#/ | #/ | ||
[Match] | [Match] | ||
Line 40: | Line 40: | ||
Address=2001: | Address=2001: | ||
IPv6AcceptRA=yes | IPv6AcceptRA=yes | ||
- | and for the tunnel interface (wg0) | + | and for the tunnel interface (wg0): |
#/ | #/ | ||
[Match] | [Match] | ||
Line 54: | Line 54: | ||
==== 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.1736092221.txt.gz · Last modified: 2025/01/05 15:50 by bent