Fortinet black logo

Administration Guide

Subnet

Subnet

A subnet address object is usually used to refer internal networks or addresses which are defined by the network administrator.

A subnet address usually consists of a network address and a netmask, for example, 192.168.1.0 255.255.255.0. In this example, the network address is 192.168.1.0 and the netmask is 255.255.255.0. The network address defines the network to match and the netmask specify the IP address to match on the network.

In the above example, the subnet address 192.168.1.0 255.255.255.0 would match the following IP addresses:

192.168.1.1
192.168.1.2
192.168.1.3
...
192.168.1.255

For defining a subnet address object the valid format of IP address and netmask could be either:

x.x.x.x/x.x.x.x, such as 192.168.1.0/255.255.255.0

or

x.x.x.x/x, such as 192.168.1.0/24

Note

To define a single address using subnet, use the netmask 255.255.255.255 or /32. A warning message will be shown if any other netmask is used and will not let the user save the address object.

To create a subnet address:
  1. Go to Policy & Objects > Addresses.

  2. Select Create New > Address.

  3. In the Category field, select Address.

  4. Enter a Name for the address object.

  5. In the Type field, select Subnet from the dropdown menu.

  6. In the IP/Netmask field, enter the address and subnet mask according to the format x.x.x.x/x.x.x.x or the short hand format of x.x.x.x/x

  7. In the Interface field, leave as the default any or select a specific interface from the dropdown menu.

  8. Enable/disable Static route configuration.

  9. Enter any additional information in the Comments field.

  10. Click OK.

Subnet

A subnet address object is usually used to refer internal networks or addresses which are defined by the network administrator.

A subnet address usually consists of a network address and a netmask, for example, 192.168.1.0 255.255.255.0. In this example, the network address is 192.168.1.0 and the netmask is 255.255.255.0. The network address defines the network to match and the netmask specify the IP address to match on the network.

In the above example, the subnet address 192.168.1.0 255.255.255.0 would match the following IP addresses:

192.168.1.1
192.168.1.2
192.168.1.3
...
192.168.1.255

For defining a subnet address object the valid format of IP address and netmask could be either:

x.x.x.x/x.x.x.x, such as 192.168.1.0/255.255.255.0

or

x.x.x.x/x, such as 192.168.1.0/24

Note

To define a single address using subnet, use the netmask 255.255.255.255 or /32. A warning message will be shown if any other netmask is used and will not let the user save the address object.

To create a subnet address:
  1. Go to Policy & Objects > Addresses.

  2. Select Create New > Address.

  3. In the Category field, select Address.

  4. Enter a Name for the address object.

  5. In the Type field, select Subnet from the dropdown menu.

  6. In the IP/Netmask field, enter the address and subnet mask according to the format x.x.x.x/x.x.x.x or the short hand format of x.x.x.x/x

  7. In the Interface field, leave as the default any or select a specific interface from the dropdown menu.

  8. Enable/disable Static route configuration.

  9. Enter any additional information in the Comments field.

  10. Click OK.