[英]IPAddress on OVS interface
I want to set an IpAddress on one of my OpenVSwitch interface. 我想在我的OpenVSwitch接口之一上设置一个IpAddress。 I follow the following procedure.
我遵循以下步骤。
link1= net.addLink(s1,s2,port1 =1, port2 =1)
link1.intf1.setIP("10.0.1.0/31")
link1.intf2.setIP("10.0.1.1/31")
However, the changes do not reflect. 但是,更改不会反映出来。 Moreover, the interface doesn't activate and can't be seen in ovsdb-server port table.
而且,该接口不会激活,因此无法在ovsdb-server端口表中看到。 The MAC address can be correctly set by this procedure though.
但是,可以通过此过程正确设置MAC地址。
Can you please advice me on what I am doing wrong. 您能在我做错事情上给我建议吗? I am getting a feeling that setting an IP address on OVS interface is not advised.
我感觉不建议在OVS接口上设置IP地址。
Thanks 谢谢
ovs-vsctl add-port sw0 int0-设置接口int0 type = internal ifconfig int0 up
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.