New Question

Revision history [back]

cannot connect the second virtual network adapter to vSwitch on a VM/default gateway is unreachable after hyper-v host is restarted

Hi Expert,

Background:

  1. 2 hosts with Hyper-V Server 2016 and Open vSwitch 2.7.0 installed.
  2. for each host, we have 2 NICs (NIC1/NIC2 are teaming members for public network) , the virtua switch name is FSOPublicNetwork.
  3. we are testing vxlan according to tihs doc: https://cloudbase.it/open-vswitch-2-5-hyper-v-vxlan-part-2/, it's fine.

Two issues:

  1. we found that the default gateway is unreachable after restarting a Hyper-v host; maybe several minutes later and nothting to do, the default gateway become reachable, it's wired.
  2. we tried to connect the second virtual network adapter to the vSwitch on a VM, but failed and the error message is "failed to modify device 'Ethernet Connection"

OVS Configuration:

Bridge br-int
    Port br-int
        Interface br-int
            type: internal
    Port "vlnx150000001"
        Interface "vlnx150000001"
    Port "vlnx151000002"
        Interface "vlnx151000002"
    Port patch-tun
        Interface patch-tun
            type: patch
            options: {peer=patch-int}
Bridge br-tun
    Port patch-int
        Interface patch-int
            type: patch
            options: {peer=patch-tun}
    Port br-tun
        Interface br-tun
            type: internal
    Port "vxlan-1"
        Interface "vxlan-1"
            type: vxlan
            options: {in_key=flow, local_ip="172.31.153.20", out_key=flow, remote_ip="172.31.153.19"}
Bridge "br-port1"
    Port "br-port1"
        tag: 31
        Interface "br-port1"
            type: internal
    Port FSOPublicNetwork
        Interface FSOPublicNetwork

OVS datapath show

enter code heresystem@ovs-system:
    lookups: hit:5279083 missed:10029059 lost:0
    flows: 144
    port 1: br-port1 (internal)
    port 2: FSOPublicNetwork
    port 3: br-tun (internal)
    port 4: vxlan_sys_4789 (vxlan)
    port 5: vlnx150000001
    port 6: vlnx151000002
    port 7: br-int (internal)