0

输出错误

这是我的简单代码:

import netmiko

connection = netmiko.ConnectHandler(
    ip = "192.168.122.100",
    device_type = "cisco_ios",
    username="dule",
    password = "cisco"
)

output = connection.send_command("sh ip inter br")

connection.send_command("conf t")

conf_command = ['int loop 0', 'ip address 1.1.1.1 255.255.255.255']

output = connection.send_config_set(conf_command)
print(output)
connection.disconnect()
4

1 回答 1

0

我的问题是权限级别,您应该将用户名“cisco”权限设置为 15

于 2020-05-20T16:23:49.050 回答