no link in container

goeldi

Renowned Member
Dec 6, 2012
28
1
68
I installed Proxmox 5.1 and created a container:

# pveversion
pve-manager/5.1-41/0b958203 (running kernel: 4.13.13-4-pve)

For the node everything works, but in the container I have no network connection at all. Also direct ping to the gateway/node does not work. Firewalls are deactivated.

Here is "ip addr" on the node:

2: enp0s31f6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master vmbr0 state UP group default qlen 1000
link/ether 90:1b:0e:de:e6:a2 brd ff:ff:ff:ff:ff:ff
3: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 90:1b:0e:de:e6:a2 brd ff:ff:ff:ff:ff:ff
inet 94.130.131.164/26 brd 94.130.131.191 scope global vmbr0
valid_lft forever preferred_lft forever
inet6 fe80::921b:eff:fede:e6a2/64 scope link
valid_lft forever preferred_lft forever
9: veth565i0@if8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master vmbr0 state UP group default qlen 1000
link/ether fe:92:8f:43:5a:9e brd ff:ff:ff:ff:ff:ff link-netnsid 0

And this is "ip addr" in the container:

8: eth0@if9: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 3a:8b:44:93:78:2d brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet 195.201.15.65/28 brd 195.201.15.79 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::388b:44ff:fe93:782d/64 scope link
valid_lft forever preferred_lft forever

This is the dmesg, which looks the same in the node and in the container:

[17198.141788] eth0: renamed from vethHEMOMM
[17198.396844] vmbr0: port 2(veth565i0) entered blocking state
[17198.396846] vmbr0: port 2(veth565i0) entered forwarding state
[17406.377281] vmbr0: port 2(veth565i0) entered disabled state
[17406.377616] device veth565i0 left promiscuous mode
[17406.377620] vmbr0: port 2(veth565i0) entered disabled state
[17412.881085] IPv6: ADDRCONF(NETDEV_UP): veth565i0: link is not ready
[17413.119607] vmbr0: port 2(veth565i0) entered blocking state
[17413.119608] vmbr0: port 2(veth565i0) entered disabled state
[17413.119635] device veth565i0 entered promiscuous mode
[17413.165827] eth0: renamed from vethP3JW16
[17413.421788] vmbr0: port 2(veth565i0) entered blocking state
[17413.421801] vmbr0: port 2(veth565i0) entered forwarding state

TIA
 
Here is the output of lxc-checkconfig:

Code:
Kernel configuration not found at /proc/config.gz; searching...
Kernel configuration found at /boot/config-4.13.13-4-pve
--- Namespaces ---
Namespaces: enabled
Utsname namespace: enabled
Ipc namespace: enabled
Pid namespace: enabled
User namespace: enabled
Network namespace: enabled

--- Control groups ---
Cgroups: enabled

Cgroup v1 mount points:
/sys/fs/cgroup/systemd
/sys/fs/cgroup/freezer
/sys/fs/cgroup/net_cls,net_prio
/sys/fs/cgroup/devices
/sys/fs/cgroup/cpu,cpuacct
/sys/fs/cgroup/cpuset
/sys/fs/cgroup/perf_event
/sys/fs/cgroup/hugetlb
/sys/fs/cgroup/rdma
/sys/fs/cgroup/blkio
/sys/fs/cgroup/memory
/sys/fs/cgroup/pids

Cgroup v2 mount points:


Cgroup v1 clone_children flag: enabled
Cgroup device: enabled
Cgroup sched: enabled
Cgroup cpu account: enabled
Cgroup memory controller: enabled
Cgroup cpuset: enabled

--- Misc ---
Veth pair device: enabled, loaded
Macvlan: enabled, not loaded
Vlan: enabled, not loaded
Bridges: enabled, not loaded
Advanced netfilter: enabled, not loaded
CONFIG_NF_NAT_IPV4: enabled, not loaded
CONFIG_NF_NAT_IPV6: enabled, not loaded
CONFIG_IP_NF_TARGET_MASQUERADE: enabled, not loaded
CONFIG_IP6_NF_TARGET_MASQUERADE: enabled, not loaded
CONFIG_NETFILTER_XT_TARGET_CHECKSUM: enabled, not loadedCONFIG_NETFILTER_XT_MATCH_COMMENT: enabled, not loaded
FUSE (for use with lxcfs): enabled, not loaded


--- Checkpoint/Restore ---
checkpoint restore: enabled
CONFIG_FHANDLE: enabled
CONFIG_EVENTFD: enabled
CONFIG_EPOLL: enabled
CONFIG_UNIX_DIAG: enabled
CONFIG_INET_DIAG: enabled
CONFIG_PACKET_DIAG: enabled
CONFIG_NETLINK_DIAG: enabled
File capabilities: enabled
 

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!