USG6300路由表和实际静态配置的默认路由不一致

发布时间:  2014-12-30 浏览次数:  236 下载次数:  0
问题描述
一台USG6300,路由表中看到的默认等价路由比实际静态配置的默认路由要多。

设备上配置的默认等价路由是2条。
[USG6630]display current-configuration  | in ip route                          
17:16:35  2014/12/20                                                           
ip route-static 0.0.0.0 0.0.0.0 GigabitEthernet1/0/11 42.x.y.1              
ip route-static 0.0.0.0 0.0.0.0 GigabitEthernet1/0/10 110.x.y.1            
ip route-static 10.0.0.0 255.0.0.0 Eth-Trunk0 10.x.y.249                      
......

而路由表中却有3条默认等价路由,是怎么回事?
[USG6630]display  fib                                                          
17:16:20  2014/12/20                                                           
Fib Flags: B - blackhole, D - dynamic, G - gateway, H - host, S - static       
           U - up                                                              
------------------------------------------------------------------------------ 
FIB Table:                                                                    
Total number of Routes : 19                                                   
                                                                               
Destination/Mask   Nexthop         Flag TimeStamp     Interface       TunnelID 
......    
0.0.0.0/0          42.x.y.1      GSU  t[1205956]    GE1/0/11        0x0      
0.0.0.0/0          110.x.y.1     GSU  t[1205956]    GE1/0/10        0x0      
0.0.0.0/0          210.x.y.173   GSU  t[1205956]    GE1/0/0         0x0    
告警信息
处理过程
1 仔细检查配置,发现接口下有没有配置gateway的功能。
[USG6630]display  current-configuration  interface                             
17:22:34  2014/12/20                                                           
......
#                                                                     
interface GigabitEthernet1/0/0                                                 
alias Cernet                                                                  
ip address X.X.X.X  255.255.255.252                                      
service-manage http permit                                                    
service-manage https permit                                                   
service-manage ping permit                                                    
service-manage ssh permit                                                     
service-manage snmp permit                                                    
service-manage telnet permit                                                  
gateway 210.x.y.173                                               
根因

gateway命令用来配置智能选路成员接口的网关地址。

当接口作为智能选路成员接口时,必须为其配置网关地址。设备会下发路由表项,但是不会自动生成路由配置命令(ip route-static)。  
解决方案
正常现象。当接口作为智能选路成员接口时,必须为其配置网关地址。设备会下发路由表项。
建议与总结

END