如何在Fortigate CLI的Port1上设置IP地址?

时间:2019-11-28 10:34:08

标签: firewall web-application-firewall windows-firewall-api fortigate

1:我想在Fortinet Fortigate CLI的Port1上设置IP地址,但是每次遇到以下错误时 IP地址是非法的 值解析“ 255.255.255.0”之前的错误 我正在尝试使用类似Set IP 192.168.176.0 255.255.255.0的命令 2:我已经尝试了很多,但未能弄清此问题的原因

3 个答案:

答案 0 :(得分:0)

配置端口1的IP地址和网络掩码。

例如:

config system interface
    edit port1
        set ip 192.168.0.100 255.255.255.0
    end

答案 1 :(得分:0)

默认情况下,Fortigate的所有接口都处于DHCP模式。因此,您需要将其设置为静态,并允许访问要在其中使用的协议。

这里要注意的另一件事是,如果您尝试将192.168.176.0/24分配给接口,则该IP地址无效,因为它是网络地址。

尝试,在命令下方,

system config interface
  edit port1
    set mode static
    set allowaccess ping http https ssh telnet
    set ip 192.168.176.1/24
    end

答案 2 :(得分:0)

您想将“ 192.168.176.0/24”配置为FortiGate接口的ip地址:

  • 网络IP为192.168.176.0/24 = 192.168.176.0
  • 第一个可用 IP 192.168.176.0/24 = 192.168.176.1
  • 最近可用的IP地址为192.168.176.0/24 = 192.168.176.254
  • 广播IP 192.168.176.0/24 = 192.168.176.255

您不能将网络IP地址配置为接口ip。而是使用可用 ip。

system config interface
  edit port1
    set mode static
    set allowaccess ping https ssh
    set ip 192.168.176.1/24
  next
end