Bridged networking to Windows VM from linux host


  1. Posts : 11,246
    Windows / Linux : Arch Linux
       #1

    Bridged networking to Windows VM from linux host


    Hi folks

    I created a working bridge to a physical NIC as per :

    [root@hestur hrafn]# ifconfig enp2s0f1 0.0.0.0
    [root@hestur hrafn]# brctl addbr br0
    [root@hestur hrafn]# brctl addif br0 enp2s0f1 <==== one of my NIC physical interfaces -
    [root@hestur hrafn]# dhclient br0 <==== activates OK

    The NIC in the VM simply uses br0 as shared device name br0 device model virtio -- works fine

    however the br0 is lost again at re-boot so I have to type the above networking commands in each time

    anybody know how to make this persistent

    Host is Linux using KVM VM is Windows latest build from uupdump -working perfectly fine

    Cheers
    jimbo
      My Computer


  2. Posts : 822
    Microsoft Windows 10 Pro 64-bit
       #2

    Two things come to mind, ifconfig is depreciated try searching for iproute2 or netplan is probably easier to config with with a yaml file located /etc/netplan.

    You did not mention what version of Linux you are using so this post maybe meaningless.
      My Computer


  3. Posts : 11,246
    Windows / Linux : Arch Linux
    Thread Starter
       #3

    Digital Life said:
    Two things come to mind, ifconfig is depreciated try searching for iproute2 or netplan is probably easier to config with with a yaml file located /etc/netplan.

    You did not mention what version of Linux you are using so this post maybe meaningless.
    Hi there arch linux kernel 5.4.6 -- also tested on Fedora rel 31. Networking is pretty standard across almost every Linux distro --after all networking was (and still is) one of its major strong points. I believe it should be the same on ubuntu as well.

    ifconfig is fine for just giving a quick info of what your interfaces are it's an easy command although there's all sorts of other tools to use.

    cheers
    jimbo
      My Computer


  4. Posts : 822
    Microsoft Windows 10 Pro 64-bit
       #4

    It looks like Arch also uses netplan but I am not sure where you would would edit a file for networking that is persistent, Just a quick Google search seems to suggest a few editable files in
    Code:
    /etc/systemd/network/
    It looks like there are separate files for wired and wireless devices, I have only tried Ubuntu and mint so far and right now only use a Ubuntu server for both of my own local DHCP and DNS servers I may try Arch or Fedora one rainy day in the future just for something to do.

    Searching for netplan and iproute2 should get you on the right track though.

    EDIT: Looks like dhclient might be depreciated too in both arch and fedora
    Linux for Wireless Engineers: How to Use DHCP Hooks
    DHCLIENT Hooks

    dhclient is the older of the two, and is actually getting deprecated. Newer Linux distributions are migrating to dhcpcd. However, it's been the main DHCP client for at least two decades, and it's going to be a while until it disappears completely.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 19:06.
Find Us




Windows 10 Forums