New Question

how do i add physical nic to ovs-on-hyper-v

asked 2014-10-30 05:03:28 +0300

xinjin gravatar image

updated 2014-11-26 15:07:56 +0300

If it is a vm nic, it can be add to ovs-on-hyper-v by this way.

$vnic = Get-VMNetworkAdapter VM1
Connect-VMNetworkAdapter -VMNetworkAdapter $vnic -SwitchName external
$vnic | Set-VMNetworkAdapterOVSPort -OVSPortName ovs-port-1
ovs-vsctl.exe add-port br0 ovs-port-1

But if it is a physical nic, how do?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2014-11-09 15:09:49 +0300

aserdean gravatar image

updated 2014-11-25 22:06:27 +0300

You cannot add a physical NIC directly.

  1. You need to create a VMSwitch on top of the physical NIC.

    I.E. New-VMSwitch external -AllowManagementOS $true -NetAdapterName Ethernet1

  2. Enable the extension on the created visual switch:

    Enable-VMSwitchExtension openvswitch external

  3. And than add the VMSwitch to the bridge:

    ovs-vsctl.exe add-br br0

    ovs-vsctl.exe add-port br0 external

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2014-10-30 05:03:28 +0300

Seen: 485 times

Last updated: Nov 26 '14