Fortinet black logo

OpenStack Administration Guide

Setting up the FortiGate-VM network configuration

Copy Link
Copy Doc ID 6d721014-a934-11ec-9fd1-fa163e15d75b:3275
Download PDF

Setting up the FortiGate-VM network configuration

From the FortiGate-VM instance CLI, enter the following commands to change the FortiGate-VM interfaces from DHCP to static and add IP addresses. The IP addresses assigned to the interfaces must be on the subnets of the networks that the interfaces are connected to.

config system interface

edit "port1"

set mode static

set ip 172.31.0.3 255.255.255.0

set allowaccess ping https ssh http

next

edit "port2"

set mode static

set ip 172.32.0.9 255.255.255.0

set allowaccess ping https ssh http

next

edit "port3"

set mode static

set ip 172.33.0.4 255.255.255.0

set allowaccess ping https ssh http

end

Enter the following command to add a static route:

config router static

edit 1

set gateway 172.31.0.1

set device "port1"

end

Setting up the FortiGate-VM network configuration

From the FortiGate-VM instance CLI, enter the following commands to change the FortiGate-VM interfaces from DHCP to static and add IP addresses. The IP addresses assigned to the interfaces must be on the subnets of the networks that the interfaces are connected to.

config system interface

edit "port1"

set mode static

set ip 172.31.0.3 255.255.255.0

set allowaccess ping https ssh http

next

edit "port2"

set mode static

set ip 172.32.0.9 255.255.255.0

set allowaccess ping https ssh http

next

edit "port3"

set mode static

set ip 172.33.0.4 255.255.255.0

set allowaccess ping https ssh http

end

Enter the following command to add a static route:

config router static

edit 1

set gateway 172.31.0.1

set device "port1"

end