IP6: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 32: | Zeile 32: | ||
= Globale Addressierung konfigurieren = | = Globale Addressierung konfigurieren = | ||
* Provider vergibt Präfix, z.B. 2a02:c207:0001:1691:0000:0000:0000:0001/64 | * Provider vergibt Präfix, z.B. 2a02:c207:0001:1691:0000:0000:0000:0001/64 | ||
* kurz: 2a02:c207:0001:1691::1 | |||
== Basishost ("Router") == | |||
* Temporär | |||
<pre>ip addr add 2a02:c207:0001:1691::1/64 dev eno1 | |||
ip route add default via fe80::1 dev eno1 | |||
</pre> | |||
* /etc/network/interfaces | * /etc/network/interfaces | ||
<pre>iface eno1 inet6 static | <pre>iface eno1 inet6 static | ||
Zeile 42: | Zeile 49: | ||
</pre> | </pre> | ||
== VM oder Intranet == | |||
* Temporär | |||
<pre>ip addr add 2a02:c207:0001:1691:2:04/64 dev eno1 | |||
ip route add default via 2a02:c207:0001:1691::1 dev eno1 | |||
</pre> | |||
== Sonstiges == | |||
* /etc/radvd.conf | * /etc/radvd.conf | ||
<pre>interface eth1 { | <pre>interface eth1 { |
Version vom 26. Juni 2020, 14:23 Uhr
Links
- [Dritte%20Auflage.pdf]
Begriffe
- Link: Entität, die IP6-Adresse haben kann, z.B. Interface
Adressen
- scope link: nur lokal ansprechbar: fe80:*
- scope global: global ansprechbar: 2xxx:*
ip addr 2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 8c:16:45:92:9a:c6 brd ff:ff:ff:ff:ff:ff inet 192.168.2.106/24 brd 192.168.2.255 scope global dynamic noprefixroute enp2s0 valid_lft 315350808sec preferred_lft 315350808sec inet6 2003:f2:6702:6800:9874:3612:5ea4:128c/64 scope global dynamic noprefixroute valid_lft 7129sec preferred_lft 1729sec inet6 fe80::d678:f5c8:cbd7:b8ee/64 scope link noprefixroute valid_lft forever preferred_lft forever
Tools
ip neighbor show 10.10.10.1 dev ens18 lladdr 02:63:14:3c:51:cb REACHABLE fe80::dc82:96ff:fe7a:34ba dev ens18 lladdr 02:63:14:3c:51:cb STALE ip link show dev e
Globale Addressierung konfigurieren
- Provider vergibt Präfix, z.B. 2a02:c207:0001:1691:0000:0000:0000:0001/64
- kurz: 2a02:c207:0001:1691::1
Basishost ("Router")
- Temporär
ip addr add 2a02:c207:0001:1691::1/64 dev eno1 ip route add default via fe80::1 dev eno1
- /etc/network/interfaces
iface eno1 inet6 static address 2a02:c207:0001:1691::1 netmask 64 gateway fe80::1 accept_ra 0 autoconf 0 privext 0
VM oder Intranet
- Temporär
ip addr add 2a02:c207:0001:1691:2:04/64 dev eno1 ip route add default via 2a02:c207:0001:1691::1 dev eno1
Sonstiges
- /etc/radvd.conf
interface eth1 { AdvSendAdvert on; MinRtrAdvInterval 15; prefix 2a02:c207:0001:1691:0000:0000:0000:0001; };
- Installation Daemon (braucht obige Konfigurationsdatei)
apt-get install radvd