Can somebody help me with my network configuration?

CrazyEasy

New Member
Mar 26, 2018
2
0
1
44
crazyeasy.de
Hello!

I'm really new to Linux-Networking, and I need some help:

I have installed Proxmox on a Debian 9-Dedicated Server from Hetzner.

I have created a LXC-Container with Proxmox and want it to have it's own IP adress.

95.XXX.XXX.31 is the IP-Adress of my Proxmox-Server.
95.XXX.XXX.12 is the IP-Adress I want to assign to my LXC-Container.

I've tried it using Bridged, and Routed Mode, both didn't work.
I prefer Bridged Mode, at the Moment I have the following:

On my Proxmox-Host:
Code:
auto lo
iface lo inet loopback

iface enp2s0 inet manual

auto vmbr0
iface vmbr0 inet static
        address 95.XXX.XXX.31
        netmask 255.255.255.192
        gateway 95.XXX.XXX.1
        bridge_ports enp2s0
        bridge_stp off
        bridge_fd 0

On my LXC-Container:
Code:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address 95.XXX.XXX.12
        netmask 255.255.255.255
# --- BEGIN PVE ---
        post-up ip route add 95.XXX.XXX.1 dev eth0
        post-up ip route add default via 95.XXX.XXX.1 dev eth0
        pre-down ip route del default via 95.XXX.XXX.1 dev eth0
        pre-down ip route del 95.XXX.XXX.1 dev eth0
# --- END PVE ---
        pointopoint 95.XXX.XXX.1

I have no internet connection in my Container and I can't connect via SSH.

Has anyone an idea why? Can somebody help me?

Thankyou :)
 

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!