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

Multi physical interface with same subnet

Scheduled Pinned Locked Moved General pfSense Questions
44 Posts 7 Posters 7.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.
  • J
    johnpoz LAYER 8 Global Moderator
    last edited by Feb 27, 2018, 3:47 PM

    Huh??  Doesn't work that way..

    Change lan 2 to 192.168.20 or something..

    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.7.2, 24.11

    1 Reply Last reply Reply Quote 0
    • J
      jaf
      last edited by Feb 27, 2018, 3:57 PM Feb 27, 2018, 3:51 PM

      @johnpoz:

      Huh??  Doesn't work that way..

      Change lan 2 to 192.168.20 or something..

      I can't  :(
      My (very old) machines have fixed IP…
      I think it works at least with 2 routers with NAT, you don't think so?  :-[
      Like below.
      But with only one pfsense?

      multilan2.jpg
      multilan2.jpg_thumb

      1 Reply Last reply Reply Quote 0
      • J
        johnpoz LAYER 8 Global Moderator
        last edited by Feb 27, 2018, 4:00 PM

        Yeah you can isolate them on to different networks, and nat them into a common network.. But you have machines with the same exact IP??  That you can not change?  Sorry but my curiosity kat is meowing at that one ;)

        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.7.2, 24.11

        1 Reply Last reply Reply Quote 0
        • J
          JKnott
          last edited by Feb 27, 2018, 4:11 PM

          My (very old) machines have fixed IP…

          My network experience goes back to 1978 and on a lot of different systems.  I don't think I've ever seen something where an address couldn't be changed.  If someone actually created such a device, they should be shot for incompetence.  ;)

          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
          • J
            johnpoz LAYER 8 Global Moderator
            last edited by Feb 27, 2018, 4:24 PM

            Yeah same here.. I was working in networking and computers before there was IP… Have never seen such a thing - even in manufacturing and test equipment.

            Only thing I can think of some sort of license tied to an IP.

            I remember like it was yesterday having to go around and install tcp/ip on the windows 3.11 machines as we were moving to that from ipx/spx

            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.7.2, 24.11

            1 Reply Last reply Reply Quote 0
            • N
              NogBadTheBad
              last edited by Feb 27, 2018, 4:29 PM

              @johnpoz:

              Yeah same here.. I was working in networking and computers before there was IP

              Apollo Token Ring, IPX & Appletalk here :)

              Andy

              1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

              1 Reply Last reply Reply Quote 0
              • J
                JKnott
                last edited by Feb 27, 2018, 4:36 PM

                @NogBadTheBad:

                @johnpoz:

                Yeah same here.. I was working in networking and computers before there was IP

                Apollo Token Ring, IPX & Appletalk here :)

                The first LAN I worked on was part of the Air Canada reservation system in Toronto.  It used time division multiplexing, that is time slots, instead of packets.  A device with data to send was assigned (usually permanently) a time slot to transmit and the destination would then listen on that time slot.  There were 2 networks.  The main "TDX" ring ran 8 Mb/s over tri-axial cable and the older TDM ring, 2 Mb over coax.
                Even on that ancient equipment, it was possible to change the device address.

                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
                • J
                  jaf
                  last edited by Feb 27, 2018, 7:33 PM

                  Yes, you are right, it's possible to change the IP on these machine, but I can't as they are not mine and the owner doesn't want to. It seems complicated for him (old machine), and after use it on my network he wants to use it with this address without changing anything.

                  Any idea if it's possible to use only 1 router for this config?
                  Even if my configuration seems strange for you  :o

                  1 Reply Last reply Reply Quote 0
                  • D
                    Derelict LAYER 8 Netgate
                    last edited by Feb 27, 2018, 7:45 PM

                    How? When the router has a packet for 192.168.10.1 how is it supposed to know which interface to send it on?

                    Tell your customer what's what.

                    Chattanooga, Tennessee, USA
                    A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                    DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                    Do Not Chat For Help! NO_WAN_EGRESS(TM)

                    1 Reply Last reply Reply Quote 0
                    • J
                      jaf
                      last edited by Feb 27, 2018, 7:57 PM

                      @Derelict:

                      How? When the router has a packet for 192.168.10.1 how is it supposed to know which interface to send it on?

                      Tell your customer what's what.

                      Well, machine can't be accessed by wan or the other lan, so if the router can NAT each machine differently knowing that machine are on different lan and interface…

                      1 Reply Last reply Reply Quote 0
                      • J
                        JKnott
                        last edited by Feb 27, 2018, 7:57 PM

                        Yes, you are right, it's possible to change the IP on these machine, but I can't as they are not mine and the owner doesn't want to. It seems complicated for him (old machine), and after use it on my network he wants to use it with this address without changing anything.

                        Well, it's then your responsibility to advise him.  Wishful thinking doesn't get very far, when it contradicts reality.

                        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
                        • J
                          JKnott
                          last edited by Feb 27, 2018, 7:59 PM

                          @jaf:

                          @Derelict:

                          How? When the router has a packet for 192.168.10.1 how is it supposed to know which interface to send it on?

                          Tell your customer what's what.

                          Well, machine can't be accessed by wan or the other lan, so if the router can NAT each machine differently knowing that machine are on different lan and interface…

                          NAT still has to know which interface to use.  If the same address is on both sides, how does it work?

                          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
                          • J
                            johnpoz LAYER 8 Global Moderator
                            last edited by Feb 27, 2018, 8:08 PM

                            So let me get this right… There are more than one machine, and they both have 192.168.10.1 and you want to give them both internet access.  And you think it would be easier to run 2 pfsense boxes vs just having them change the IP of the one of these machines?

                            At a total loss here..
                            "the owner doesn't want to"

                            Then tell him he can not be on your network ;)

                            What is the relationship here - are you the customer, he is the customer?  Do you need this on your network, or does the owner?

                            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.7.2, 24.11

                            1 Reply Last reply Reply Quote 0
                            • J
                              jaf
                              last edited by Feb 27, 2018, 8:15 PM

                              @johnpoz:

                              So let me get this right… There are more than one machine, and they both have 192.168.10.1 and you want to give them both internet access.  And you think it would be easier to run 2 pfsense boxes vs just having them change the IP of the one of these machines?

                              At a total loss here..
                              "the owner doesn't want to"

                              Then tell him he can not be on your network ;)

                              What is the relationship here - are you the customer, he is the customer?  Do you need this on your network, or does the owner?

                              Yes, he is my customer, and customer is king…

                              1 Reply Last reply Reply Quote 0
                              • J
                                johnpoz LAYER 8 Global Moderator
                                last edited by Feb 27, 2018, 8:20 PM

                                He is your customer.. Why would he think he could connect to a network and not change the IP on multiple machines all having the same IP?  So while he is king, he is also mentally challenged when it comes to networking..

                                Why is the box not just dhcp?  I mean really set it to dhcp and there you go done..  You can have as many boxes then without any issue.

                                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.7.2, 24.11

                                1 Reply Last reply Reply Quote 0
                                • J
                                  JKnott
                                  last edited by Feb 27, 2018, 8:25 PM

                                  Yes, he is my customer, and customer is king…

                                  And if what he wants is impossible?  Assuming you set up NAT.  You will have 2 devices with the same IP address, but on opposite sides of it.  When the device behind NAT has traffic for it's twin on the outside, it will never leave that device, as it will assume it for itself.  When some other device has traffic for the device behind NAT, NAT will then have to decide which way to send the traffic.  It does this by comparing the destination address with the network addresses.  If both networks have the same address, there is absolutely no way for NAT to know which way to send that traffic.  What that customer wants is impossible.  King or not he has to be told and hopefully you won't lose your head!  ;)

                                  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
                                  • J
                                    johnpoz LAYER 8 Global Moderator
                                    last edited by Feb 27, 2018, 8:31 PM

                                    Its not impossible just stupid… You would have to it like he showed with different nat device for very box that wants to use 192.168.10.1 so you could nat it to a different network..

                                    Each box would have to be isolated from each other on their own network with a different nat box.  Utterly moronic...

                                    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.7.2, 24.11

                                    1 Reply Last reply Reply Quote 0
                                    • J
                                      jaf
                                      last edited by Feb 27, 2018, 8:33 PM

                                      @johnpoz:

                                      He is your customer.. Why would he think he could connect to a network and not change the IP on multiple machines all having the same IP?  So while he is king, he is also mentally challenged when it comes to networking..

                                      Why is the box not just dhcp?  I mean really set it to dhcp and there you go done..  You can have as many boxes then without any issue.

                                      Sorry, I can't give here the full context of my customer. But believe me, if I ask this question, it's because I really need this configuration. If I can do it differently, I will do!

                                      What that customer wants is impossible.  King or not he has to be told and hopefully you won't lose your head!  ;)

                                      Sorry, I don't understand why it's impossible. Do you agree it's possible at least with 2 routers?
                                      If not, I don't understand what's the purpose of lan with NAT if all lan must have strictly different subnet and address?

                                      1 Reply Last reply Reply Quote 0
                                      • J
                                        johnpoz LAYER 8 Global Moderator
                                        last edited by Feb 27, 2018, 8:40 PM

                                        You can do it - you would just need a box to nat every single box that wants to use the same address so you can put them all on different networks.

                                        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.7.2, 24.11

                                        1 Reply Last reply Reply Quote 0
                                        • J
                                          JKnott
                                          last edited by Feb 27, 2018, 8:46 PM Feb 27, 2018, 8:41 PM

                                          Sorry, I don't understand why it's impossible. Do you agree it's possible at least with 2 routers?
                                          If not, I don't understand what's the purpose of lan with NAT if all lan must have strictly different subnet and address?

                                          You need to understand how a device knows whether to use a router or direct connection to another device.  It is based on the IP address, the network address and the subnet mask.  The network address is determined by doing a logical AND of the host address and subnet mask.  This leaves only the network address.  Then, when the device wants to send traffic to another, it again uses the subnet mask to determine whether the other device is on the same network or reachable through a router.  If the other device has the same network address, it is assumed to be on the local network and the router, NAT or otherwise, will not be used.  This means that it is impossible for anything from that device to ever reach the network on the other side of the router, since both sides have the same network address.

                                          You'll have to advise your customer that what he wants is not possible.  There's no way around it.

                                          BTW, NAT was created to get around the IPv4 address shortage, though it's sometimes used to merge networks.

                                          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
                                          11 out of 44
                                          • First post
                                            11/44
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received