0

I want to set an IpAddress on one of my OpenVSwitch interface. 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. The MAC address can be correctly set by this procedure though.

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.

Thanks

Sidhant101
  • 39
  • 1
  • 5

1 Answers1

0

ovs-vsctl add-port sw0 int0 -- set interface int0 type=internal ifconfig int0 up

Ernst
  • 1,125
  • 1
  • 7
  • 4