To support virtual inline mode, a router must forward incoming as well as outgoing WAN traffic to the SD-WAN appliance. After the appliance processes the traffic, the router must forward the incoming traffic from the appliance to the LAN and the outgoing traffic from the appliance to the WAN. You have to configure policy based rules to avoid routing loops. In addition, the router must monitor the health of the appliance so that the appliance can be bypassed if it fails .
If the router supports the Reverse Path Forwarding feature, you must disable the feature on the interfaces with policies to redirect traffic to a SD-WAN appliance, including the interface that is connected to the appliance. Otherwise, the router intermittently drops traffic. By default, the Reverse Path Forwarding feature is enabled on the router.
In the virtual inline mode, the packet forwarding methods can create routing loops if the routing rules do not distinguish between a packet that has been forwarded by the appliance and one that has not. You can use any method that makes that distinction.
A typical method involves dedicating one of the Ethernet ports of the router to the appliance and creating routing rules based on the Ethernet port on which packets arrive. Packets that arrive on the interface dedicated to the appliance are never forwarded back to the appliance, but packets arriving on any other interface can be.
If the appliance fails, data should not be routed to it. By default, Cisco policy based routing does not perform health monitoring. To enable health monitoring, define a rule to monitor the availability of the appliance, and specify the "verify-availability" option for the "set ip next-hop" command. With this configuration, if the appliance is not available, the route is not applied, and the appliance is bypassed.
Following is an example of a rule for monitoring the availability of the appliance by using Cisco Router model 7600 with IOS Software version:
!- Use a ping (ICMP echo) to see if appliance is in the connected track 123 rtr 1 reachability ! rtr 1 type echo protocol IpIcmpecho 17.17.17.2 schedule 1 life forever start-time now
This rule pings the appliance at 17.17.17.2 periodically. You can test against 123 to see if the unit is up.
Following is an example of configuring a Cisco router for virtual inline mode:
! ! For health-checking to work, do not forget to start ! the monitoring process. ! ! Original configuration is in normal type. ! appliance-specific configuration is in bold. ! ip cef ! interface FastEthernet0/0 ip address 10.200.51.0 255.255.255.0 ip policy route-map server_side_map ! interface FastEthernet0/1 ip address 17.17.17.1 255.255.255.0! interface FastEthernet1/0 ip address 192.168.1.5 255.255.255.0 ip policy route-map wan_side_map ! ip classless ip route 0.0.0.0 0.0.0.0 171.68.1.1 ! ip access-list extended server_side permit ip 10.100.51.0 0.0.0.255 10.20.20.0 0.0.0.255 ip access-list extended wan_side permit ip 10.20.20.0 0.0.0.255 10.100.51.0 0.0.0.255 ! route-map wan_side_map permit 20 match ip address wan_side !- Now set the appliance as the next hop, if it’s up. set ip next-hop verify-availability 17.17.17.1 20 track 123 ! route-map client_side_map permit 10 match ip address client_side set ip next-hop verify-availability 17.17.17.1 10 track 123
This example applies an access list to a route map and attaches the route map to an interface. The access lists identify all traffic originating at one accelerated site and terminating at the other (A source IP address of 10.100.51.0/24 and destination IP address of 10.20.20.0/24 or vice versa). See your router's documentation for the details of access lists and route-maps.
! ip access-list extended server_side permit tcp 10.200.51.0 0.0.0.255 10.20.20.0 0.0.0.255 ip access-list extended wan_side permit tcp 10.20.20.0 0.0.0.255 10.200.51.0 0.0.0.255 !
To configure high availability between routers, see the router-specific high availably configuration manual.