firewall - 如何在 Fortigate CLI 中的接口上设置 IP 地址?
问题描述
我想在 Fortinet Fortigate CLI 的 Port1 上设置 IP 地址。
我正在尝试使用以下命令:
set ip 192.168.176.0 255.255.255.0
但我在 255.255.255.0 之前收到以下错误:
IP地址非法值解析错误
我已经尝试了很多,但未能理解这个问题背后的原因。
解决方案
默认情况下,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
推荐阅读
- c# - 将模型动态绑定到网格 (UWP)
- node.js - 猫鼬实例方法。导致类型错误。找不到方法
- python - Spark DF 的 Groupby 和 xtract 聚合中值
- sql - SQL Server 轮函数问题
- javascript - 使用 C# 使用 HTML 敏捷包从 div 获取内容
- python - Python:从数学模型中查找常数以重建测量数据
- flutter - 在 vs 代码中选择颤振小部件的键盘快捷键
- javascript - TypeError:无法读取未定义的属性“缓存” - 需要修复
- python - 检查列表中的列的说明
- r - 对连续变量进行分箱,然后用 ggplot 对其进行可视化不会重现教科书中的示例?