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

    Несколько IP на одном интерфейсе

    Scheduled Pinned Locked Moved Russian
    7 Posts 4 Posters 1.1k 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.
    • I Offline
      iacsvrn
      last edited by

      На старом шлюзе прописано вот так:

      
      auto eth11
      
      iface eth11 inet static
          address  192.168.2.100
          netmask  255.255.255.0
          broadcast  192.168.2.255
      
      iface eth11 inet static
          address 192.168.144.3
          netmask 255.255.255.0
      
      iface eth11 inet static
          address 10.36.1.2
          netmask 255.255.255.0
      
      auto eth11:0
      iface eth11:0 inet static
          address  192.168.2.2
          netmask  255.255.255.0
          broadcast  192.168.2.255
      
      auto eth11:1
      iface eth11:1 inet static
          address  192.168.2.3
          netmask  255.255.255.0
          broadcast  192.168.2.255
      
      

      А как это реализовывается в pfsense? Через Virtual IP`s? Нормально будет работать маршрутизация?

      1 Reply Last reply Reply Quote 0
      • P Offline
        pigbrother
        last edited by

        Firewall: Virtual IP Addresses?

        1 Reply Last reply Reply Quote 0
        • I Offline
          iacsvrn
          last edited by

          @pigbrother:

          Firewall: Virtual IP Addresses?

          Нормально будет работать маршрутизация?

          1 Reply Last reply Reply Quote 0
          • P Offline
            pigbrother
            last edited by

            @iacsvrn:

            @pigbrother:

            Firewall: Virtual IP Addresses?

            Нормально будет работать маршрутизация?

            Не проверял.
            Использовал для экспериментов с Outbound NAT, работало.

            1 Reply Last reply Reply Quote 0
            • P Offline
              pigbrother
              last edited by

              Virtual IP в выводе ifconfig выглядит так:

              re0: flags=8843 <up,broadcast,running,simplex,multicast>metric 0 mtu 1500
                      options=8209b <rxcsum,txcsum,vlan_mtu,vlan_hwtagging,vlan_hwcsum,wol_magic,linkstate>ether 00:хх:хх:хх:хх:хх
                      inet6 fe80::ххc:c0ff:хххх:3976%re0 prefixlen 64 scopeid 0x1
                      inet 10.0.2.111 netmask 0xffffff00 broadcast 10.0.2.255
                      inet 10.12.12.12 netmask 0xffffff00 broadcast 10.12.12.255
                      nd6 options=21 <performnud,auto_linklocal>media: Ethernet autoselect (100baseTX <full-duplex>)
                      status: active

              10.12.12.12  - Virtual IP</full-duplex></performnud,auto_linklocal></rxcsum,txcsum,vlan_mtu,vlan_hwtagging,vlan_hwcsum,wol_magic,linkstate></up,broadcast,running,simplex,multicast>

              1 Reply Last reply Reply Quote 0
              • N Offline
                nikodim74
                last edited by

                Работают все функции

                pf_sence.jpg
                pf_sence.jpg_thumb

                1 Reply Last reply Reply Quote 0
                • werterW Offline
                  werter
                  last edited by

                  Под каждым пунктом в Virtual ip написано, что будет работать, а что - нет.

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