# 配置物理接口interfaces <interface_number>description <interface_desc>no shutdownno switchportspeed <interface_speed>duplex fullno negotiation autoend# 配置三层子接口interface interface-number.subnumberdescription <vlan_description>encapsulation dot1q <vlanid>ip address <subinterface_ipaddress> <subinterface_netmask>end# 配置 IP SLA(NQA)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 nowend# 配置 TRACK 关联 IP SLAtrack <operation-number> ip sla <operation-number> reachabilityend# 设置静态路由并联动 trackip route <ip_prefix/netmask> <interface_number | vlan_id> <next_hop_ip> <name nexthop_name><distance> <tag tag_value> track <operation-number>
文档反馈