Different MAC addresses for virtual ip and WAN interface
-
Hello
This is currently my network configuration. I am using my public ip .116 for my PVE e, another public ip .118 as a NAT network for my VMs. The public ip .118 is connected to the firewall as WAN and the firewall then controls all the traffic. Now on the firewall I would like to also add the public ip address .100 as an extra WAN interface but that doesn't work because those ip's overlap because of have subnet (the subnetmasks are /26).
Code:
source /etc/network/interfaces.d/*auto lo
iface lo inet loopbackiface lo inet6 loopback
auto enp41s0
iface enp41s0 inet manualauto vmbr0
iface vmbr0 inet static
address x.x.x.116/26
gateway x.x.x.65
bridge-ports enp41s0
bridge-stp off
bridge-fd 0up route add -net x.x.x.64 netmask 255.255.255.192 gw x.x.x.65 dev vmbr0
auto vmbr1
iface vmbr1 inet static
address 172.16.x.2/24
bridge-ports none
bridge-stp off
bridge-fd 0Now I would still like to have the .118 and .100 both as WAN interface in my firewall. With what adjustments in the network configuration does this work? Should I create a separate bridge with /32 for both ip's or not? I am new to Proxmox so it is still a bit of a search.
-
@jobbedf
Why want you have the second IP on an additional interface? Simply assign it to WAN as a virtual IP.Since both need to communicate with the gateway, you need to state the correct mask for both. That's not gonna to work on different interfaces.
-
@viragomann said in Different MAC addresses for virtual ip and WAN interface:
nce both need to communicate with the gateway, you need to state the correct mask for both. That's not gonna to work on different interfaces.
Yes, I am trying that in but I think it goes wrong somewhere it the MAC addresses because I set it VirtualIP but it does not work.