• SDN-IP-Ryu(二)


    Will try to reconnect to 10.10.10.1 after 30 secs: True
    Will try to reconnect to 10.10.10.1 after 30 secs: True
    Will try to reconnect to 10.10.10.1 after 30 secs: True
    Will try to reconnect to 10.10.10.1 after 30 secs: True
    Will try to reconnect to 10.10.10.1 after 30 secs: True
    Will try to reconnect to 10.10.10.1 after 30 secs: True
    Will try to reconnect to 10.10.10.1 after 30 secs: True
    Will try to reconnect to 10.10.10.1 after 30 secs: True
    root@ubuntu:/data1/root/ryu/SDN-IP-Ryu/Ryu-SDN-IP/sdnip# ps -elf | grep zebra
    0 S root     13759  2403  0  80   0 -  1097 pipe_w 13:47 pts/0    00:00:00 grep --color=auto zebra
    zebra -d -f /etc/quagga/sdn-ip-topology/configs/zebra.conf -z /var/run/quagga/zebrar3.api -i /var/run/quagga/zebrar3.pid'
    # ls /var/run/quagga/
    ls: cannot access '/var/run/quagga/': No such file or directory
    root@ubuntu:/data1/root/ryu/SDN-IP-Ryu/sdn-ip-topology# ps -elf | grep zebra
    0 S root     17421  5889  0  80   0 -  1097 pipe_w 13:49 pts/1    00:00:00 grep --color=auto zebra
    root@ubuntu:/data1/root/ryu/SDN-IP-Ryu/sdn-ip-topology# ps -elf | grep quagga
    0 S root     17423  5889  0  80   0 -  1097 pipe_w 13:49 pts/1    00:00:00 grep --color=auto quagga
    root@ubuntu:~# whereis quagga
    quagga: /usr/lib/quagga /etc/quagga
    root@ubuntu:~# whereis zebra
    zebra: /usr/sbin/zebra /usr/share/man/man8/zebra.8.gz
    root@ubuntu:~# 
    root@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:~# ps -elf | grep zebra
    0 S root     17446  2403  0  80   0 -  1097 pipe_w 13:56 pts/0    00:00:00 grep --color=auto zebra
    root@ubuntu:~#

    root@ubuntu:~# chown -R quagga:quagga /var/run/quagga/
    can't open configuration file [/etc/quagga/zebra.conf] root@ubuntu:~# ls root@ubuntu:~# zebra -d -f /etc/quagga/sdn-ip-topology/configs/zebra.conf -z /var/run/quagga/zebrar3.api -i /var/run/quagga/zebrar3.pid ls: invalid option -- 'z' Try 'ls --help' for more information. root@ubuntu:~# ls root@ubuntu:~# zebra -d -f /etc/quagga/sdn-ip-topology/configs/zebra.con -z /var/run/quagga/zebrar3.api -i /var/run/quagga/zebrar3.pid ls: invalid option -- 'z' Try 'ls --help' for more information. root@ubuntu:~#
    root@ubuntu:~# mkdir -p /var/log/quagga
    root@ubuntu:~# chown quagga:quagga /var/log/quagga
    root@ubuntu:~#

    root@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:~# ps -elf | grep zebra
    1 S quagga   17495     1  0  80   0 -  1185 select 14:04 ?        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     17497  2403  0  80   0 -  1097 pipe_w 14:04 pts/0    00:00:00 grep --color=auto zebra
    root@ubuntu:~# 
    Enable IPv4 and IPv6 Unicast Forwarding:
    echo "net.ipv4.conf.all.forwarding=1" | sudo tee -a /etc/sysctl.conf
    echo "net.ipv4.conf.default.forwarding=1" | sudo tee -a /etc/sysctl.conf
    sed 's/#net.ipv6.conf.all.forwarding=1/net.ipv6.conf.all.forwarding=1/g' /etc/sysctl.conf | sudo tee /etc/sysctl.conf
    echo "net.ipv6.conf.default.forwarding=1" | sudo tee -a /etc/sysctl.conf
    sudo sysctl -p
    
    Enable IPv4 Multicast Forwarding:
    echo "net.ipv4.conf.all.mc_forwarding=1" | sudo tee -a /etc/sysctl.conf
    echo "net.ipv4.conf.default.mc_forwarding=1" | sudo tee -a /etc/sysctl.conf
    sudo sysctl -p

    root@ubuntu:~# ps -elf | grep zebra
    1 S quagga   17495     1  0  80   0 -  1185 select 14:04 ?        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     17503  2403  0  80   0 -  1097 pipe_w 14:05 pts/0    00:00:00 grep --color=auto zebra
    root@ubuntu:~# kill -9 17495
    root@ubuntu:~# ps -elf | grep zebra
    5 S quagga   18085     1  0  80   0 -  1251 select 14:06 ?        00:00:00 zebra -d -f /etc/quagga/sdn-ip-topology/configs/zebra.conf -z /var/run/quagga/zebrabgp.api -i /var/run/quagga/zebrabgp.pid
    1 S quagga   18087     1  0  80   0 -  2028 select 14:06 ?        00:00:00 bgpd -d -f /etc/quagga/sdn-ip-topology/configs/quagga-sdn.conf -z /var/run/quagga/zebrabgp.api -i /var/run/quagga/bgpdbgp.pid
    5 S quagga   18111     1  0  80   0 -  1251 select 14:06 ?        00:00:00 zebra -d -f /etc/quagga/sdn-ip-topology/configs/zebra.conf -z /var/run/quagga/zebrar1.api -i /var/run/quagga/zebrar1.pid
    1 S quagga   18113     1  0  80   0 -  1962 select 14:06 ?        00:00:00 bgpd -d -f /etc/quagga/sdn-ip-topology/configs/quagga1.conf -z /var/run/quagga/zebrar1.api -i /var/run/quagga/bgpdr1.pid
    5 S quagga   18126     1  0  80   0 -  1251 select 14:06 ?        00:00:00 zebra -d -f /etc/quagga/sdn-ip-topology/configs/zebra.conf -z /var/run/quagga/zebrar2.api -i /var/run/quagga/zebrar2.pid
    1 S quagga   18128     1  0  80   0 -  1962 select 14:06 ?        00:00:00 bgpd -d -f /etc/quagga/sdn-ip-topology/configs/quagga2.conf -z /var/run/quagga/zebrar2.api -i /var/run/quagga/bgpdr2.pid
    5 S quagga   18141     1  0  80   0 -  1251 select 14:06 ?        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
    1 S quagga   18143     1  0  80   0 -  1962 select 14:06 ?        00:00:00 bgpd -d -f /etc/quagga/sdn-ip-topology/configs/quagga3.conf -z /var/run/quagga/zebrar3.api -i /var/run/quagga/bgpdr3.pid
    5 S quagga   18156     1  0  80   0 -  1251 select 14:06 ?        00:00:00 zebra -d -f /etc/quagga/sdn-ip-topology/configs/zebra.conf -z /var/run/quagga/zebrar4.api -i /var/run/quagga/zebrar4.pid
    1 S quagga   18158     1  0  80   0 -  1962 select 14:06 ?        00:00:00 bgpd -d -f /etc/quagga/sdn-ip-topology/configs/quagga4.conf -z /var/run/quagga/zebrar4.api -i /var/run/quagga/bgpdr4.pid
    0 R root     18682  2403  0  80   0 -  1097 -      14:06 pts/0    00:00:00 grep --color=auto zebra
    root@ubuntu:~# ps -elf | grep bgp
    0 S root     13715  6874  3  80   0 - 15634 ep_pol 12:56 pts/2    00:02:14 python ./bin/sdnip-mgr --sdn-ip-cfg-file ./config.json --observe-links sdnip.arp_proxy sdnip.fwd_bgp sdnip.sdn_ip
    4 S root     17515 17504  0  80   0 -  1367 select 14:06 pts/4    00:00:00 bash --norc -mis mininet:bgp
    5 S quagga   18085     1  0  80   0 -  1251 select 14:06 ?        00:00:00 zebra -d -f /etc/quagga/sdn-ip-topology/configs/zebra.conf -z /var/run/quagga/zebrabgp.api -i /var/run/quagga/zebrabgp.pid
    1 S quagga   18087     1  0  80   0 -  2028 select 14:06 ?        00:00:00 bgpd -d -f /etc/quagga/sdn-ip-topology/configs/quagga-sdn.conf -z /var/run/quagga/zebrabgp.api -i /var/run/quagga/bgpdbgp.pid
    1 S quagga   18113     1  0  80   0 -  1962 select 14:06 ?        00:00:00 bgpd -d -f /etc/quagga/sdn-ip-topology/configs/quagga1.conf -z /var/run/quagga/zebrar1.api -i /var/run/quagga/bgpdr1.pid
    1 S quagga   18128     1  0  80   0 -  1962 select 14:06 ?        00:00:00 bgpd -d -f /etc/quagga/sdn-ip-topology/configs/quagga2.conf -z /var/run/quagga/zebrar2.api -i /var/run/quagga/bgpdr2.pid
    1 S quagga   18143     1  0  80   0 -  1962 select 14:06 ?        00:00:00 bgpd -d -f /etc/quagga/sdn-ip-topology/configs/quagga3.conf -z /var/run/quagga/zebrar3.api -i /var/run/quagga/bgpdr3.pid
    1 S quagga   18158     1  0  80   0 -  1962 select 14:06 ?        00:00:00 bgpd -d -f /etc/quagga/sdn-ip-topology/configs/quagga4.conf -z /var/run/quagga/zebrar4.api -i /var/run/quagga/bgpdr4.pid
    0 R root     18684  2403  0  80   0 -  1097 -      14:08 pts/0    00:00:00 grep --color=auto bgp
    root@ubuntu:~#
  • 相关阅读:
    SQL Server 2012 同步数据
    SQL md5 加密
    构建BootStrap
    js toFixed 真正四舍五入
    Angular BootStrap 登录页面
    Gitblit 安装使用
    js 函数
    git push error HTTP code = 413
    react-native 插件汇总
    js 监听组合键盘事件
  • 原文地址:https://www.cnblogs.com/dream397/p/13305166.html
Copyright © 2020-2023  润新知