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

No DHCP on pfSense VLAN with Cisco Smart Switch

Scheduled Pinned Locked Moved L2/Switching/VLANs
147 Posts 7 Posters 90.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.
  • C
    Cannondale
    last edited by May 24, 2023, 1:33 AM

    Update:

    Tried configuring port 20 (VLAN20) via cli to general mode.

    Roth-SG250-50P-1(config)#do sho run int ge20
    interface GigabitEthernet20
     switchport mode general
     switchport general allowed vlan add 20 untagged
     switchport access vlan 20
     switchport general pvid 20
    !
    
    Roth-SG250-50P-1(config-if)#do sho run int ge1
    interface GigabitEthernet1
     switchport mode trunk
     switchport trunk allowed vlan 10,20
    !
    

    Looked at the GUI Port VLAN Membership page, which looked ok to me.
    Couldn't upload the screenshot here do to error:parse-error.
    Here is the text version:

    F - Forbidden member	T - Tagged member	U - Untagged member	I - Inactive VLAN	P - PVID
    Interface	Mode	Administrative VLANs	Operational VLANs
    GE1	        Trunk	1UI, 10T, 20T	                10T, 20T	
    GE20	        General	20U, 20P	                20U
    

    Ran tcpdump -i igb1 -e on the pfSense box while plugging in the Linux workstation into port 20. Searched the sniffer output for "vlan" and did not find that string.

    OMG!

    1 Reply Last reply Reply Quote 0
    • M
      mvikman
      last edited by May 24, 2023, 5:46 AM

      Just a thought... the CBS-series GUI has a dropdown menu on the top right that switches between Basic and Advanced views, the Basic hides some stuff on the menus. Does the SG250 have that?

      1cbd6ac1-02d2-41ef-b11f-969f79c4a665-image.png

      pfSense Plus 24.11-RELEASE (amd64)
      Dell Optiplex 7040 SFF
      Core i5-6500, 8GB RAM, 2x 240GB SSD (ZFS Mirror)
      HPE 561T (X540-AT2), 2-port 10Gb RJ45
      HPE 562SFP+ (X710-DA2), 2-port 10Gb SFP+

      P C 2 Replies Last reply May 24, 2023, 8:42 AM Reply Quote 1
      • P
        pete35 @mvikman
        last edited by pete35 May 24, 2023, 8:52 AM May 24, 2023, 8:42 AM

        @Cannondale I did a quick configuration on a local CBS350 Switch with a tagged port from a pfsense to that switch similar the configuration you have. Requesting a DHCP address from a workstation on an acces port and dumping the traffic with tcpdump on the pfsense. Tcpdump doesn't show up any VLAN Information with tcpdump -i ix0 -e - but opening the dumpfile with wireshark shows DHCP Request and DHCP Ack to that port and to an Access port on that switch which works without any issues. Maybe you should search for DHCP in your dumpfile and not for vlan ?

        Doing a PacketCapture on the pfsense also doesn't show up (with Wireshark) any VLAN information, but the DHCP Request and Ack Sequence.

        It is not common to see Vlan tags on packet capture or tcpdump files, you need to configure the adapter for that. It looks like pfsense is not configured to show vlan tags on the interfaces for capturing.

        Im assuming that your switch doing its job correctly.

        TESTSWITCH#sh vlan
        Created by: D-Default, S-Static, G-GVRP, R-Radius Assigned VLAN, V-Voice VLAN
        Vlan Name Tagged Ports UnTagged Ports Created by


        1 1 gi1/0/5, D
        101 TEST1 gi1/0/5 gi1/0/6 S

        TESTSWITCH#sh run interface gi 1/0/5
        interface GigabitEthernet1/0/5
        switchport mode trunk
        switchport trunk allowed vlan 1,101
        !
        TESTSWITCH#sh run interface gi 1/0/6
        interface GigabitEthernet1/0/6
        switchport access vlan 101

        <a href="https://carsonlam.ca">bintang88</a>
        <a href="https://carsonlam.ca">slot88</a>

        J C 2 Replies Last reply May 24, 2023, 9:04 AM Reply Quote 0
        • J
          johnpoz LAYER 8 Global Moderator @pete35
          last edited by May 24, 2023, 9:04 AM

          @pete35 said in No DHCP on pfSense VLAN with Cisco Smart Switch:

          Tcpdump doesn't show up any VLAN Information with tcpdump -i ix0 -e

          And how is that - if your traffic is not tagged.. ?

          tagged.jpg

          It is not common to see Vlan tags on packet capture or tcpdump files

          It is when you use -e

          -e
              Print the link-level header on each dump line. This can be used, for example, to print MAC layer addresses for protocols such as Ethernet and IEEE 802.11.
          

          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

          P 1 Reply Last reply May 24, 2023, 9:42 AM Reply Quote 0
          • P
            pete35 @johnpoz
            last edited by May 24, 2023, 9:42 AM

            @johnpoz

            Showing up VLAN tags may depend on the pfsense type/version/device driver and the nic. At least within my configuration it doesnt show up any VLAN Tags. Lets check cannondales dump file again.

            <a href="https://carsonlam.ca">bintang88</a>
            <a href="https://carsonlam.ca">slot88</a>

            J D 2 Replies Last reply May 24, 2023, 9:53 AM Reply Quote 0
            • J
              johnpoz LAYER 8 Global Moderator @pete35
              last edited by johnpoz May 24, 2023, 10:11 AM May 24, 2023, 9:53 AM

              @pete35 said in No DHCP on pfSense VLAN with Cisco Smart Switch:

              type/version/device driver and the nic

              Possible.. But if it was working and sending the tags, why is his dhcp server not seeing the discover?

              For it to work, the tags have to be there - so why wouldn't basic function of tcpdump not show them?

              He is using igb interfaces - same as me. Maybe there is something with your ix interfaces, but have been using tcpdump for years.. I have never seen such an issue on all kinds of different hardware and OSes - and it for sure has worked on freebsd and pfsense going back as far as I can remember.

              edit: Just ordered a sg250-08HP off ebay.. Going to play with one of these myself.. This can not be this difficult ;) Says should be here

              Estimated delivery:
              Sat, May 27 - Tue, May 30

              Hoping for the 27th ;)

              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

              P C 2 Replies Last reply May 24, 2023, 10:41 AM Reply Quote 0
              • C
                Cannondale @mvikman
                last edited by May 24, 2023, 10:40 AM

                @mvikman
                This is what my menu looks like:

                Screenshot from 2023-05-24 06-40-01.png

                1 Reply Last reply Reply Quote 0
                • P
                  pete35 @johnpoz
                  last edited by May 24, 2023, 10:41 AM

                  @johnpoz
                  i cant imaging how this switch shouldnt do vlan tagging correctly. If its defect it wouldnt do anything. There are thousand of SGXXX switches out there, googleing for vlan tagging problems doesnt give any problems at all.

                  for the tcpdump vlan story: you see the vlan tags if running tcpdump with "-v". With "-w" it goes to a file which can be open with wireshark, vlan tags are not shown there by default.

                  <a href="https://carsonlam.ca">bintang88</a>
                  <a href="https://carsonlam.ca">slot88</a>

                  J 1 Reply Last reply May 24, 2023, 10:45 AM Reply Quote 0
                  • J
                    johnpoz LAYER 8 Global Moderator @pete35
                    last edited by johnpoz May 24, 2023, 10:46 AM May 24, 2023, 10:45 AM

                    @pete35 its quite possible he is looking at his output from tcpdump wrong? But I was quite clear on how to do it and showed examples.. Its a simple std output to the screen.

                    I am with you - there are 1000's or even 10s or 100s of thousands of these out there - if there was some issue with vlans you would think it would be easy enough to find people complaining.

                    I will have one to play with here in a few days ;) As long as it works - it will allow me to get rid of an injector using for my flex HD unifi AP have sitting on my floor in my computer room..

                    Its an open box off ebay - so you never know. But says fully operational just missing couple of the rubber feet on the bottom ;)

                    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

                    P 2 Replies Last reply May 24, 2023, 11:04 AM Reply Quote 0
                    • P
                      pete35 @johnpoz
                      last edited by pete35 May 24, 2023, 6:24 PM May 24, 2023, 11:04 AM

                      @johnpoz

                      I would really like to know the issue here. CBS350 or Catalyst 1000 is the better modern choice for this switches. SG250 is really old in terms of Cisco switches. Most of the models arent supported anymore by new firmware versions. Vlans are are working for pfsense and also for this Cisco switch. So there must be a issue between them or on layer 8 maybe.

                      <a href="https://carsonlam.ca">bintang88</a>
                      <a href="https://carsonlam.ca">slot88</a>

                      J 1 Reply Last reply May 24, 2023, 11:19 AM Reply Quote 0
                      • C
                        Cannondale @pete35
                        last edited by May 24, 2023, 11:09 AM

                        Thanks for your efforts pete35! Very interesting information.
                        Not familiar with wireshark. Will install it and see what I can find.

                        I did check the pfSense DHCP log for DHCPREQUEST on the vlan20 IP but don't see anything. Just the entry for "Listening on BPF/igb1"

                        1 Reply Last reply Reply Quote 0
                        • P
                          pete35 @johnpoz
                          last edited by May 24, 2023, 11:10 AM

                          @johnpoz @Cannondale

                          pls reboot that switch:

                          393b7dae-4799-4e45-bab2-e0defb11f3fe-image.png

                          <a href="https://carsonlam.ca">bintang88</a>
                          <a href="https://carsonlam.ca">slot88</a>

                          1 Reply Last reply Reply Quote 0
                          • J
                            johnpoz LAYER 8 Global Moderator @pete35
                            last edited by johnpoz May 24, 2023, 11:20 AM May 24, 2023, 11:19 AM

                            @pete35 said in No DHCP on pfSense VLAN with Cisco Smart Switch:

                            anymore by new firmware versions

                            The sg250 seems to have gotten a firmware release quite recent.

                            firmware.jpg

                            My own sg300 hasn't had one since 18-Jun-2020

                            Pretty sure he has rebooted - since I know he changed firmwares at one point, 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.8, 24.11

                            1 Reply Last reply Reply Quote 0
                            • M
                              mvikman
                              last edited by mvikman May 24, 2023, 11:25 AM May 24, 2023, 11:25 AM

                              He originally had the latest firmware installed

                              Roth-SG250-50P-1
                              v2.5.9.16 / RCBS3.1_930_871_10
                              

                              Also his latest "show tech" shows that firmware 2.5.9.16 is active

                              ------------------ show version ------------------
                              Active-image: flash://system/images/image_tesla250_hybrid_2.5.9.16_release_cisco_signed.bin
                                Version: 2.5.9.16
                                MD5 Digest: c1f283dd662260f1532ef8cb26158014
                                Date: 27-Feb-2023
                                Time: 16:57:47
                              Inactive-image: flash://system/images/SG250-50P-Firmware_Backup_v2.4.0.94-image1-20230428.bin
                                Version: 2.4.0.94
                                MD5 Digest: 6f5be217100f34929986f2e93dd2d5e9
                                Date: 31-May-2018
                                Time: 02:39:58
                              

                              pfSense Plus 24.11-RELEASE (amd64)
                              Dell Optiplex 7040 SFF
                              Core i5-6500, 8GB RAM, 2x 240GB SSD (ZFS Mirror)
                              HPE 561T (X540-AT2), 2-port 10Gb RJ45
                              HPE 562SFP+ (X710-DA2), 2-port 10Gb SFP+

                              C J 2 Replies Last reply May 24, 2023, 11:35 AM Reply Quote 0
                              • C
                                Cannondale @mvikman
                                last edited by May 24, 2023, 11:35 AM

                                @mvikman said in No DHCP on pfSense VLAN with Cisco Smart Switch:

                                He originally had the latest firmware installed

                                Confirmed the latest fw is active.

                                Screenshot from 2023-05-24 07-35-03.png

                                1 Reply Last reply Reply Quote 0
                                • J
                                  johnpoz LAYER 8 Global Moderator @mvikman
                                  last edited by May 24, 2023, 11:42 AM

                                  @mvikman yeah he has gone to older firmware at one point

                                  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
                                  • C
                                    Cannondale @johnpoz
                                    last edited by May 24, 2023, 12:09 PM

                                    @johnpoz said in No DHCP on pfSense VLAN with Cisco Smart Switch:

                                    Just ordered a sg250-08HP off ebay

                                    You're a stand up guy for going the extra mile johnpoz!
                                    No need to spend your money to help solve my problem!
                                    PM me and let me know how much it was so that I can reimburse you.

                                    P 1 Reply Last reply May 24, 2023, 12:21 PM Reply Quote 0
                                    • P
                                      pete35 @Cannondale
                                      last edited by May 24, 2023, 12:21 PM

                                      @Cannondale
                                      i tought the same. Johnpoz is great.

                                      can you post the whole page of the vlan 10 interface configuration on the firewall ?

                                      <a href="https://carsonlam.ca">bintang88</a>
                                      <a href="https://carsonlam.ca">slot88</a>

                                      C 1 Reply Last reply May 24, 2023, 12:36 PM Reply Quote 0
                                      • D
                                        Derelict LAYER 8 Netgate @pete35
                                        last edited by May 24, 2023, 12:26 PM

                                        If you pcap on the parent interface you will see all the VLAN tags there along with all traffic on all VLANs. If you pcap on the VLAN interface you will not see the tags.

                                        I sometimes create unnumbered pfSense interfaces on the parent (IPv4 and IPv6 set to None) just so I can pcap there.

                                        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)

                                        P 1 Reply Last reply May 24, 2023, 12:44 PM Reply Quote 0
                                        • C
                                          Cannondale @pete35
                                          last edited by May 24, 2023, 12:36 PM

                                          @pete35 said in No DHCP on pfSense VLAN with Cisco Smart Switch:

                                          can you post the whole page of the vlan 10 interface configuration on the firewall ?

                                          vlan10 is configured for access mode on ge24
                                          vlan20 is configured for general mode on ge20

                                          Screenshot from 2023-05-24 08-33-22.png

                                          Screenshot from 2023-05-24 08-33-55.png

                                          P 1 Reply Last reply May 24, 2023, 12:55 PM Reply Quote 0
                                          101 out of 147
                                          • First post
                                            101/147
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received