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

Routing to internal VLANs on switch

Scheduled Pinned Locked Moved Routing and Multi WAN
16 Posts 4 Posters 1.4k 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
    jarush
    last edited by Mar 16, 2019, 1:26 AM

    OK, I just removed the upstream gateway from the OPT1 interface. I do have the gateway created and the routes for the downstream networks, however, I still can't get to those downstream networks from hosts using the pfsense as the default gateway.
    Attached screenshots of the gw and static routes.
    0_1552699578626_gw.png 0_1552699589919_static gw.png

    1 Reply Last reply Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator
      last edited by johnpoz Mar 16, 2019, 1:31 AM Mar 16, 2019, 1:27 AM

      What PART do not get about not setting a gateway On the freaking interface!!

      0_1552699879431_gatewayfordownstream.png

      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
        jarush
        last edited by Mar 16, 2019, 2:17 AM

        Apparently the core concept. In your response, are you telling me the screenshots are the way that I shouldn't be configuring it, or should? That is the way it is currently configured (with my pfsense side being 10.0.0.2 and downstream gateway being 10.0.0.1).

        By Interface, I assumed you mean the interface that I see when I go to Interfaces -> OPT1. There is no upstream gateway set there. On the edit gateway screen, if I don't put anything in the gateway field, it says "dynamic". I don't understand how this is supposed to work if I don't tell PFsense what the downstream router IP address is.

        My assumption, which is obviously wrong, is that I have to configure an interface on PFsense (interfaces -> OPT1) and then tell PFsense what the downstream router IP address is (System -> Routing -> Gateways), and then create a static route to tell PFsense to use this new gateway when going to certain networks. The routing table on the box seems to indicate that the way I have it configured is correct -
        10.168.20.0/24 10.0.0.1 UGS ix0

        And ifconfig shows the configured 10.0.0.2 IP address on ix0.

        Can you tell me what I'm doing wrong? The current state is that the system is configured as you show above (again, with my pfsense interface being 10.0.0.2 and downstream being 10.0.0.1)

        J 1 Reply Last reply Mar 16, 2019, 9:24 AM Reply Quote 0
        • D
          Derelict LAYER 8 Netgate
          last edited by Mar 16, 2019, 7:10 AM

          0_1552720239742_pfSense-Layer-3-Switch.png

          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
            johnpoz LAYER 8 Global Moderator @jarush
            last edited by johnpoz Mar 16, 2019, 9:31 AM Mar 16, 2019, 9:24 AM

            @jarush said in Routing to internal VLANs on switch:

            Can you tell me what I'm doing wrong?

            Dude I gave you a freaking picture of how to do it - how can you not understand this basic concept??

            So I flipped IPs in my picture - sorry... But come on who cares which side .1 or .2 is on... The point is NO gateway on the interface!!! This is the 4th time stating this..

            Normally is the upstream router that would have the lower number..

            Again if you put the gateway on the INTERFACE!!! Pfsense thinks is a WAN!! And will now NAT to this ip, etc. You do not want that! Its not a wan, its a transit to a downstream router.. That is not public. Since its a "lan" interface there is not gateway set on the interface.

            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
              jarush
              last edited by Mar 16, 2019, 12:24 PM

              I do not have a gateway specified on the interface.
              0_1552738742823_464a09fd-d6fe-4727-b781-1eb2674f9cda-image.png

              I do have a gateway set on the routing -> gateways -> edit.
              0_1552738819720_6a2cd064-7be0-4b6a-ac8c-a5213f3e4fb1-image.png

              0_1552738952052_746a6205-b933-4021-992b-31ed246dc205-image.png

              0_1552738988925_f49b923b-76fd-4231-917b-6737bb5e638e-image.png

              I made my settings look like yours last night prior to posting my response.

              1 Reply Last reply Reply Quote 0
              • J
                johnpoz LAYER 8 Global Moderator
                last edited by Mar 16, 2019, 2:09 PM

                Ok then do a traceroute from client on your host network to your vlan network 10.168.20.1 interface

                Does this hit
                12.1, then 0.1 as hops

                If you can get your 20.1 interface, but not client on 20.x then you have a problem on the host? (firewall?) Or you host in 20.x is not using 20.1 ?

                On your firewall rules on lan and op1 are you forcing a gateway in the rules? If so your overriding pfsense routing tables.

                Your L3 should have either default route pointing to 0.0.2 or specific routes to your 10.168.12 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.7.2, 24.11

                1 Reply Last reply Reply Quote 0
                • J
                  jarush
                  last edited by Mar 21, 2019, 1:33 AM

                  Sorry for the delayed response, was traveling.

                  Ended up being the firewall. Had the rule in but it wasn't working - unclear why as all I did was move it above another pass rule - maybe the rules just needed to be reloaded.

                  Appreciate the patience.

                  1 Reply Last reply Reply Quote 0
                  • D
                    Derelict LAYER 8 Netgate
                    last edited by Mar 21, 2019, 1:39 AM

                    Rules are processed top down. First match stops processing. If you examine the rule set you will probably see why the more-specific rule needed to be higher.

                    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
                      jarush
                      last edited by Mar 21, 2019, 5:08 AM

                      But they were all pass rules - I have no deny rules explicitly defined.

                      1 Reply Last reply Reply Quote 0
                      • J
                        johnpoz LAYER 8 Global Moderator
                        last edited by Mar 21, 2019, 10:25 AM

                        f you route traffic out a gateway hard to get to your other vlan, etc..

                        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
                        • M
                          marvosa
                          last edited by marvosa Mar 25, 2019, 8:49 AM Mar 25, 2019, 8:36 AM

                          Derelict already explained this with his pic, but I'll add some specifics.

                          1. "System -> Routing -> Static Routes" should have a static route for all networks behind the Nexus with a gateway of 10.0.0.1 (Looks like this is done)
                          2. "System -> Routing -> Gateways" should have an entry on OPT1 with a Gateway of 10.0.0.1 (Looks like this is done)
                          3. Assuming you've enabled routing on the Nexus, remove the VLAN2 you created, re-configure e1/49 as a routed port then give it an IP of 10.0.0.1/30
                          4. Configure a default route (not a default-gateway) on your Nexus with the next hop of 10.0.0.2

                          That's it. I'm running this exact same setup at home. Just to reiterate what's on pic, all hosts behind the Nexus need to be using the IP configured on the SVI of each VLAN as their default gateway in order for the routing to work. You will also need to add helper addresses to each VLAN interface in order to provide DHCP behind the Nexus.

                          1 Reply Last reply Reply Quote 0
                          16 out of 16
                          • First post
                            16/16
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                            This community forum collects and processes your personal information.
                            consent.not_received