ensp学习第十四弹网络编程与自动化


SDN与NFV概述

SDN与NFV的概述

网络编程与自动化

实现不了,只能是通过一个路由器加一个交换机,在ensp里电脑不适用于这个

实验拓扑

telnet server enable
int Vlanif 1
ip add 192.168.56.101 24

结果

目前在模拟器环境下不能够实现

网络与自动化代码

import telnetlib
import time

host="192.168.43.158"
password="lyz@123"

tn=telnetlib.Telnet(host)

tn.read_until("Password:")
tn.write(password.encode("ascii")+"\n")
tn.write("dis cu\n")
time.sleep(1)
print(tn.read_very_eager().decode("ascii"))
tn.close()

文章作者: 毛豆不逗比
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 毛豆不逗比 !
  目录
{% include '_third-party/exturl.swig' %} {% include '_third-party/bookmark.swig' %} {% include '_third-party/copy-code.swig' %} + {% include '_custom/custom.swig' %}