LAN between host and containers

X

Xrizolin

Guest
Hello, i have a problem.

I have 2 KVM conatainers with LAN between them with this settings for example.

DEVICE=eth1
NM_CONTROLLED="yes"
HWADDR="92:84:EF:45:32:10"
BOOTPROTO=static
IPADDR=192.168.1.114
NETMASK=255.255.255.0
NETWORK=192.168.1.0
ONBOOT=yes

and now i wand to use NFS where NFS host is into contaner with NAT, so i want to add host server to LAN to use some iptables rules fo make tunel between host server and container. But i cannot add host server to LAN. I configure eth1 with this settings.

# /etc/network/interfaces
auto eth1
allow-hotplug eth1
iface eth1 inet static
address 192.168.1.116
netmask 255.255.255.0
network 192.168.1.0

and get error root@Proxmox-VE:/# ifup eth1
SIOCSIFADDR: No such device
eth1: ERROR while getting interface flags: No such device

Question is: How to make lan between container and host server ? Sorry for bad english.
 
Hello

Yes you can .
Is that o physical network ?
on the clients have you added a second interface? what bridge device have you pointed them to ?
 

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!