启动quagga 失败

 

[root@kunpeng82 Ryu-SDN-IP]# zebra -d
[root@kunpeng82 Ryu-SDN-IP]# ps -elf | grep zebra
0 S root      1143 50677  0  80   0 -  1729 pipe_w 11:44 pts/22   00:00:00 grep --color=auto zebra
1 S quagga   36047     1  0  80   0 -   418 do_sel 03:48 ?        00:00:00 /usr/sbin/zebra -d -A 127.0.0.1 -f /etc/quagga/zebra.conf
[root@kunpeng82 Ryu-SDN-IP]# zebra -h
Usage : zebra [OPTION...]

Daemon which manages kernel routing table management and redistribution between different routing protocols.

-b, --batch        Runs in batch mode
-d, --daemon       Runs in daemon mode
-f, --config_file  Set configuration file name
-i, --pid_file     Set process identifier file name
-z, --socket       Set path of zebra socket
-k, --keep_kernel  Don't delete old routes which installed by zebra.
-C, --dryrun       Check configuration for validity and exit
-A, --vty_addr     Set vty's bind address
-P, --vty_port     Set vty's port number
-r, --retain       When program terminates, retain added route by zebra.
-u, --user         User to run as
-g, --group       Group to run as
-s, --nl-bufsize   Set netlink receive buffer size
-v, --version      Print program version
-h, --help         Display this help and exit

Report bugs to https://bugzilla.quagga.net
[root@kunpeng82 Ryu-SDN-IP]# 

 

root@ubuntu:/home/ubuntu# ps -elf | grep zebra
0 S root      7043  4763  0  80   0 -  1097 pipe_w 10:58 pts/3    00:00:00 grep --color=auto zebra
root@ubuntu:/home/ubuntu# ps -elf | grep zebra
0 S root      7050  4763  0  80   0 -  1097 pipe_w 10:58 pts/3    00:00:00 grep --color=auto zebra
root@ubuntu:/home/ubuntu# zebra -d -f /etc/quagga/sdn-ip-topology/configs/zebra.conf -z /var/run/quagga/zebrar3.api -i /var/run/quagga/zebrar3.pid
root@ubuntu:/home/ubuntu# ps -elf | grep zebra
0 S root      7055  4763  0  80   0 -  1097 pipe_w 10:58 pts/3    00:00:00 grep --color=auto zebra
root@ubuntu:/home/ubuntu# zebra -d -f /etc/quagga/sdn-ip-topology/configs/zebra.conf 
root@ubuntu:/home/ubuntu# ps -elf | grep zebra
0 S root      7063  4763  0  80   0 -  1097 pipe_w 10:59 pts/3    00:00:00 grep --color=auto zebra
root@ubuntu:/home/ubuntu# zebra -d
vty_read_config: failed to open configuration file /etc/quagga/zebra.conf: No such file or directory
can't open configuration file [/etc/quagga/zebra.conf]
root@ubuntu:/home/ubuntu# zebra -d -f /etc/quagga/sdn-ip-topology/configs/zebra.conf
root@ubuntu:/home/ubuntu# ps -elf | grep zebra
0 S root      7077  4763  0  80   0 -  1097 pipe_w 10:59 pts/3    00:00:00 grep --color=auto zebra

 

 

zebra.conf.sample
hostname gobgp1
password zebra
enable password zebra

 

root@ubuntu:/home/ubuntu# ls  /var/run/quagga/*
ls: cannot access '/var/run/quagga/*': No such file or directory
root@ubuntu:/home/ubuntu# mkdir -p  /var/run/quagga/
root@ubuntu:/home/ubuntu# chown quagga:quagga /var/run/quagga
root@ubuntu:/home/ubuntu# zebra -d -f /etc/quagga/sdn-ip-topology/configs/zebra.conf -z /var/run/quagga/zebrar3.api -i /var/run/quagga/zebrar3.pid
root@ubuntu:/home/ubuntu# ps -elf | grep zebra
1 S quagga    7110     1  0  80   0 -  1185 select 11:01 ?        00:00:00 zebra -d -f /etc/quagga/sdn-ip-topology/configs/zebra.conf -z /var/run/quagga/zebrar3.api -i /var/run/quagga/zebrar3.pid
0 S root      7114  4763  0  80   0 -  1097 pipe_w 11:01 pts/3    00:00:00 grep --color=auto zebra
root@ubuntu:/home/ubuntu# kill -9 7110  
root@ubuntu:/home/ubuntu#

 

root@ubuntu:/etc/quagga# gobgp global rib
   Network              Next Hop             AS_PATH              Age        Attrs
*> 192.168.122.0/24     0.0.0.0                                   00:00:48   [{Origin: i} {Med: 0}]
root@ubuntu:/etc/quagga# gobgp neigh
Peer               AS  Up/Down State       |#Received  Accepted
192.168.122.166 65000 00:00:51 Establ      |        0         0
root@ubuntu:/etc/quagga#

 

posted on 2020-07-12 19:46  tycoon3  阅读(731)  评论(0编辑  收藏  举报

导航