Zapnout IPv6 a forwarding
Poeditovat sysctl.conf
root@debian10a:~# nano /etc/sysctl.conf
Najít net.ipv6.conf.all.forwarding
a nastavit 1
. (projeví se po rebootu)
# Uncomment the next line to enable packet forwarding for IPv6 # Enabling this option disables Stateless Address Autoconfiguration # based on Router Advertisements for this host net.ipv6.conf.all.forwarding=1
Spustit sysctl (projeví se hned)
root@debian10a:~# sysctl net.ipv6.conf.all.forwarding=1
Kontrola (musí tam bejt 1)
root@debian10a:~# sysctl net.ipv6.conf.all.forwarding net.ipv6.conf.all.forwarding = 1
Nastavit vlastní adresu pro router
Poeditovat /etc/network/interfaces
před (pouze IPv4) | po (oboje IPv4 a IPv6) |
---|---|
# The loopback network interface auto lo iface lo inet loopback # Spoj -> PMV, uplink auto enp0s3 iface enp0s3 inet static address 10.107.99.130/30 # AP Example-DB8, tady jsou pripojenci auto enp0s8 iface enp0s8 inet static address 10.107.184.1/24 | # The loopback network interface auto lo iface lo inet loopback iface lo inet6 static address 2a01:16d:b800::/64 # Spoj -> PMV, uplink auto enp0s3 iface enp0s3 inet static address 10.107.99.130/30 # tady nepotřebuješ inet6, stačí ti link-local adresa (fe80::) # AP Example-DB8, tady jsou pripojenci auto enp0s8 iface enp0s8 inet static address 10.107.184.1/24 |
Shodit a nahodit interface (bacha na ostrý síti!)
root@debian10a:~# ifdown enp0s8; ifup enp0s8
Kontrola
root@debian10a:~# ip address show