Ipv6 Radvd: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 17: Zeile 17:
 
Diese Datei neu anlegen.
 
Diese Datei neu anlegen.
 
<pre>
 
<pre>
interface ens19
 
 
{
 
{
AdvManagedFlag off; # no DHCPv6 server here.
+
AdvSendAdvert on;
AdvOtherConfigFlag off; # not even for options.
+
MinRtrAdvInterval 30;
AdvSendAdvert on;
+
MaxRtrAdvInterval 100;
AdvDefaultPreference high;
+
prefix 2a02:xxxx:xxxx:xxxx::/64
AdvLinkMTU 1280;
+
{
prefix ::/64 #pick one non-link-local prefix assigned to the interface and start advertising it
+
AdvOnLink on;
{
+
AdvAutonomous on;
AdvOnLink on;
+
AdvRouterAddr off;
AdvAutonomous on;
+
 
};
+
};
 +
RDNSS 2001:4860:4860::8888 2001:4860:4860::8844 {
 +
            AdvRDNSSLifetime 7200;
 +
    };  
 
};
 
};
 +
 
</pre>
 
</pre>
 +
 
=radvd neustarten=
 
=radvd neustarten=
 
*systemctl restart radvd
 
*systemctl restart radvd

Version vom 22. Februar 2023, 16:05 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.

{
	AdvSendAdvert on;
	MinRtrAdvInterval 30;
	MaxRtrAdvInterval 100;
	prefix 2a02:xxxx:xxxx:xxxx::/64
	{
		AdvOnLink on;
		AdvAutonomous on;
		AdvRouterAddr off;

	};
	RDNSS 2001:4860:4860::8888 2001:4860:4860::8844 {
            AdvRDNSSLifetime 7200;
    	}; 
};

radvd neustarten

  • systemctl restart radvd