【问题标题】:Is it correct way that "ifconfig eth0 down" or "ip link set eth0 down" to simulate unplugged network cable“ifconfig eth0 down”或“ip link set eth0 down”模拟拔掉网线是否正确
【发布时间】:2020-04-20 10:32:15
【问题描述】:

我正在努力模拟两个虚拟机之间的网络连接失败场景。 “ifconfig eth0 down”或“ip link set eth0 down”模拟拔下网线是否正确。有没有没有down接口的替代方案。

【问题讨论】:

    标签: networking virtual-machine disconnect


    【解决方案1】:

    可以模拟拔掉网线

    【讨论】:

    • 在我的所有搜索和 sagaf 的贡献之后,我得到的回答是这是一种模拟未插入的以太网网络案例的有用方法。
    猜你喜欢
    • 2019-02-18
    • 1970-01-01
    • 2019-02-09
    • 1970-01-01
    • 1970-01-01
    • 2012-01-21
    • 2019-11-15
    • 1970-01-01
    • 2019-01-16
    相关资源
    最近更新 更多