[LXC] Only works eth0 ; next ethXX dont respond to ping

chencho

Well-Known Member
Nov 25, 2010
92
8
48
Hi all.

My first ip works as expect.

But next ups dont, I can't do ping
If I set "ip -a" I can see all of the as "up

I want to use them as name servers into cpanel, but I can't use them :(

Code:
pveversion
pve-manager/6.4-13/9f411e79 (running kernel: 5.4.166-1-pve)

Code:
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@if117: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 02:00:00:54:09:67 brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet 146.xx.xx.xx/32 brd 146.xx.xx.xx scope global eth0
       valid_lft forever preferred_lft forever
    inet 54.xx.xx.xx/24 brd 54.xx.xx.255 scope global eth0:cp1
       valid_lft forever preferred_lft forever
    inet 37.xx.xx.xx/24 brd 37.xx.xx.255 scope global eth0:cp2
       valid_lft forever preferred_lft forever
    inet 51.xx.xx.xx/24 brd 51.xx.xx.255 scope global eth0:cp3
       valid_lft forever preferred_lft forever
    inet 178.xx.xx.xx/24 brd 178.xx.xx.255 scope global eth0:cp4
       valid_lft forever preferred_lft forever
    inet6 fe80::ff:fe54:967/64 scope link
       valid_lft forever preferred_lft forever
3: eth1@if118: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 02:00:00:6e:b8:5e brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet 146.xx.xx.xx/32 brd 146.xx.xx.xx scope global eth1
       valid_lft forever preferred_lft forever
    inet6 fe80::ff:fe6e:b85e/64 scope link
       valid_lft forever preferred_lft forever
4: eth2@if119: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 02:00:00:23:3b:6c brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet 146.xx.xx.xx/32 brd 146.xx.xx.xx scope global eth2
       valid_lft forever preferred_lft forever
    inet6 fe80::ff:fe23:3b6c/64 scope link
       valid_lft forever preferred_lft forever
5: eth3@if120: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 02:00:00:8c:fe:ce brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet 146.xx.xx.xx/32 brd 146.xx.xx.xx scope global eth3
       valid_lft forever preferred_lft forever
    inet6 fe80::ff:fe8c:fece/64 scope link
       valid_lft forever preferred_lft forever
6: eth4@if121: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 02:00:00:8c:4c:30 brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet 146.xx.xx.xx/32 brd 146.xx.xx.xx scope global eth4
       valid_lft forever preferred_lft forever
    inet6 fe80::ff:fe8c:4c30/64 scope link
       valid_lft forever preferred_lft forever
 

Attachments

  • Captura de pantalla 2022-03-07 a las 15.46.52.png
    Captura de pantalla 2022-03-07 a las 15.46.52.png
    102.7 KB · Views: 4
Last edited:
Sorry, I mix the result form cpanel XD

The fact is, I have a promo with 2 CT

The first ip from each other, responds to ping

Next ip's, doesn't

They are configured in the same way: Ip failover (OVH), Mac, Gateway, No firewall.

I have other server with the same configuration and works as expect.
 
I try to change my first ip from other one. Then works (again, only eth0) with the new ip.

This confirms tha OVH can router the ip to proxmox and the error is in Proxmox or Container (Centos 7).

I check /etc/sysconfig/network-scripts/ifcfg-eth0 vs /etc/sysconfig/network-scripts/ifcfg-eth1 and is the same (each other with it's ip)

Code:
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
IPADDR=146.XX.XX.XX
NETMASK=255.255.255.255
GATEWAY=146.XX.XX.254

I check /etc/sysconfig/network-scripts/route-eth0 with /etc/sysconfig/network-scripts/route-eth1 and its the same.

Code:
# --- BEGIN PVE ---
146.XX.XX.254 dev eth0
default via 146.XX.XX.254 dev eth0
# --- END PVE ---

ip -r

Bash:
default via 146.XX.XX.254 dev eth0
146.XX.XX.254 dev eth0 scope link
169.254.0.0/16 dev eth0 scope link metric 1028
169.254.0.0/16 dev eth1 scope link metric 1030

ip link show

Code:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
28: eth0@if29: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
    link/ether 02:00:00:2d:13:17 brd ff:ff:ff:ff:ff:ff link-netnsid 0
30: eth1@if31: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
    link/ether 02:00:00:28:76:a5 brd ff:ff:ff:ff:ff:ff link-netnsid 0

All is up.

I can ping frist ip, but not second :(
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!