Ipv6 Radvd: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 1: Zeile 1:
 
=Install=
 
=Install=
 
*apt-get install radvd
 
*apt-get install radvd
 +
=Szenario=
 +
*[[IPv6 Feste Ips]]
 +
 
=sysctl.conf=
 
=sysctl.conf=
 
==IPv6 Forwarding einschalten==
 
==IPv6 Forwarding einschalten==

Version vom 15. November 2019, 11:19 Uhr

Install

  • apt-get install radvd

Szenario

sysctl.conf

IPv6 Forwarding einschalten

net.ipv6.conf.all.forwarding = 1

Akzeptieren der Router Advertisments

net.ipv6.conf.ens19.accept_ra=2

systcl neueinlesen

  • sysctl -p
net.ipv6.conf.all.forwarding = 1
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