Single NIC Muti-IP Server

Chen

Active Member
Feb 16, 2016
4
1
43
44
I've Been BREAKING MY HEAD and can't seem to get it working on my Guest VMs.
I've Tried everything I just can't route my /29 to my Guest VMs
What a Headache ~:(

sysctl -w net.ipv4.ip_forward=1
sysctl -w net.ipv6.conf.all.forwarding=1

vmbr0 is forwarded to LXC via guest net0 and it is pingable on guest side not on host side :`(
what am im doing wrong?




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

source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

allow-hotplug eth1

iface eth1 inet static
address 173.XXX.185.106 <- Main IPs 173.XXX.185.106/29
netmask 255.255.255.248
gateway 173.XXX.185.105
broadcast 173.XXX.185.111
network 173.XXX.185.104
dns-nameservers 8.8.8.8 8.8.4.4
dns-search 32097.net
post-up echo 1 > /proc/sys/net/ipv4/conf/eth1/proxy_arp
# dns-* options are implemented by the resolvconf package, if installed

iface eth0 inet manual


//IP Aliasing does work
auto eth1:0
iface eth1:0 inet static
address 173.XXX.185.108
netmask 255.255.255.248

Scenarios

//Works(Pingable Host & Guest) but does not have any internet access.
//ping -I vmbr0 google.com => Destination Host Unreachable
auto vmbr0
iface vmbr0 inet static
address 173.XXX.185.106 <- I've tried putting main Public IP
netmask 255.255.255.248
bridge_ports none
bridge_stp off
bridge_fd 0
up ip route add 173.XXX.185.107/32 dev vmbr0
down ip route del 173.XXX.185.107/32 dev vmbr0

//Works(Pingable Host & Guest) but does not have any internet access.
//ping -I vmbr0 google.com => Destination Host Unreachable
auto vmbr0
iface vmbr0 inet static
address 173.XXX.185.105 <- I've tried putting my gateway
netmask 255.255.255.248
bridge_ports none <- I've tired eth0 eth1 All nothing
bridge_stp off
bridge_fd 0
up ip route add 173.XXX.185.107/32 dev vmbr0
down ip route del 173.XXX.185.107/32 dev vmbr0

//Works(Pingable Host & Guest) but does not have any internet access.
//ping -I vmbr0 google.com => Destination Host Unreachable
auto vmbr0
iface vmbr0 inet static
address 173.XXX.185.105 <- I've tried putting my gateway
netmask 255.255.255.248
bridge_ports none <- I've tired eth0 eth1 All nothing
bridge_stp off
bridge_fd 0



//Works(Guest) but does not have any internet access even after configured on guest.
//ping -I vmbr0 google.com => Destination Host Unreachable
auto vmbr0
iface vmbr0 inet manual
bridge_ports none <- I've tired eth0 eth1 .. nothing
bridge_stp off
bridge_fd 0




XXX is added to protect my identity :p
 
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!