interfaces <interface_number>
description <interface_desc>
no shutdown
no switchport
speed <interface_speed>
duplex full
no negotiation auto
end
interface interface-number.subnumber
description <vlan_description>
encapsulation dot1q <vlanid>
ip address <subinterface_ipaddress> <subinterface_netmask>
end
ip sla <operation-number>
icmp-echo x.x.x.x<nexthop_address> source-ip x.x.x.x <source_address>
frequency <value> //Set a detection frequency
timeout <value> //Set a timeout period
ip sla schedule <operation-number> life forever start-time now
end
track <operation-number> ip sla <operation-number> reachability
end
ip route <ip_prefix> <netmask> <interface_number | vlan_id> <next_hop_ip> <name nexthop_name> <distance> <tag tag_value> track <operation-number>
Was this page helpful?