Operating System & Version
Ubuntu 20.04
cPanel & WHM Version
102

bitpt

Active Member
Sep 28, 2006
43
4
158
Trying config ipv6 without success
No networkmanager in ubuntu


when try config for ipv6 /etc/netplan/01-netcfg.yaml
Server eth connection missing and need a rescue reboot to roll back network config and access to server
Can someone help with this?

Thank You
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
11,053
1,748
363
cPanel Access Level
Root Administrator
Hey there! Can you check the "Getting Started" section here to ensure they are properly added to the server?


I would expect that to work normally on the system. If you're needing to roll back to a previous build, that suggests something is happening at the operating system level that is keeping the server from working properly.
 

bitpt

Active Member
Sep 28, 2006
43
4
158
Not working.

Before config ipv6 in whm with docs from cpanel... assign reserved, etc etc

Ping ipv6.google.com get "Network is unreachable"

After config same. No ipv6 at all.

In my local servers without cpanel, have networkmanager or netplan and no problem with ipv6.

After install network-manager in cpanel server, no data in nmtui
For now i give up, work only with ipv4, crash one time and takes severall hours to roll back.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
11,053
1,748
363
cPanel Access Level
Root Administrator
Thanks for the additional details. It sounds like that particular host didn't assign an IPv6 address to the server, or there is possibly not an IPv6 connection at all if you're not able to ping outbound over that network connection. Does the "ip a" command show there is an IPv6 address assigned? Here's an example of what that looks like on a machine that primarily uses IPv4:

Code:
[[email protected] public_html]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether f2:3c:93:08:fb:31 brd ff:ff:ff:ff:ff:ff
    inet 1.2.3.4/24 brd 1.2.3.4 scope global dynamic eth0
       valid_lft 83559sec preferred_lft 83559sec
    inet6 1:2:3:4:5:6/64 scope global dynamic mngtmpaddr
       valid_lft 60sec preferred_lft 20sec
    inet6 1:2:3:4:5:6/64 scope link
       valid_lft forever preferred_lft forever
 

bitpt

Active Member
Sep 28, 2006
43
4
158
ip a

[email protected]:~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp27s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether xxx:xxxx:63:4e:17 brd ff:ff:ff:ff:ff:ff
inet XXX.XXX.XXX.46/32 scope global enp27s0
valid_lft forever preferred_lft forever
inet6 fe80::XXXXX:XXXX:fe63:4e17/64 scope link
valid_lft forever preferred_lft forever
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
11,053
1,748
363
cPanel Access Level
Root Administrator
That certainly looks like things should work. I'd recommend speaking with the host to see if they have any ideas on this particular issue - while cPanel does require that NetworkManager gets disabled, I don't expect it to break any IPv6 traffic, especially outbound.
 

quietFinn

Well-Known Member
Feb 4, 2006
1,659
334
438
Finland
cPanel Access Level
Root Administrator
I created a public cloud instance in OVH, Ubuntu 20.04, installed cPanel. Then copy-pasted IPv6 address from OVH control panel to WHM -> Basic WebHost Manager Setup & saved. After that IPv6 works in and out.
@bitpt are you sure there is an IPv6 address bound to your server?
 
  • Like
Reactions: cPRex

bitpt

Active Member
Sep 28, 2006
43
4
158
Let me see what host said about this... i'll reply ASAP

Thanks for yours replies
 
Last edited:

bitpt

Active Member
Sep 28, 2006
43
4
158
1)Hosting Reply:

-----------------start------------------
This server have ipv6 allocated??
Yes, this server have ipv6 allocated

Here are the credentials for IPV6 :

IP-Address: 2001:xxxx:xxxx:2c::/64 ,Gateway fe80::1/128

2) IPV6 range in manager IP are server IPV6?
Yes, the information that you have in manager IP is for the IPV6 range in manager IP are server IPV6

-----------------------end----------------

2) Cpanel Ubuntu 20.04 instalation:

This is create by cpanel ubuntu clean install...
/etc/netplan/01-whatever.yaml created in install

network:
version: 2
renderer: networkd
ethernets:
enp27s0:
addresses: [ xxx.xxx.xxx.xxx/32 ]
nameservers:
search: [dedicated.server ]
addresses:
- "xx.xx.xx.xx"
- "xx.xx.xx.xx"
- "xx.xx.xx.xx"
routes:
- to: 0.0.0.0/0
via: xxx.xxx.xxx.xxx
on-link: true


After install no ipv6 ping for a external address,

Follow procedures (centos)changes for ubuntu

However, in 20.04 ipv6 conn is made in /etc/netplan/

i tried ipv6 for ubuntu 20.04 config (follow this without DHCP... Adding an IPv4 or IPv6 address in Ubuntu 20.04 | TransIP ), configuring netplan, but i screwed everything up with a wrong configuration. The yaml file does not allow spaces, only tabs like python... (or whatever it is, I don't know well how to edit this type of files)

Even with netplan try result ok... server lost all connections, no access only with rescue mode recover mistake.

So, if there is no safe way to configure, i'll wait until there is a secure improvement.
This machine is now in production and i don't have space at the moment to risk downtime.
 
Last edited:

bitpt

Active Member
Sep 28, 2006
43
4
158
If you can get us root access to an affected system where we can recreate the issue, we'll be happy to check.
With hosting support help i solve this issue.

1) Like i test before but with bad editing, only need change e /etc/netpan/01-whatever.yaml file

the original after cpanel ubuntu install is:
/etc/netplan/01-whatever.yaml

network:
version: 2
renderer: networkd
ethernets:
enp27s0:
addresses: [ xxx.xxx.xxx.xxx/32 ]
nameservers:
search: [dedicated.server ]
addresses:
- "xx.xx.xx.xx"
- "xx.xx.xx.xx"
- "xx.xx.xx.xx"
routes:
- to: 0.0.0.0/0
via: xxx.xxx.xxx.xxx
on-link: true

We need to change this file yaml
IMPORTANT: ONLY SPACES NO TABS WHEN EDIT FILE
create a backup and, when finish editing, test with
netplan try before save, screw this file and loss server connect


network:
version: 2
renderer: networkd
ethernets:
enp27s0:
addresses: [ xxx.xxx.xxx.xxx/32,<shared main cpanel ipv6 server> ]
gateway6: fe80:xxx::1
nameservers:
search: [dedicated.server ]
addresses:
- "xx.xx.xx.xx"
- "xx.xx.xx.xx"
- "xx.xx.xx.xx"
routes:
- to: 0.0.0.0/0
via: xxx.xxx.xxx.xxx
on-link: true


Add ipv6 main server ip, and gateway 6.
Now works fine, i ask for a test server for you, i'm waiting response

Note: need spaces in this file, but when save here, lost it... let me try a image with ok config

1647554510013.png
 
Last edited:

bitpt

Active Member
Sep 28, 2006
43
4
158
Correction, in
addresses:
"ipv6 server range" not "shared main cpanel ipv6 server" ex: 2001.xxx::1/64 (whatever range is alocate to server)
nameservers
addresses add
2011:4860:4860::8888 (google dns or other ipv6 global)