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

    Restore VLAN Interface IP On New Hardware

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    4 Posts 2 Posters 1.9k 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.
    • A Offline
      abeauchamp
      last edited by

      Good afternoon,

      I am setting up a replacement Netgate APU 4 to replace a older desktop that was running pfSense with 3 NICs.

      NICs 1 and 2 were standard interfaces with static WAN IP addresses set on them. NIC 3 had 3 VLAN interfaces assigned to it but not standard interface because I was always told it wasn't right to have tagged and untagged on the same interface on pfSense. The VLANs are 10, 30, and 200, and assigned the IP 10.0.10.X, 10.0.30.X, and 10.0.200.X respectively.

      When I backed up the config and restored it to the new Netgate I am able to reassign the interfaces and the WAN and WAN 2 interfaces to RE0 and RE1 respectively. I am also able to create the 3 VLANs with parent interface RE2, but there is no way to assign an IP address to these interfaces from the CLI.

      This leaves me in a bit of bind trying to access the Web Interface. What is the correct way to assign IP addresses to these VLANs on parent interface RE2?

      Thank you.

      1 Reply Last reply Reply Quote 0
      • DerelictD Offline
        Derelict LAYER 8 Netgate
        last edited by

        Looks like there might be a problem in 2.1.5:

        I have 5 active vlan interfaces on em0 on this router right now.

        I get this when I select 1 to assign interfaces:

        
        Enter an option: 1
        
        grep: write error: Broken pipe
        grep: write error: Broken pipe
        
        Valid interfaces are:
        
        re0   00:30:18:ad:7e:4f   (up) 
        em0   00:30:18:a4:ec:72   (up) 
        em1   00:30:18:a4:ec:73   (up) 
        em2   00:30:18:a4:ec:74   (up) 
        ovpns220293075   (up) 
        ovpnc1914887   (up) 
        
        Do you want to set up VLANs first? 
        
        

        After creating the VLANS the interfaces (re2_vlan10, etc) should be available for assignment.

        Do you get the same grep errors?

        I would just set the LAN interface to re3 using the CLI, allow it to do basic out-of-the-box DHCP, connect a laptop and configure the VLANS and assign your interfaces using the GUI.

        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
        • DerelictD Offline
          Derelict LAYER 8 Netgate
          last edited by

          And all of your config should still be there.  It's simply a matter of assigning the right vlan interface to the pfSense interface.

          I know when you restore a config in the GUI and this occurs there's a procedure it makes you go through to create the vlans and perform the assignment.  I don't know what the CLI does.

          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
          • A Offline
            abeauchamp
            last edited by

            When I go to restore from the GUI, I am running 2.1.4 BTW, I assign all the interfaces correctly and then click save.  The firewall proceeds to reboot and then hangs.  If I connect to the console, I see that it is stuck at an interface assignment prompt.

            It asks me if I want to configure VLANs and I select N and then it prints out my current correct VLAN assignments.  It then asks for WAN interface assignment which I already did in GUI.  I set it to re1 any way and then hit enter to not configure any more interfaces.

            It then loads to the CLI menu and only shows the WAN interface as being setup.

            Any way I can manually edit a file to set the correct assignment?

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