Setting up the server is not very different from setting up a client. The only thing that differs is the routing table.
Let's assume your VPS has addresses as follows:
Code: [Select]
IPv4 address: 198.51.100.42
IPv6 address: 2001:db8::2/64
Default gateway 2001:db8::1
Routed prefix 2001:db8:1::/48
Then from that you can use 2001:db8:1:1::/64 for the tunnel link and 2001:db8:1:100::/56 as a routed prefix for the client.
Assuming the client has IPv4 address 203.0.113.7 the configurations would be as follows:
Code: (Server) [Select]
Tunnel IPv4: 198.51.100.42
Peer IPv4: 203.0.113.7
Tunnel IPv6: 2001:db8:1:1::1/64
Routing table:
::/0 gateway 2001:db8::1
2001:db8:1:100::/56 gateway 2001:db8:1:1::2
Code: (Client) [Select]
Tunnel IPv4: 203.0.113.7
Peer IPv4: 198.51.100.42
Tunnel IPv6: 2001:db8:1:1::2/64
Routing table:
::/0 gateway 2001:db8:1:1::1
可参考:https://sskaje.me/notes/network/ipv6/
asus router snapshot
没有评论:
发表评论