Ipv6 Radvd: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 6: Zeile 6:
 
==Akzeptieren der Router Advertisments==
 
==Akzeptieren der Router Advertisments==
 
net.ipv6.conf.ens19.accept_ra=2
 
net.ipv6.conf.ens19.accept_ra=2
 +
=radvd.conf=
 +
Diese Datei neu anlegen.
 +
<pre>
 +
interface ens19
 +
{
 +
AdvManagedFlag off; # no DHCPv6 server here.
 +
AdvOtherConfigFlag off; # not even for options.
 +
AdvSendAdvert on;
 +
AdvDefaultPreference high;
 +
AdvLinkMTU 1280;
 +
prefix ::/64 #pick one non-link-local prefix assigned to the interface and start advertising it
 +
{
 +
AdvOnLink on;
 +
AdvAutonomous on;
 +
};
 +
};
 +
</pre>
 +
=radvd neustarten=
 +
*systemctl restart radvd
 +
 
==systcl neueinlesen==
 
==systcl neueinlesen==
 
*sysctl -p
 
*sysctl -p
 
  net.ipv6.conf.all.forwarding = 1
 
  net.ipv6.conf.all.forwarding = 1
 
  net.ipv6.conf.ens19.accept_ra = 2
 
  net.ipv6.conf.ens19.accept_ra = 2

Version vom 15. November 2019, 11:17 Uhr

Install

  • apt-get install radvd

sysctl.conf

IPv6 Forwarding einschalten

net.ipv6.conf.all.forwarding = 1

Akzeptieren der Router Advertisments

net.ipv6.conf.ens19.accept_ra=2

radvd.conf

Diese Datei neu anlegen.

interface ens19 
{
AdvManagedFlag off; # no DHCPv6 server here.
AdvOtherConfigFlag off; # not even for options.
AdvSendAdvert on;
AdvDefaultPreference high;
AdvLinkMTU 1280;
prefix ::/64 #pick one non-link-local prefix assigned to the interface and start advertising it
{
AdvOnLink on;
AdvAutonomous on;
};
};

radvd neustarten

  • systemctl restart radvd

systcl neueinlesen

  • sysctl -p
net.ipv6.conf.all.forwarding = 1
net.ipv6.conf.ens19.accept_ra = 2