Fortinet white logo
Fortinet white logo

CLI Reference

7.2.2

config firewall address

config firewall address

Configure IPv4 addresses.

Syntax

config firewall address
    edit <name>
        set cache-ttl {integer}
        set comment {var-string}
        set end-ip {ipv4-address-any}
        set fqdn {string}
        set start-ip {ipv4-address-any}
        set subnet {ipv4-classnet-any}
        set type [ipmask|iprange]
    next
end

Parameters

Parameter

Description

Type

Size

Default

cache-ttl

Defines the minimal TTL of individual IP addresses in FQDN cache measured in seconds.

integer

Minimum value: 0 Maximum value: 86400

0

comment

Comment.

var-string

Maximum length: 255

end-ip

Final IP address (inclusive) in the range for the address.

ipv4-address-any

Not Specified

0.0.0.0

fqdn

Fully Qualified Domain Name address.

string

Maximum length: 255

name

Address name.

string

Maximum length: 79

start-ip

First IP address (inclusive) in the range for the address.

ipv4-address-any

Not Specified

0.0.0.0

subnet

IP address and subnet mask of address.

ipv4-classnet-any

Not Specified

0.0.0.0 0.0.0.0

type

Type of address.

option

-

ipmask

Option

Description

ipmask

Standard IPv4 address with subnet mask.

iprange

Range of IPv4 addresses between two specified addresses (inclusive).

config firewall address

config firewall address

Configure IPv4 addresses.

Syntax

config firewall address
    edit <name>
        set cache-ttl {integer}
        set comment {var-string}
        set end-ip {ipv4-address-any}
        set fqdn {string}
        set start-ip {ipv4-address-any}
        set subnet {ipv4-classnet-any}
        set type [ipmask|iprange]
    next
end

Parameters

Parameter

Description

Type

Size

Default

cache-ttl

Defines the minimal TTL of individual IP addresses in FQDN cache measured in seconds.

integer

Minimum value: 0 Maximum value: 86400

0

comment

Comment.

var-string

Maximum length: 255

end-ip

Final IP address (inclusive) in the range for the address.

ipv4-address-any

Not Specified

0.0.0.0

fqdn

Fully Qualified Domain Name address.

string

Maximum length: 255

name

Address name.

string

Maximum length: 79

start-ip

First IP address (inclusive) in the range for the address.

ipv4-address-any

Not Specified

0.0.0.0

subnet

IP address and subnet mask of address.

ipv4-classnet-any

Not Specified

0.0.0.0 0.0.0.0

type

Type of address.

option

-

ipmask

Option

Description

ipmask

Standard IPv4 address with subnet mask.

iprange

Range of IPv4 addresses between two specified addresses (inclusive).