zoukankan      html  css  js  c++  java
  • 使用tratto进行CISCO网络设备的管理

    测试环境:

    CSR1000V

    CentOS7.4 X64

    Step 1:在CentOS7上安装python 3.0环境

    [root@docker ~]# python3 -V
    Python 3.7.0
    [root@docker ~]#

    Step 2:安装GIT

    [root@docker ~]# git --version
    git version 1.8.3.1
    [root@docker ~]#

    Step 3:git获取tratto

    [root@docker ~]# git clone https://github.com/akonkol/tratto.git

    Step 4:测试

    [root@docker sdn]# cd tratto/
    [root@docker tratto]# ls -l
    total 8
    drwxr-xr-x 2 root root 24 Jun 18 23:10 examples
    -rwxr-xr-x 1 root root 0 Jun 18 23:10 __init__.py
    -rw-r--r-- 1 root root 805 Jun 18 23:10 README
    -rwxr-xr-x 1 root root 548 Jun 19 01:29 test.py
    drwxr-xr-x 4 root root 80 Jun 18 23:11 tratto
    [root@docker tratto]#
    [root@docker tratto]#
    [root@docker tratto]# ./test.py
    Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
    N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
    E1 - OSPF external type 1, E2 - OSPF external type 2
    i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
    ia - IS-IS inter area, * - candidate default, U - per-user static route
    o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
    a - application route
    + - replicated route, % - next hop override, p - overrides from PfR

    Gateway of last resort is 192.168.188.254 to network 0.0.0.0

    S* 0.0.0.0/0 [1/0] via 192.168.188.254, GigabitEthernet1
    C 192.168.0.0/16 is directly connected, GigabitEthernet1
    192.168.188.0/32 is subnetted, 1 subnets
    L 192.168.188.150 is directly connected, GigabitEthernet1
    [root@docker tratto]#

  • 相关阅读:
    2020春Contest
    HDU Count the string (KMP)
    P1757 通天之分组背包
    L1-050 倒数第N个字符串
    3月份目标
    Division UVa725
    数三角
    luogu P2051 [AHOI2009]中国象棋 dp 状态压缩+容斥
    Codeforces Round #654 (Div. 2) E
    Codeforces Round #654 (Div. 2) D
  • 原文地址:https://www.cnblogs.com/networking/p/11050883.html
Copyright © 2011-2022 走看看