At the moment, we have a hardware appliance at a vendor's data center. This has a network card with several ports. The provider has given us 2 public IP addresses. We now want to use one IP and thus also one port only to reach the Proxmox system. The other IP and Port should be used in a MASQUERADE/NAT setup, so that the VMs communicate over this to the outside and we separate management and production.
Currently the configuration looks like this:
Now to the crazy part:
This is making me crazy
Currently the configuration looks like this:
Code:
[...]
iface enp1s0f0 inet manual
auto enp1s0f1
iface enp1s0f1 inet static
address XXX.XXX.XXX.XX6/XX
auto vmbr0
iface vmbr0 inet static
address XXX.XXX.XXX.XX1/XX
gateway XXX.XXX.XXX.1
bridge-ports enp1s0f0
bridge-stp off
bridge-fd 0
auto vmbr1
iface vmbr1 inet static
address 10.10.10.1/24
bridge-ports none
bridge-stp off
bridge-fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '10.10.10.0/24' -o enp1s0f1 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o enp1s0f1 -j MASQUERADE
Now to the crazy part:
- I can reach the GUI of Proxmox via both IPs.
- If I ping with the interface
enp1s0f1
I don't get an answerping -I enp1s0f1 google.com
-> 100% packet loss - If I connect a VM to the vmbr1 it does not reach the internet, the Proxmox interface (10.10.10.1) in this network can be reached via ping.
ip link show up
is saying that the state is downenp1s0f1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT
ethtool enp1s0f1
->Link detected: no
/sys/class/net/enp1s0f1/operstate
->down
ifup enp1s0f1
does not change the state of the interface
This is making me crazy