Fortinet Document Library

Version:


Table of Contents

OpenStack Administration Guide

7.0.0
Download PDF
Copy Link

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