User Tools

Site Tools


alternate_address

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
alternate_address [2025/01/05 15:58] bentalternate_address [2025/01/05 16:03] (current) – [Service script] bent
Line 75: Line 75:
 ==== Service script ==== ==== Service script ====
  
 +  #/etc/systemd/system/return-route.service
 +  [Unit]
 +  Description=Return route for IPv6 traffic
 +  After=network-online.target
 +  
 +  [Service]
 +  ExecStart=/usr/bin/ip -6 route add default from 2001:44b8:5135:7c07::/64 via 2a06:4000:8073:19::44 dev enp2s0 metric 10
 +  ExecStop=/usr/bin/ip -6 route del default from 2001:44b8:5135:7c07::/64 via 2a06:4000:8073:19::44 dev enp2s0 metric 10
 +  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't have the 'via' part either.
alternate_address.1736092704.txt.gz · Last modified: 2025/01/05 15:58 by bent