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

    Unable to ping between lan and opt

    Scheduled Pinned Locked Moved Routing and Multi WAN
    40 Posts 6 Posters 2.8k 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.
    • B
      bgksdfol @johnpoz
      last edited by

      @johnpoz It is 0.0.0.0 so I am going to assume not

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

        @bgksdfol said in Unable to ping between lan and opt:

        It is 0.0.0.0 so I am going to assume not

        That would default destination - but the IP, ie the gateway is what when you do a route -n

        See my above screenshot from my pi..

        My gateway is 192.168.3.253, which is pfsense IP on that vlan. if you don't your gateway pointing to pfsense IP on this network, then no your never going to ping anything off its network, nor would you be able to answer anything coming from another 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

        B 1 Reply Last reply Reply Quote 0
        • B
          bgksdfol @johnpoz
          last edited by

          @johnpoz The Destination is 40.0
          Gateway is 0.0.0.0
          mask is 255.255.255.0

          How do I correct the gateway?

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

            @bgksdfol why don't you just set the pi to get its IP via dhcp?

            Pretty sure that is the default, if you want your pi to always have the same IP - you can just easy set a reservation in pfsense dhcp server. Is that what you did and you put in some gateway there?

            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

            B 1 Reply Last reply Reply Quote 0
            • B
              bgksdfol @johnpoz
              last edited by bgksdfol

              @johnpoz So the pi is getting a static ip from the OPT dhcp server. I am not sure how to set a gateway in the DHCP server

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

                @bgksdfol so you setup a reservation there.

                so for example here is reservation for my pi

                gateway.jpg

                The gateway should be left black, so it defaults to telling the client to use the pfsense IP on that network as its gateway. Did you put something in there? like 40.0 ?

                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

                B 1 Reply Last reply Reply Quote 0
                • B
                  bgksdfol @johnpoz
                  last edited by

                  @johnpoz The gateway field is empty on both the lan and opt dhcp server

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

                    @bgksdfol well then something wrong with your pi - if you plug in a laptop or pc to that network do you get the correct gateway?

                    Can we see the output of your route -n?

                    destination of 0.0.0.0 is correct for default route.. That should have gateway pointing to the IP address of pfsense on this network, which I take is x.x.40.1 (btw there is zero reason to hid rfc1918 space..

                    If your gateway says its 40.0 then that is wrong, but I don't see how pfsense would of handed that out?? You could of maybe overridden the dhcp settings on the pi?

                    Notice my output from above - gateway of 0.0.0.0 is correct for the local network, in my case 192.168.3.0..

                    iproute.jpg

                    default route (destination) 0.0.0.0 points to my pfsense IP 192.168.3.253 on this network.

                    the route to get to the network my pi is on 192.168.3.0/24 (see the mask 255.255.255.0) would 0.0.0.0

                    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

                    B 1 Reply Last reply Reply Quote 0
                    • B
                      bgksdfol @johnpoz
                      last edited by

                      @johnpoz firewall2.png

                      V johnpozJ 2 Replies Last reply Reply Quote 0
                      • V
                        viragomann @bgksdfol
                        last edited by

                        @bgksdfol
                        I read recently a post here, where a Pi didn't obey the gateway from the DHCP server.
                        Try to set it static.
                        Found this: https://raspberrypi.stackexchange.com/questions/57655/fixing-gateway-on-dhcp-connection-raspberry-raspbian

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

                          @bgksdfol ah - yeah never going anywhere without a default gateway.. Never had any issues with my pi's have run many of them over the years currently 2 of them running..

                          What OS are you running on them?

                          Mine are both running

                          pi@pi-ntp:~ $ cat /etc/os-release 
                          PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
                          NAME="Raspbian GNU/Linux"
                          VERSION_ID="10"
                          VERSION="10 (buster)"
                          VERSION_CODENAME=buster
                          ID=raspbian
                          ID_LIKE=debian
                          HOME_URL="http://www.raspbian.org/"
                          SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
                          BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
                          pi@pi-ntp:~ $ 
                          

                          haven't looked at @viragomann link yet - but that might have a work around..

                          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

                          B 1 Reply Last reply Reply Quote 0
                          • B
                            bgksdfol @johnpoz
                            last edited by

                            @johnpoz said in Unable to ping between lan and opt:

                            Mine are both running

                            Debain 7 (wheezy)
                            It is an old raspberry 2

                            1 Reply Last reply Reply Quote 0
                            • B
                              bgksdfol @viragomann
                              last edited by

                              @viragomann This didn't seem to change the route

                              V johnpozJ 2 Replies Last reply Reply Quote 0
                              • V
                                viragomann @bgksdfol
                                last edited by

                                @bgksdfol said in Unable to ping between lan and opt:

                                This didn't seem to change the route

                                You didn't have a real route before, you only had your the own subnet connection on the Pi.

                                Can you ping the other pfSense interface IP now? And also the devices in the other subnet?

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

                                  @bgksdfol you should be able to manually add the default route with that command given in the link.

                                  Taking a look here
                                  https://www.raspberrypi.com/software/operating-systems/

                                  You should be able to run the 32bit version of bullseye on any pi.. now I am trying to remember why I didn't update to bullseye when it came out??? I think it had something to do with the gps ntp server running on one of them.. But why didn't I update the other one??

                                  Hmmm - guess I got something to do tmrw ;) Maybe next weekend, I don't think I have any spare sds laying around.. That is why prob didn't do it, and just never got around to ordering them.. I got them setup exactly how I like, so like having a backup on sd so can just put the backup sd in and get back to exactly how I was..

                                  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

                                  B 1 Reply Last reply Reply Quote 0
                                  • B
                                    bgksdfol @johnpoz
                                    last edited by bgksdfol

                                    @johnpoz said in Unable to ping between lan and opt:

                                    You should be able to run the 32bit version of bullseye on any pi.. now I am trying to remember why I didn't update to bullseye when it came out??? I think it had something to do with the gps ntp server running on one of them.. But why didn't I update the other one??

                                    I don't think it is the pi. I just swapped the pi out with a windows machine, and the windows pin timed out.
                                    Is there something beyond setting the allow all firewall rules I should have done?

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

                                      @bgksdfol said in Unable to ping between lan and opt:

                                      Is there something beyond setting the allow all firewall rules I should have done?

                                      No - your saying your windows machine didn't get an IP from dhcp at all, and ended up with 169.254.x.x address - or did it not get a gateway either?

                                      In windows you can look with ipconfig -all

                                      $ ipconfig -all
                                      
                                      Windows IP Configuration
                                      
                                         Host Name . . . . . . . . . . . . : i9-win
                                         Primary Dns Suffix  . . . . . . . : local.lan
                                         Node Type . . . . . . . . . . . . : Broadcast
                                         IP Routing Enabled. . . . . . . . : No
                                         WINS Proxy Enabled. . . . . . . . : No
                                         DNS Suffix Search List. . . . . . : .
                                      
                                      Ethernet adapter Local:
                                      
                                         Connection-specific DNS Suffix  . : local.lan
                                         Description . . . . . . . . . . . : Killer E2600 Gigabit Ethernet Controller
                                         Physical Address. . . . . . . . . : B0-4F-13-0B-FD-16
                                         DHCP Enabled. . . . . . . . . . . : Yes
                                         Autoconfiguration Enabled . . . . : Yes
                                         IPv4 Address. . . . . . . . . . . : 192.168.9.100(Preferred)
                                         Subnet Mask . . . . . . . . . . . : 255.255.255.0
                                         Lease Obtained. . . . . . . . . . : Thursday, February 2, 2023 10:45:14 PM
                                         Lease Expires . . . . . . . . . . : Monday, February 6, 2023 10:45:14 PM
                                         Default Gateway . . . . . . . . . : 192.168.9.253
                                         DHCP Server . . . . . . . . . . . : 192.168.9.253
                                         DNS Servers . . . . . . . . . . . : 192.168.3.10
                                         NetBIOS over Tcpip. . . . . . . . : Enabled
                                      

                                      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

                                      B 1 Reply Last reply Reply Quote 0
                                      • B
                                        bgksdfol @johnpoz
                                        last edited by bgksdfol

                                        @johnpoz It didn't get a gateway either
                                        Edit: just checked. Lan is asigning a default gateway, opt isn't

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

                                          @bgksdfol and this windows machine wasn't setup for a reservation, it would just get IP out of the pool..

                                          And in your normal dhcp settings for gateway - it is blank as well, you don't have say none in there? Or maybe a space? Wonder if that could mess it up?

                                          dhcp.jpg

                                          Your running 22.05 or 2.6 on this sg1100, your not running some snapshot or dev version?

                                          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

                                          B 1 Reply Last reply Reply Quote 0
                                          • B
                                            bgksdfol @johnpoz
                                            last edited by

                                            @johnpoz
                                            It just gets allocated a static ip by the router.
                                            The space in gateway is blank
                                            22.05 release
                                            In some way this is validating that I wasn't going insane, and really was banging my head against the brick wall for a month.

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