2021-03-20 SONiC 系统管理 28
静态路由配置
SONiC系统支持通过多种方式配置静态路由,包括CLI接口,基于RESTCONF/YANG方式或者gNMI接口的方式。SONiC静态路由支持IPv4和IPv6。
SONiC系统通过不同配置方式接收到的配置信息经过转换以后被存储在CONFIG DB中的STATIC_ROUTE表中,bgpcfgd daemon通过监控STATIC_ROUTE表的变化通过vtysh shell 来配置FRR,这种结构再次体现了SONiC系统以DB为中心设计的特点。
STATIC_ROUTE表定义如下:
;Defines IP static route table
;
;Status: stable
key = STATIC_ROUTE|vrf-name|prefix ;
vrf-name = 1\*15VCHAR ; VRF name
prefix = IPv4Prefix / IPv6prefix
nexthop = string; List of gateway addresses;
ifname = string; List of interfaces
distance = string; {0..255};List of distances.
Its a Metric used to specify preference of next-hop
if this distance is not set, 0 will be set to maintain the set;
nexthop-vrf = string; list of next-hop VRFs. It should be set only if ifname or nexthop IP is not
in the current VRF . The value is set to VRF name
to which the interface or nexthop IP belongs for route leaks.
blackhole = string; List of boolean; true if the next-hop route is blackholed.
tag = string; List of tag value. The tag is use to reference a route in a route map. 0 will be set to maintain the set if required.
track = string; List of track id for Internet Protocol Service Level Agreement (IP SLA). 0 will be set to maintain the set if required.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)