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> //设置探测频率
timeout <value> //设置超时时间
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>
本页内容是否解决了您的问题?