ipv6 instellen
Dit gebeurt in praktijk alleen op een server of een router.
Clients stellen hun ipv6-config zelf in via SLAAC of van een DHCPv6-server
- debian linux groep
debian, ubuntu, linuxmint en debian- of ubuntu-based distro's
user@ub16-srv-30:~$ cat /etc/network/interfaces
# The loopback network interface auto lo iface lo inet loopback # The primary network interface ipv6 facing outside auto enp0s8 iface enp0s8 inet6 static address 2a01:123:123:6116:1000::1030 netmask 68 gateway 2a01:123:123:6116:1000::2 dns-nameservers 2001:4860:4860::8888 # The internal LAN interface 10.10/16 # administrative purposes only auto enp0s3 iface enp0s3 inet dhcp
- redhat linux groep
redhat, fedora, centOS, en redhat-based distro's
[user@centos72-s10 ~]$ cat /etc/sysconfig/network-scripts/ifcfg-enp0s3
TYPE=Ethernet BOOTPROTO=dhcp DEFROUTE=yes IPV4_FAILURE_FATAL=no IPV6INIT=yes IPV6_AUTOCONF=no IPV6_DEFROUTE=yes IPV6_FAILURE_FATAL=no NAME=enp0s3 UUID=cca878cc-f639-47dd-b504-11032d0d67ee DEVICE=enp0s3 ONBOOT=yes IPV6ADDR=2a01:123:123:6116:1000::1110/68 IPV6_DEFAULTGW=2a01:123:123:6116:1000::2 PEERDNS=yes PEERROUTES=yes DNS1=2001:4860:4860::8888
- cisco router
Router> enable Router# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)# interface fa0/0 Router(config-if)# ipv6 addr 2a01:123:123:6116::1174/64 Router(config-if)# no shut Router# show ipv6 interface brief FastEthernet0/0 [up/down] FE80::20A:41FF:FEDC:9101 2A01:123:123:6116::1174 FastEthernet0/1 [administratively down/down] Vlan1 [administratively down/down]
- windows7
c:\ netsh interface ipv6 add address "Local Area Connection" 2a01:123:123:6116:7:0:1:701
c:\ netsh interface ipv6 add route ::/0 "Local Area Connection" 2a01:123:123:6116::1174
c:\ netsh interface ipv6 add dnsserver "Local Area Connection" 2001:4860:4860::8888 index=1
- PC in packettracer