• 启动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
    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#
  • 相关阅读:
    day 12 元组的魔法
    day 12 列表的魔法,及灰魔法
    day 11 Python课上练习解释与基础知识练习题试题一
    day 11 rang的用法和练习
    day 10 字符串的魔法
    day1 Python可变与不可变类型
    day1 数据类型
    Math对象
    Calendar对象
    Date对象
  • 原文地址:https://www.cnblogs.com/dream397/p/13289576.html
Copyright © 2020-2023  润新知