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

    can just switch an intrface for LAN?

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    3 Posts 2 Posters 466 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
      aihysp
      last edited by

      so i have my own build for PFsnese with 3 NICs
      and the LAN is only 100MB

      i have a spare NIC with 1000MB

      can i just switch the interface in the console , and all settings of lan will be remmberd ?

      or i will lose config?

      What is the right way to approch this?
      thanks!

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @aihysp
        last edited by Gertjan

        @aihysp said in can just switch an intrface for LAN?:

        What is the right way to approch this?

        This : Diagnostics > Backup & Restore and backup your config.
        If you have issues, a simple restore will take you back.

        I would install the space NIC.
        In pfSense, assign it as a third interface, by default called "OPT1".

        Now, backup your config.
        Using an editor like Notepad++ , you will find :

        <interfaces>
        	<wan>
        		<if>em0</if>
        		<disableftpproxy></disableftpproxy>
        		.....
        	</wan>
        	<lan>
        		<if>em1</if>
        		<bandwidth>100</bandwidth>
        		<bandwidthtype>Mb</bandwidthtype>
        		<enable></enable>
        		<descr><![CDATA[LAN]]></descr>
        		<spoofmac></spoofmac>
        		<ipaddr>192.168.1.1</ipaddr>
        		<subnet>24</subnet>
        		<ipaddrv6>2001:xxxx:1f13:5c0:2::1</ipaddrv6>
        		<subnetv6>64</subnetv6>
        	</lan>
        	<opt1>
        		<if>em2</if>
        		<descr><![CDATA[Portal]]></descr>
        		<spoofmac></spoofmac>
        		<enable></enable>
        		<ipaddr>192.168.2.1</ipaddr>
        		<subnet>24</subnet>
        	</opt1>
        

        Change <lan> and </lan> for <opt1> and </opt1> and vis-versa.
        Put the new <opt1> </opt1> block behind the new <lan> </lan> block.
        Import the config.
        Done.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        A 1 Reply Last reply Reply Quote 1
        • A
          aihysp @Gertjan
          last edited by

          @gertjan

          very cool :)

          even better then going to the console

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