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

    Is 2 NIC on one LAN on 2 different switch doable?

    Scheduled Pinned Locked Moved L2/Switching/VLANs
    14 Posts 4 Posters 1.5k Views
    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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator @NogBadTheBad
      last edited by

      @nogbadthebad said in Is 2 NIC on one LAN on 2 different switch doable?:

      Maybe draw a diagram of your setup.

      This!!! Why would traffic flowing between vms have anything to do with your physical network? So while yes your vms would go through your physical switch to get to your internet.. Not sure how your interVM traffic would effect that or be affected by your traffic to your physical world that it should matter.

      You an always put your VMs on a different vswitch.. A drawing would help us all make sure we are on the same page in trying to figure out where you think you might have a bottleneck.

      An intelligent man is sometimes forced to be drunk to spend time with his fools
      If you get confused: Listen to the Music Play
      Please don't Chat/PM me for help, unless mod related
      SG-4860 24.11 | Lab VMs 2.8, 24.11

      F 1 Reply Last reply Reply Quote 0
      • F
        FrAllard
        last edited by

        Thanks for your input, but one switch is physical and the other one is virtual, so no stacking available, this is why after reading a little more I figured out that LAGG was not a viable candidate. I'm looking into simple bridging and rely on STP. I'll draw a diagram in a minute.

        Here is the diagram where you can see the actual working setup and what I want to add.
        alt text

        johnpozJ 1 Reply Last reply Reply Quote 0
        • johnpozJ
          johnpoz LAYER 8 Global Moderator @FrAllard
          last edited by johnpoz

          @frallard said in Is 2 NIC on one LAN on 2 different switch doable?:

          I'm looking into simple bridging and rely on STP.

          That is NOT going to be the best solution that is for damn sure!

          Edit: This drawing isn't making a lot of sense.. Your vms are on what network this virtual lan of your is what for network 192.168.0/24 And that is tied to your pfsense (virtual router) that has a different lan tied to this physical network via different switch? Your doing this why... Why would you not just have both of these physical nics connected to your vswitch with pfsense having just a vnic into this vswitch?

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.8, 24.11

          1 Reply Last reply Reply Quote 0
          • F
            FrAllard @johnpoz
            last edited by

            @nogbadthebad said in Is 2 NIC on one LAN on 2 different switch doable?:
            Why would traffic flowing between vms have anything to do with your physical network?

            It would not I know.

            So while yes your vms would go through your physical switch to get to your internet.. Not sure how your interVM traffic would effect that or be affected by your traffic to your physical world that it should matter.

            I have a VM that record OTA using 2 ATSC tuner that are on the physical side of things going into the virtual network. I have a VM that run my security camera that receive constant stream from the security cameras. This traffic on the physical link to my virtual lan prevent my VMs to get full Internet speed. I know it would not matter if my Internet were a 100 Mbps, but I get 1 Gbps and I would like mu VMs to get the best speed possible on Internet without impacting the physical link to my LAN.

            You an always put your VMs on a different vswitch.. A drawing would help us all make sure we are on the same page in trying to figure out where you think you might have a bottleneck.

            The drawing is created in the previous post.

            1 Reply Last reply Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator
              last edited by johnpoz

              Tie interfaces to the vswitch, connect pfsense lan to this vswitch and your vms on this vswitch = done.. Not understanindg why you have pfsense directly tied to the physical interface tied to the same lan??

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.8, 24.11

              1 Reply Last reply Reply Quote 0
              • F
                FrAllard
                last edited by FrAllard

                Then my physical workstation would never be able to reach 1 Gbps because the physical link to virtual lan is busy with the traffic from the network cameras and ATSC tuners when in use and other traffic that flow from virtual to physical. I know because it was setup like you said. using iperf3 on the router I would get around 750 mbps while only all virtual and using Direct I/O I can do 950 mbps. I understand that the problem I have is only because my Internet connection is this fast, I would never have that problem if I had a reasonable Internet speed. I do know it is sooo overkill to have gigabit at home, but hey my ISP was proposing 50 Mbps or Gigabit for 10$ more per month. Nothing in between.

                I have Multi-Link Trunking (Etherchannel) between my switch and ESXi, but that doesn't double the bandwidth, it distributes it. I was affected by the flowing traffic from physical to virtual when trying to reach maximum speed from my PC.

                So I tough that there must be a way to present both leg to pfSense without going into a routing nightmare of having a subnet for virtual and an other for physical...

                Bridging the two NIC would simply create kind of a switch inside pfSense for the LAN and then the 3 switches (pfSense bridge, vSwitch and pSwitch) connected together in triangle would hopefully figure out how to talk to each other and hopefully optimize where to send traffic...

                I know, I know, I hear it : "hopefully" is really wishful thinking... But I don'T know about how STP works and how efficient it is at doing that...

                Just trying to get the most out of my setup!

                johnpozJ 1 Reply Last reply Reply Quote 0
                • JKnottJ
                  JKnott @FrAllard
                  last edited by

                  @frallard said in Is 2 NIC on one LAN on 2 different switch doable?:

                  and then rely on arp for the "decision" making of which nic to send packets to in order to reach the destination more efficiently?

                  ARP doesn't do that. All it does is determine the MAC address for an IP address.

                  I'm looking into simple bridging and rely on STP. I'll draw a diagram in a minute.

                  STP determines the best available layer 2 path to the root switch. Why do you think it would work here? Unless there is some change in the network configuration, that best path will not change. If I'm reading your diagram correctly, you want a connection between the VLAN and V3router. Unless that path is the lowest cost to the root switch, it will never be used. The STP root is determined by lowest priority and lowest MAC address. Where is that in your diagram?

                  PfSense running on Qotom mini PC
                  i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                  UniFi AC-Lite access point

                  I haven't lost my mind. It's around here...somewhere...

                  F 1 Reply Last reply Reply Quote 0
                  • F
                    FrAllard @JKnott
                    last edited by

                    @jknott
                    Thanks for your insight! I obviously don't know how to do it and this is why I'm asking for advise here. I was sharing my tough process and I can see now that it was flawed. From what I can understand, what I'm looking to do is not doable the way I want it to work. So I'll choose the way that work best for my need, so I'll stick to leaving the router connected to the physical switch using Direct I/O, because this is what gave me the best performance and have my VMs go back and forth on the switch to get to the WAN; they aren't the ones needing the most traffic anyway.

                    1 Reply Last reply Reply Quote 0
                    • F
                      FrAllard
                      last edited by FrAllard

                      This is what I ended up doing. Instead of trying the impossible, I created a virtual network DMZ. My router along with all my VMs, where I added a new nic, share this network. I changed the gateway configuration and my goal was reached. My local computers don't have to go through the router to get to the VMs and the VMs can benefit from having a virtual connection to the router all in virtual. My router has a forth dimension now! It lives in the virtual world and it also has physical assets that connects it to the real world.

                      1 Reply Last reply Reply Quote 0
                      • johnpozJ
                        johnpoz LAYER 8 Global Moderator @FrAllard
                        last edited by johnpoz

                        @frallard said in Is 2 NIC on one LAN on 2 different switch doable?:

                        I do know it is sooo overkill to have gigabit at home

                        What? Gig is the MIN anyone should have at home... Anything else would be watching paint dry.. Shit I would have 10ge if wasn't so expensive ;)

                        I currently run 2 x1 ge interfaces on my PC and my Nas so I can use smb3 multichannel when moving files to and from my PC.. So vs the 113MBps I see 220MBps.

                        . 0_1538821092090_220.png

                        That's a copy of 8GB file -- so no gig is NOT overkill by any means at all. Being limited to 100mbps at home would be like being force to go back to dial up internet.

                        As to not reaching 1ge.. You would have both interfaces into your vswitch - so you would have 2 x 1ge connection that could be set for loadsharing. So no you wouldn't be limited to the 1ge with multiple sessions.

                        An intelligent man is sometimes forced to be drunk to spend time with his fools
                        If you get confused: Listen to the Music Play
                        Please don't Chat/PM me for help, unless mod related
                        SG-4860 24.11 | Lab VMs 2.8, 24.11

                        JKnottJ 1 Reply Last reply Reply Quote 0
                        • JKnottJ
                          JKnott @johnpoz
                          last edited by

                          @johnpoz said in Is 2 NIC on one LAN on 2 different switch doable?:

                          Being limited to 100mbps at home would be like being force to go back to dial up internet.

                          Also, more and more gear now supports Gb, so might as well use it.

                          PfSense running on Qotom mini PC
                          i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                          UniFi AC-Lite access point

                          I haven't lost my mind. It's around here...somewhere...

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