Centos7/cpanel guest 2 subnets on Hetzner not working, help appreciated

ehabh

Active Member
Dec 20, 2012
17
0
41
I got a second subnet to put on the centos 7/cpanel server but can not get the second network to run, configs below
The original working subnet is the one on vmbr 5 and the new one on vmbr6

Host



cat /etc/network/interfaces
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!

auto lo
iface lo inet loopback

iface lo inet6 loopback

auto enp1s0
iface enp1s0 inet static
address 168.119.95.59/32
gateway 168.119.95.33
pointopoint 168.119.95.33

iface enp1s0 inet6 static
address 2a01:4f8:242:47::1/128
gateway fe80::1
up sysctl -p

iface enp35s0 inet manual

auto vmbr0
iface vmbr0 inet static
address 136.243.242.49/28
bridge-ports none
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094

iface vmbr0 inet6 static
address 2a01:4f8:242:47::2/64

auto vmbr1
iface vmbr1 inet static
address 168.119.95.59/32
bridge-ports none
bridge-stp off
bridge-fd 0
up ip route add 144.76.121.168/32 dev vmbr0
up ip route add 116.202.238.205/32 dev vmbr0

auto enp1s0.4001
iface enp1s0.4001 inet static
address 167.223.0.228/28
gateway 167.223.0.225

auto vmbr2
iface vmbr2 inet manual
bridge-ports enp1s0.4001
bridge-stp off
bridge-fd 0

auto vmbr3
iface vmbr3 inet static
address 136.243.244.225/28
bridge-ports none
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094

auto vmbr5
iface vmbr5 inet static
address 144.76.161.161/27
bridge-ports none
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094

auto vmbr6
iface vmbr6 inet static
address 136.243.223.97/28
bridge-ports none
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094







Guest networking files

cat ifcfg-eth0:0
BOOTPROTO=none
NM_CONTROLLED=no
IPV6INIT=no
DEVICE=eth0:0
NETMASK=255.255.255.0
ONPARENT=yes
BROADCAST=255.255.255.240
IPADDR=136.243.223.98
NETWORK=136.243.223.0
GATEWAY=136.243.223.97
ONBOOT=yes

[root@cp network-scripts]# cat ifcfg-eth0
TYPE="Ethernet"
NM_CONTROLLED=no
PROXY_METHOD="none"
BROWSER_ONLY="no"
BOOTPROTO="none"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_FAILURE_FATAL="no"
IPV6_ADDR_GEN_MODE="stable-privacy"
NAME="eth0"
UUID="9ab7be48-aed7-4345-b785-e12bd2c5ae78"
DEVICE="eth0"
ONBOOT="yes"
IPADDR="144.76.161.162"
PREFIX="27"
GATEWAY="144.76.161.161"
DNS1="8.8.4.4"
IPV6_PRIVACY="no"
 
Last edited:

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!