Ipv6: Unterschied zwischen den Versionen

Aus xinux.net
Zur Navigation springen Zur Suche springen
Zeile 1: Zeile 1:
 +
=DHCPv6 und prefix Weitergabe=
 +
wide-dhcpv6-client
 +
Installieren
 +
apt-get install RADVD
 +
apt-get install wide-dhcpv6-client
 +
in der abfrage während der Installation unser WAN Interface eingeben
 +
ipv6 forwarden & router Advertisment für WAN schnistelle erlauben
 +
in /etc/sysctl.conf Hinzufügen
 +
net.ipv6.conf.all.forwarding = 1
 +
net.ipv6.conf.eth0.accept_ra=2
 +
auf statisch setzen um den alternative wide dhcpv6 client zu benutzen
 +
in /etc/network/interfaces auf statisch setzen
 +
iface eth0 inet6 static
 +
nun dhcp6c konfigurieren
 +
kann soweit kopiert werden darauf achten die WAN & LAN interfaces entsprechend anzupassen
 +
in /etc/wide-dhcpv6/dhcp6c.conf
 +
interface eth0 { # external facing interface (WAN)
 +
  send ia-na 1;
 +
  send ia-pd 1;
 +
  request domain-name-servers;
 +
  request domain-name;
 +
  script "/etc/wide-dhcpv6/dhcp6c-script";
 +
};
 +
 +
id-assoc pd 1 {
 +
  prefix-interface eth1 { #internal facing interface (LAN)
 +
    sla-id 0; # subnet. Combined with ia-pd to configure the subnet for this interface.
 +
    ifid 1; #IP address "postfix". if not set it will use EUI-64 address of the interface. Combined with SLA-ID'd prefix to create full IP address of interface.
 +
    sla-len 8; # prefix bits assigned. Take the prefix size you're assigned (something like /48 or /56) and subtract it from 64. In my case I was being assigned a /56, so 64-56=8
 +
    };
 +
  };
 +
 +
  id-assoc na 1 {
 +
  # id-assoc for eth1
 +
};
 +
 +
zunächst finden wir raus unter welchem level die programme in sbin gestartet werden
 +
/sbin/runlevel
 +
N 2
 +
nun gehen wir in den entsprechenden ordner un nenen noch die datei S20radvd um
 +
cd /etc/rc2.d
 +
mv S20radvd S98radvd
 +
vi S98radvd  und noch sleep 10 hinzufügen an den anfang
 +
in /etc/radvd.conf folgendes eintragen und
 +
interface eth1 # LAN interfaces entsprechend anzupassen
 +
{
 +
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
 +
/etc/init.d/radvd restart
 
=links=
 
=links=
 
*http://mirrors.bieringer.de/Linux+IPv6-HOWTO-de/index.html
 
*http://mirrors.bieringer.de/Linux+IPv6-HOWTO-de/index.html
Zeile 5: Zeile 64:
 
*http://www.heise.de/netze/artikel/Netzwerk-Diplomatie-224324.html
 
*http://www.heise.de/netze/artikel/Netzwerk-Diplomatie-224324.html
 
*http://sophiedogg.com/radvd-and-dhcpd6-server-configuration-for-dynamic-dns/
 
*http://sophiedogg.com/radvd-and-dhcpd6-server-configuration-for-dynamic-dns/
 +
*http://www.ipcalypse.ca/?p=204

Version vom 29. Oktober 2015, 14:56 Uhr

DHCPv6 und prefix Weitergabe

wide-dhcpv6-client Installieren

apt-get install RADVD
apt-get install wide-dhcpv6-client
in der abfrage während der Installation unser WAN Interface eingeben

ipv6 forwarden & router Advertisment für WAN schnistelle erlauben

in /etc/sysctl.conf Hinzufügen
net.ipv6.conf.all.forwarding = 1
net.ipv6.conf.eth0.accept_ra=2

auf statisch setzen um den alternative wide dhcpv6 client zu benutzen

in /etc/network/interfaces auf statisch setzen 
iface eth0 inet6 static

nun dhcp6c konfigurieren kann soweit kopiert werden darauf achten die WAN & LAN interfaces entsprechend anzupassen

in /etc/wide-dhcpv6/dhcp6c.conf
interface eth0 { # external facing interface (WAN)
  send ia-na 1;
  send ia-pd 1;
  request domain-name-servers;
  request domain-name;
  script "/etc/wide-dhcpv6/dhcp6c-script";
};

id-assoc pd 1 {
  prefix-interface eth1 { #internal facing interface (LAN)
    sla-id 0; # subnet. Combined with ia-pd to configure the subnet for this interface.
    ifid 1; #IP address "postfix". if not set it will use EUI-64 address of the interface. Combined with SLA-ID'd prefix to create full IP address of interface.
    sla-len 8; # prefix bits assigned. Take the prefix size you're assigned (something like /48 or /56) and subtract it from 64. In my case I was being assigned a /56, so 64-56=8
    };
  }; 

  id-assoc na 1 {
  # id-assoc for eth1
};

zunächst finden wir raus unter welchem level die programme in sbin gestartet werden /sbin/runlevel

N 2

nun gehen wir in den entsprechenden ordner un nenen noch die datei S20radvd um

cd /etc/rc2.d
mv S20radvd S98radvd
vi S98radvd  und noch sleep 10 hinzufügen an den anfang

in /etc/radvd.conf folgendes eintragen und

interface eth1 # LAN interfaces entsprechend anzupassen
{
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

/etc/init.d/radvd restart

links