Internal local network between LXC Proxmox 6.2

monteros007

Member
Oct 1, 2020
9
0
6
36
Hi,

I'm new in Proxmox solutions. Actually I have one vmbr0 Linux bridge on proxmox host with eno1 bridge to public network. My lxc have one eth0 which is connect with vmbr0 bridge + failover public IP and gateway is public IP proxmox host. This configuration is okey to my lxc because I use singly. At now I have build 3 new lxc which one has 1 public IP and two others only local address. I create new bridge vmbr1 on proxmox host:
-vmbr1
-linux bridge
-cidr 10.0.0.254

and configuration on 1 lxc:
- eth1
- mac
- bridge to vmbr1
- cidr 10.0.0.10

and configuration on 2 lxc:
- eth1
- mac
- bridge to vmbr1
- cidr 10.0.0.11

I restarted proxmox host but none of them ping from lxc1 to lxc2 or to host.

What is bad in this configuration?

Best Regards
 
Hi,

this config should work.
are the vmbr1 has autostart selected?
 
I guess the problem is your subnet at the container.
You must use subnet 24 or use the correct routing.
 
Sorry but I added interface eth1 from proxmox GUI. I don't change another network settings on LXC. Should I ?
 
You have to set in the GUI the correct subnet.
IPv4/CIDR: 10.0.0.10/24
 
ok so I change subnet as below and nothing change:
1 LXC
eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.0.12 netmask 255.255.255.0 broadcast 0.0.0.0
inet6 fe80::4c30:3ff:fe80:c17b prefixlen 64 scopeid 0x20<link>
ether 4e:30:03:80:c1:7b txqueuelen 1000 (Ethernet)
RX packets 14833 bytes 931173 (909.3 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 14 bytes 1100 (1.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
2 LXC
eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.0.10 netmask 255.255.255.0 broadcast 0.0.0.0
inet6 fe80::fc0c:30ff:fe28:8194 prefixlen 64 scopeid 0x20<link>
ether fe:0c:30:28:81:94 txqueuelen 1000 (Ethernet)
RX packets 8 bytes 640 (640.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 25 bytes 1510 (1.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

and ping

[root@dev1 ~]# ping 10.0.0.12
PING 10.0.0.12 (10.0.0.12) 56(84) bytes of data.
From 10.0.0.10 icmp_seq=1 Destination Host Unreachable
From 10.0.0.10 icmp_seq=2 Destination Host Unreachable
From 10.0.0.10 icmp_seq=3 Destination Host Unreachable

Thanks and Best Regards
 
How does the route in the LXC looks like?
Code:
ip r
 
LXC1:

[root@dev1 ~]# ip r
default via PUBLIC_IP dev eth0
10.0.0.0/24 dev eth1 proto kernel scope link src 10.0.0.10
10.0.0.1 dev eth1 scope link
PUBLIC_IP dev eth0 scope link
169.254.0.0/16 dev eth0 scope link metric 1002
169.254.0.0/16 dev eth1 scope link metric 1003
 

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!