How to Activate IPv6 on Running System? Ubuntu Server 18.04

Discussion in 'Installation/Configuration' started by GCCM, Jul 9, 2020.

  1. GCCM

    GCCM Member

    Hi

    I want to use IPv6.
    I got for my Router External IPv4 Static and do Portforwarding.
    I know, IPv6 don't need this. But on Installation i Disabled IPv6 cause it wasn't avaiable.
    Now i got External Static IPv6 also for each Device is going with IPv6 to internet.

    But how can i activat now IPv6 on Ubuntu?
    I would activate it as "DHCP" cause Static directly won't work (Prefix Delegation).

    How do i need to start?
    Tried on Netplan to activate it with dhcpv6: ture
    That would work but than the full Server isn't avaiable anymore. May i did a failture there.

    Can you help me step for step?
    Or ask me what informations you also need that you can explain me how to do?

    I have very much experiance with Windows Server etc. but i'm actually learning with Linux but on IPv6 there is no chance for me actually.

    Thank you guys! :)

    Best Regards

    Erwin
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  3. GCCM

    GCCM Member

    Thank you, but that don't tell about netplan.. and there is the problem that i don't know how to set in on netplan.

    Its like this (found on internet):
    # This file describes the network interfaces available on your system
    # For more information, see netplan(5).
    network:
    version: 2
    renderer: networkd
    ethernets:
    eth0:
    dhcp4: no
    dhcp6: yes
    addresses:
    - 81.169.YYY.XXX/32
    gateway4: 81.169.1YY.XX
    nameservers:
    adresses: [81.169.163.106, 85.214.7.22, 81.169.148.34]
    routes:
    - to: 0.0.0.0/0
    via: 81.169.1YY.XX
    on-link: true


    but if i do like this (dhcp6) it would be configured but IPv4 isn't avaiable anymore.
    Is it important where the dhcp6 option is standing?
    Like on Windows Client / Server there would it be like this:
    dhcp4: no
    IPv4
    Netmask
    Gataway
    DNS
    dhcp6: yes

    may it need to be on bottom? i can't test it cause it's a live system.

    Thank you
     
  4. GCCM

    GCCM Member

    tried now like this:

    Its like this (found on internet):
    # This file describes the network interfaces available on your system
    # For more information, see netplan(5).
    network:
    version: 2
    renderer: networkd
    ethernets:
    eth0:
    addresses:
    - 81.169.YYY.XXX/32
    gateway4: 81.169.1YY.XX
    nameservers:
    adresses: [81.169.163.106, 85.214.7.22, 81.169.148.34]
    dhcp4: no
    dhcp6: true

    but it's going also ipv4 to dhcp if i try like this..
     
  5. GCCM

    GCCM Member

    Okay it seems like to work if i do like this:
    network:
    ethernets:
    eth0:
    adresses:
    - xxx.xxx.xxx.xx/xx
    gateaway4: xxx.xxx.xxx.xx
    nameservers:
    addresses:
    - xxx.xxx.xxx.xx
    - xxx.xxx.xxx.xx
    search:
    - domain.tld
    dhcp4: no
    dhcp6: true

    but now i got 2 IPv6 Adresses.. Both are not simmelar to other Devices on the LAN.
    For Example:
    Notebook: 2001:1620:xxx:0:xxxx:xxxx:4189:8006
    Handy: 2001:1620:xxx:0:xxxx:xxxx:4189:8007
    The Server:
    fe80::xxx:5dff:xxxx:7401
    2001:1620:xxx:1:xxx:5dff:fe01:7401

    also i want to do like on IPv6 to forward the Ports to the Server.
    Any ideas? :) May a Static Route?
     
  6. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    If you use both IPv4 and IPv6 address on that Ubuntu host, it is multi homed host and you need to do settings accordingly. https://en.wikipedia.org/wiki/Multihoming
    Port forwarding is port forwarding, and static routes are static routes. I don't think you can replace one with the other.
    It is not clear, at least to me, what you are aiming at. Setting up your network is done in similar way whether you use IPv4 or IPv6. If you want both, read about multihoming.
    If you want more help, describe what is the desired end result you aim for, and tell more precicely what is now working, in what way it is not working and how you have verified it is not working. Also, please post the listings in CODE tags.
     

Share This Page