Adding IPv4 and IPv6 virtual routers to an interface
This topic describes to how to add IPv4 and IPv6 virtual routers to an interface. VRRP can only be configured on physical or VLAN interfaces. VRRP cannot be configured on hardware switch interfaces where multiple physical interfaces are combined into a hardware switch interface.
IPv4 virtual router
In this example, an IPv4 VRRP router is added to port10 on the FortiGate. The VRRP virtual router has a virtual router ID of 200, uses IP address 10.31.101.200, and has a priority of 255. Since this is the highest priority in the configuration, this interface is configured to be the primary router of the VRRP domain.
To configure the interface settings:
config system interface edit port10 config vrrp edit 200 set vrip 10.31.101.200 set priority 255 next end next end
IPv6 virtual router
In this example, an IPv6 VRRP router is added to port20 on the FortiGate. The VRRP virtual router has a virtual router ID of 220, uses IP address 2001:db8:1::12, and has a priority of 255. Since this is the highest priority in the configuration, this interface is configured to be the primary router of the VRRP domain.
To configure the interface settings:
config system interface edit port20 config ipv6 set vrip6_link_local <IPv6_address> config vrrp6 edit 220 set vrip 2001:db8:1::12 set priority 255 next end end next end