frrouting命令补全 + 启动失败排查

Posted dream397

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了frrouting命令补全 + 启动失败排查相关的知识,希望对你有一定的参考价值。

Warning: connecting to nhrpd...success!
mpls.novalocal(config)# mpls ldp
% Unknown command: mpls ldp
mpls.novalocal(config)# en
mpls.novalocal# show mpls ldp neighbor
% Unknown command: show mpls ldp neighbor
mpls.novalocal# quit
[root@mpls ~]# quit
-bash: quit: command not found
[root@mpls ~]# vi /etc/f
favicon.png  firewalld/   frr/         
filesystems  fonts/       fstab        
[root@mpls ~]# cd  /etc/frr/
[root@mpls frr]# ls
babeld.conf  fabricd.conf  pbrd.conf     vrrpd.conf
bfdd.conf    isisd.conf    pimd.conf     vtysh.conf
bgpd.conf    nhrpd.conf    ripd.conf     zebra.conf
daemons      ospf6d.conf   ripngd.conf
eigrpd.conf  ospfd.conf    staticd.conf
[root@mpls frr]# vtysh

Hello, this is FRRouting (version 7.3-MyOwnFRRVersion).
Copyright 1996-2005 Kunihiro Ishiguro, et al.

mpls.novalocal# show m
mac      memory   modules  mpls     
mpls.novalocal# show mpls 
fec          pseudowires  status       table
mpls.novalocal# show mpls status
zebra is not running
mpls.novalocal# conf t
mpls.novalocal(config)# quit
mpls.novalocal# 

 

[root@mpls ~]# systemctl restart   frr
[root@mpls ~]# ps -lef | grep zebra
5 S root       81106       1  0  75  -5 - 18848 x64_sy 13:06 ?        00:00:00 /usr/lib/frr/watchfrr -d -F traditional zebra bgpd ripd ripngd ospfd ospf6d isisd babeld pimd nhrpd eigrpd pbrd staticd bfdd fabricd vrrpd
0 S root       81380    1385  0  80   0 - 55475 -      13:07 pts/0    00:00:00 grep --color=auto zebra
[root@mpls ~]#

 

 

 

[root@mpls frr-stable-7.3]# ./zebra/zebra -f /etc/frr/zebra.conf 
2020/07/19 13:08:10 errors: ZEBRA: [EC 100663303] Can‘t create pid lock file /var/run/frr/zebra.pid (Permission denied), exiting
[root@mpls frr-stable-7.3]#

  

 

