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

    LAN with two IP Network.

    Scheduled Pinned Locked Moved General pfSense Questions
    30 Posts 5 Posters 2.7k 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.
    • R
      ramses.sevilla
      last edited by

      Hi everyone,

      I have configured the LAN interface in the IP Network 192.168.1.0/24 and all work fine.

      But now I need to configure in LAN the IP Network 192.168.5.0/24 too.

      I have added the 192.168.5.1/24 (Firewall > Virtual IP > IP Alias) associated to LAN Interface and a rule to LAN Interface permiting any IPv4.

      I have configured a PC with the 192.168.5.10/24 and 192.168.5.1 as gateway.

      The problem is that I can't do Ping from the 192.168.1.10 to 192.168.5.10 and viceversa, but I can do Ping to 192.168.5.1.

      What am I doing wrong?

      What would I need to do to forward from 192.168.1.0/0 IP Network to 192.168.5.0/24 IP Network.

      Regards

      JKnottJ 1 Reply Last reply Reply Quote 0
      • kiokomanK
        kiokoman LAYER 8
        last edited by kiokoman

        check again the gateway for 192.168.5.10, it must be 192.168.5.1
        there is really nothing else to do, if firewall rules are ok it should work. use packet capture to check the traffic

        also routing table on pfsense should be similar to this

        192.168.5.0/24	link#2	U	11	1500	vmx0	
        192.168.5.1	link#2	UHS	0	16384	lo0
        

        ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
        Please do not use chat/PM to ask for help
        we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
        Don't forget to Upvote with the 👍 button for any post you find to be helpful.

        R 1 Reply Last reply Reply Quote 0
        • JKnottJ
          JKnott @ramses.sevilla
          last edited by

          @ramses-sevilla

          While it is possible to have 2 subnets on the same network, as you found out, you can't ping from one subnet to the other. In order to do that, you have to pass through a router, such a pfsense. But when you do that, it will send an ICMP redirect, telling to go directly, but you can't do that, as the subnet mask, etc. won't allow 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
          • kiokomanK
            kiokoman LAYER 8
            last edited by kiokoman

            @JKnott i tested it a moment ago on my test-lab and it work ...

            Immagine.jpg

            Immagine2.jpg

            ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
            Please do not use chat/PM to ask for help
            we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
            Don't forget to Upvote with the 👍 button for any post you find to be helpful.

            R JKnottJ 2 Replies Last reply Reply Quote 0
            • R
              ramses.sevilla @kiokoman
              last edited by

              @kiokoman said in LAN with two IP Network.:

              check again the gateway for 192.168.5.10, it must be 192.168.5.1
              there is really nothing else to do, if firewall rules are ok it should work. use packet capture to check the traffic

              also routing table on pfsense should be similar to this

              192.168.5.0/24	link#2	U	11	1500	vmx0	
              192.168.5.1	link#2	UHS	0	16384	lo0
              

              Hi @kiokoman,

              I have verified the Gateway in the PC with the IP 192.168.5.10/24 and It's 192.168.10.1 (IP Allias in the pfSense) but don't works.

              Regards

              1 Reply Last reply Reply Quote 0
              • kiokomanK
                kiokoman LAYER 8
                last edited by kiokoman

                the gateway for 192.168.5.10 should be 192.168.5.1, not 192.168.10.1, was it a typo?
                anyway maybe you have another firewall on that pc ? windows firewall must be disabled or configured to accept the 192.168.10.0/24 network and vice versa
                you are actually on another subnet so windows firewall think it's an outside network and it will block it

                ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                Please do not use chat/PM to ask for help
                we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                Don't forget to Upvote with the 👍 button for any post you find to be helpful.

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

                  @ramses-sevilla said in LAN with two IP Network.:

                  But now I need to configure in LAN the IP Network 192.168.5.0/24 too.

                  Your trying to run 2 L3 networks on the same L2? Sorry but Borked!! While technically possible - it is pointless.. You are not providing any security what so ever there since the network are not isolated. So just put them all on the same L3 network. If you have more devices than a /24 is viable for - then use a /23 or /22, etc.

                  Makes no sense to complex up a network for some sort of perceived isolation - when there isn't any.. Either actually isolate your networks and route/firewall between them - or put them all on the same network.

                  If you want to have 2 network and firewall between them, then use vlan. Or use physically isolated networks via another interface and dumb switches for each network.

                  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

                  R 1 Reply Last reply Reply Quote 0
                  • R
                    ramses.sevilla @kiokoman
                    last edited by

                    Hi @kiokoman,

                    It has been a typo

                    No, the 192.168.5.10 and the 192.168.1.10 don't have Firewalls.

                    Regards

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

                      There is no point to what your doing other then complexing up what is simple.. If your not going to firewall between these networks then there is no point to what your doing - put them all on the same network.

                      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
                      • R
                        ramses.sevilla @johnpoz
                        last edited by

                        @johnpoz said in LAN with two IP Network.:

                        @ramses-sevilla said in LAN with two IP Network.:

                        But now I need to configure in LAN the IP Network 192.168.5.0/24 too.

                        Your trying to run 2 L3 networks on the same L2? Sorry but Borked!! While technically possible - it is pointless.. You are not providing any security what so ever there since the network are not isolated. So just put them all on the same L3 network. If you have more devices than a /24 is viable for - then use a /23 or /22, etc.

                        Makes no sense to complex up a network for some sort of perceived isolation - when there isn't any.. Either actually isolate your networks and route/firewall between them - or put them all on the same network.

                        If you want to have 2 network and firewall between them, then use vlan. Or use physically isolated networks via another interface and dumb switches for each network.

                        Hi @johnpoz,

                        Thanks, I know, in this case I only need the pfSense for routing purposes.

                        Regards,

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

                          For why? Your devices are on the same network... There is no point to routing between devices that are on the same network... Your arbitrarily making it complex when there is no point to it.

                          Why should you bounce traffic off pfsense to talk to a box on the same physical network as you.. Your just making your network slower, more complex and not providing anything.. Its a complete and utter waste of time to even be discussing this..

                          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
                          • R
                            ramses.sevilla @kiokoman
                            last edited by

                            @kiokoman said in LAN with two IP Network.:

                            @JKnott i tested it a moment ago on my test-lab and it work ...

                            Immagine.jpg

                            Immagine2.jpg

                            Hi @johnpoz,

                            It doesn't work for me. I don't know why... :-(

                            Regards

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

                              Good it doesn't work for you - because its NONSENSE!

                              Its like you came here and asking people how to best hit yourself in the head with a hammer.

                              There is zero point to doing what your asking to do - ZERO.. The only possible time it might make sense is you were in the middle of wanting to migrate to a different address scheme.. Where this would be temp work around until you can change all devices to be on the new network space.

                              What exactly do you feel this will accomplish.

                              Pros = NONE
                              Cons

                              1. Slower network, since now all traffic between devices on the 2 different address schemes that are actually on the same physical network will be hairpinned off your router interface.
                              2. Can not run dhcp for either network
                              3. Provides no actual security
                              4. Provides no broadcast or multicast isolation - all devices will still see all broadcasts.
                              5. More complex - as you can see, you can not even get it to work..

                              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

                              R 1 Reply Last reply Reply Quote 0
                              • kiokomanK
                                kiokoman LAYER 8
                                last edited by kiokoman

                                I was just proving that it works, I was not debating the fact that it's borked and nonsense, people sometimes want the answer without any questions. I would had suggested a VLAN if the op had told us for what was that configuration need for 🙄

                                ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                                Please do not use chat/PM to ask for help
                                we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                                Don't forget to Upvote with the 👍 button for any post you find to be helpful.

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

                                  @kiokoman said in LAN with two IP Network.:

                                  people sometimes want the answer without any questions

                                  Those people should use google ;)

                                  Technically you can do it sure - but it makes no sense.. You could also put ketchup on your ice cream - but why would you want too ;)

                                  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
                                  • stephenw10S
                                    stephenw10 Netgate Administrator
                                    last edited by

                                    Most commonly this is blocked because rules for 'LANnet' do not include the new subnet, you have to add rules to pass that.

                                    However you say you don't have any firewall rules. Have you actually disabled pf?

                                    Steve

                                    1 Reply Last reply Reply Quote 0
                                    • R
                                      ramses.sevilla
                                      last edited by

                                      Sorry, sorry and sorry, I made a newbie error...

                                      I had the same network on another pfSense interface... :-(

                                      Now It works fine.

                                      Regards and sorry again.

                                      1 Reply Last reply Reply Quote 0
                                      • R
                                        ramses.sevilla @johnpoz
                                        last edited by

                                        @johnpoz sorry, It's for tests purposes.

                                        This network only will have one host sporadically...

                                        Regards

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

                                          Well put that host on the actual network.. What are you trying to "test"?

                                          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

                                          R 1 Reply Last reply Reply Quote 0
                                          • R
                                            ramses.sevilla @johnpoz
                                            last edited by

                                            @johnpoz sometimes I need connect a device that send me from another network to test it and I can't change it the IP address.

                                            Because that, I simulate that the device is in the remote network creating a IP Alias as the gateway in the remote network.

                                            Regards

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