Fortinet white logo
Fortinet white logo

Admin Guide (Standalone)

Configure address/subnet

Configure address/subnet

Use the following commands to specify the IP address/subnet to which you can apply firewall policies.

CLI command

Description

config network address

Enters network IP address configuration mode.

edit <name>

Specify the name of the IP address configuration object.

set type {ipmask | iprange}

Select either address type:

  • ipmask—IPv4 address/mask in the format: x.x.x.x/x
  • iprange—IP addresses range.
Example address/mask configurations:

config firewall address

edit internet

set type ipmask

set subnet 0.0.0.0/0

next

edit src

set type iprange

set start-ip 192.168.2.3

set end-ip 192.168.2.4

next

end

Configure address/subnet

Configure address/subnet

Use the following commands to specify the IP address/subnet to which you can apply firewall policies.

CLI command

Description

config network address

Enters network IP address configuration mode.

edit <name>

Specify the name of the IP address configuration object.

set type {ipmask | iprange}

Select either address type:

  • ipmask—IPv4 address/mask in the format: x.x.x.x/x
  • iprange—IP addresses range.
Example address/mask configurations:

config firewall address

edit internet

set type ipmask

set subnet 0.0.0.0/0

next

edit src

set type iprange

set start-ip 192.168.2.3

set end-ip 192.168.2.4

next

end