Fortinet black logo

Handbook

Configure hosts in an SNMP community

6.0.0
Copy Link
Copy Doc ID 4afb0436-a998-11e9-81a4-00505692583a:759918
Download PDF

Configure hosts in an SNMP community

When you add a host to an SNMP v1/2c community you can now decide whether the FortiGate unit will accept queries from the host or whether the FortiGate unit will send traps to the host. You can also configure the host for both traps and queries. You can add up to 16 IPv4 hosts and up to 16 IPv6 hosts.

Use the following command to add two hosts to an SNMP community:

config system snmp community

config hosts

edit 1

set interface port1

set ip 172.20.120.1

set host-type query

end

config hosts6

edit 1

set interface port6

set ip 2001:db8:0:2::30

set host-type trap

end

Configure hosts in an SNMP community

When you add a host to an SNMP v1/2c community you can now decide whether the FortiGate unit will accept queries from the host or whether the FortiGate unit will send traps to the host. You can also configure the host for both traps and queries. You can add up to 16 IPv4 hosts and up to 16 IPv6 hosts.

Use the following command to add two hosts to an SNMP community:

config system snmp community

config hosts

edit 1

set interface port1

set ip 172.20.120.1

set host-type query

end

config hosts6

edit 1

set interface port6

set ip 2001:db8:0:2::30

set host-type trap

end