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

    Scanning/Connecting for/to hosts with static IPs from wrong subnet

    General pfSense Questions
    3
    3
    422
    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.
    • V
      Volans
      last edited by

      Hi everybody,

      I have a tricky problem:

      I had two LAN subnets on two physical ethernet ports (10.25.0.0/24 and 10.30.0.0/24).
      Unfortunately I had to switch those subnets. 10.25.0.0/24 became 10.30.0.0/24 and vice versa.

      99% of all devices are DHCP clients and obtained IPs from the new subnets. But 1% had static IPs and are not reachable anymore. My problem is now that I can't simply configure a virtual IP on the interface and scan for remaining devices or establish an SSH tunnel to them, because there is already a route for this subnet in the routing table that points to the wrong/old interface.

      I tried to temporarily deactivate one of the interfaces and wanted to configure a static route to the other, but under static routes I can't choose a LAN interface.

      Do you guys have another idea how I could manage to connect to them somehow? Unfortunately I'm remote..

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

        @volans can you remote to one of the devices on the network that did change its IP, and then you could use that with a vip or alternate IP to connect to all the device that are on the old IP range.

        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
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          You don't want a static route here because pfSense would have an interface in that subnet not access it via some other gateway on the LAN. You would disable the other interface then add back that subnet as a VIP on the existing interface so both subnets now exist on that interface. Obviously you would need to remove that to be able to re-enable the other interface.

          Steve

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