Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Different MAC addresses for virtual ip and WAN interface

    HA/CARP/VIPs
    2
    3
    259
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      Jobbedf
      last edited by

      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 loopback

      iface lo inet6 loopback

      auto enp41s0
      iface enp41s0 inet manual

      auto vmbr0
      iface vmbr0 inet static
      address x.x.x.116/26
      gateway x.x.x.65
      bridge-ports enp41s0
      bridge-stp off
      bridge-fd 0

          up 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 0

      Now 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.

      V 1 Reply Last reply Reply Quote 0
      • V
        viragomann @Jobbedf
        last edited by

        @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.

        J 1 Reply Last reply Reply Quote 0
        • J
          Jobbedf @viragomann
          last edited by

          @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.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.