Fortinet black logo

Configure address/subnet

Copy Link
Copy Doc ID f815156d-f108-11e9-8977-00505692583a:24290
Download PDF

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

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