[root@mpls frr-stable-7.3]# chown -R frr:frr /var/run/frr
[root@mpls frr-stable-7.3]# ./zebra/zebra -f /etc/frr/zebra.conf 
[root@mpls ~]# ps -lef | grep zebra
5 S root       81106       1  0  75  -5 - 18848 x64_sy 13:06 ?        00:00:00 /usr/lib/frr/watchfrr -d -F traditional zebra bgpd ripd ripngd ospfd ospf6d isisd babeld pimd nhrpd eigrpd pbrd staticd bfdd fabricd vrrpd
4 S frr        81532    1497  0  80   0 - 341091 x64_sy 13:09 pts/1   00:00:00 /root/frr-stable-7.3/zebra/.libs/lt-zebra -f /etc/frr/zebra.conf
0 S root       81725    1385  0  80   0 - 55475 -      13:10 pts/0    00:00:00 grep --color=auto zebra
[root@mpls ~]#
[root@mpls ~]# ps -lef | grep zebra
5 S root       81106       1  0  75  -5 - 18848 x64_sy 13:06 ?        00:00:00 /usr/lib/frr/watchfrr -d -F traditional zebra bgpd ripd ripngd ospfd ospf6d isisd babeld pimd nhrpd eigrpd pbrd staticd bfdd fabricd vrrpd
0 S root       81380    1385  0  80   0 - 55475 -      13:07 pts/0    00:00:00 grep --color=auto zebra
[root@mpls ~]# ps -lef | grep zebra
5 S root       81106       1  0  75  -5 - 18848 x64_sy 13:06 ?        00:00:00 /usr/lib/frr/watchfrr -d -F traditional zebra bgpd ripd ripngd ospfd ospf6d isisd babeld pimd nhrpd eigrpd pbrd staticd bfdd fabricd vrrpd
4 S frr        81532    1497  0  80   0 - 341091 x64_sy 13:09 pts/1   00:00:00 /root/frr-stable-7.3/zebra/.libs/lt-zebra -f /etc/frr/zebra.conf
0 S root       81725    1385  0  80   0 - 55475 -      13:10 pts/0    00:00:00 grep --color=auto zebra
[root@mpls ~]# kill -9 81532
[root@mpls ~]# systemctl restart   frr
[root@mpls ~]# ps -lef | grep frr
5 S root       81807       1  0  75  -5 - 18848 x64_sy 13:11 ?        00:00:00 /usr/lib/frr/watchfrr -d -F traditional zebra bgpd ripd ripngd ospfd ospf6d isisd babeld pimd nhrpd eigrpd pbrd staticd bfdd fabricd vrrpd
1 S frr        81870       1  0  75  -5 - 359523 x64_sy 13:11 ?       00:00:00 /usr/lib/frr/zebra -d -F traditional -A 127.0.0.1 -s 90000000
1 S frr        81874       1  0  75  -5 - 65064 x64_sy 13:11 ?        00:00:00 /usr/lib/frr/bgpd -d -F traditional -A 127.0.0.1
1 S frr        81881       1  0  75  -5 - 24934 x64_sy 13:11 ?        00:00:00 /usr/lib/frr/ripd -d -F traditional -A 127.0.0.1
1 S frr        81884       1  0  75  -5 - 24857 x64_sy 13:11 ?        00:00:00 /usr/lib/frr/ripngd -d -F traditional -A ::1
1 S frr        81887       1  0  75  -5 - 25150 x64_sy 13:11 ?        00:00:00 /usr/lib/frr/ospfd -d -F traditional -A 127.0.0.1
1 S frr        81890       1  0  75  -5 - 25008 x64_sy 13:11 ?        00:00:00 /usr/lib/frr/ospf6d -d -F traditional -A ::1
1 S frr        81893       1  0  75  -5 - 25039 x64_sy 13:11 ?        00:00:00 /usr/lib/frr/isisd -d -F traditional -A 127.0.0.1
1 S frr        81896       1  0  75  -5 - 24823 x64_sy 13:11 ?        00:00:00 /usr/lib/frr/babeld -d -F traditional -A 127.0.0.1
1 S frr        81899       1  0  75  -5 - 25081 x64_sy 13:11 ?        00:00:00 /usr/lib/frr/pimd -d -F traditional -A 127.0.0.1
1 S frr        81903       1  0  75  -5 - 26007 x64_sy 13:11 ?        00:00:00 /usr/lib/frr/nhrpd -d -F traditional -A 127.0.0.1
1 S frr        81906       1  0  75  -5 - 24933 x64_sy 13:11 ?        00:00:00 /usr/lib/frr/eigrpd -d -F traditional -A 127.0.0.1
1 S frr        81909       1  0  75  -5 - 24826 x64_sy 13:11 ?        00:00:00 /usr/lib/frr/pbrd -d -F traditional -A 127.0.0.1
1 S frr        81912       1  0  75  -5 - 24811 x64_sy 13:11 ?        00:00:00 /usr/lib/frr/staticd -d -F traditional -A 127.0.0.1
1 S frr        81915       1  0  75  -5 - 24826 x64_sy 13:11 ?        00:00:00 /usr/lib/frr/bfdd -d -F traditional -A 127.0.0.1
1 S frr        81918       1  0  75  -5 - 24940 x64_sy 13:11 ?        00:00:00 /usr/lib/frr/fabricd -d -F traditional -A 127.0.0.1
1 S frr        81921       1  0  75  -5 - 24820 x64_sy 13:11 ?        00:00:00 /usr/lib/frr/vrrpd -d -F traditional -A 127.0.0.1
0 S root       81933    1385  0  80   0 - 55475 -      13:11 pts/0    00:00:00 grep --color=auto frr
[root@mpls ~]# 
mpls.novalocal# show mpls status
MPLS support enabled: yes
mpls.novalocal# 

 

以上是关于frrouting命令补全 + 启动失败排查的主要内容,如果未能解决你的问题,请参考以下文章

每期一个小窍门(005) 如何快速排查启动失败的pod?

zabbix启动失败的排查记录

HG_REPMGR启动失败排查和状态检查步骤

HG_REPMGR启动失败排查和状态检查步骤

linux计划任务失败如何排查原因

Docker启动问题排查