魔方云更换需要桥接的物理网卡

如果安装的时候选择到了错误的网卡,会导致小鸡无法上网,如果在使用中,需要更换物理网卡,都需要使用以下命令进行处理:

ssh登录到计算节点中:

① ovs-vsctl del-port 老网卡名

② ovs-vsctl add-port phy-ext 新网卡名

③vi /usr/local/zjmf/conf/net.conf 里面的网卡名换成新的

注意:当节点开启单IP转发模式,还需要继续执行以下步骤:

① vi /usr/local/zjmf/conf/net.conf 修改external_mac为新网卡的mac地址

② 执行ovs-ofctl del-port ext_100101

③ 执行/usr/local/zjmf/cloud/apps/tools single_ip

运维知识 2025-06-14 13:46:53 通过 手机 浏览(502)

共有0条评论!

发表评论

更换一道题!