Network interfaces with Hyper-V and VLANs

Kernels & Hardware, configuring network, installing services

Network interfaces with Hyper-V and VLANs

Postby Daniel » 2019-10-30 18:36

I'm running Debian 9 on a Windows 2019 Datacenter Server as a Hvper-V VM

No issues and the integration is working great. I needed to add a new interface to the VM sofar as well no issue it shows up without problems and all is great. Network Config working Yeah :-)

Now for my BUT once I add a static VLAN Tag on the Hyper-V side Debian adds an additional IP I'm not sure where. It shows up

Code: Select all
ip addr

Code: Select all
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether xxxxxxxxxxxxxxx brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.3/24 brd 192.168.0.255 scope global eth0
       valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether xxxxxxxxxxxxxxx  brd ff:ff:ff:ff:ff:ff
    inet 169.254.206.210/16 brd 169.254.255.255 scope global eth1
       valid_lft forever preferred_lft forever


If I add a static IP I get

Code: Select all
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether xxxxxxxxxxxxxxx  brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.3/24 brd 192.168.0.255 scope global eth0
       valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether xxxxxxxxxxxxxxx  brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.3/24 brd 192.168.1.255 scope global eth1
       valid_lft forever preferred_lft forever
[b]    inet 169.254.206.210/16 brd 169.254.255.255 scope global eth1
       valid_lft forever preferred_lft forever[/b]


I have no clue where the second IP is coming from. If I put it in the correct VLAN it gets a DHCP lease currently in a test VLAN without DHCP server.

Code: Select all
/etc/network/interfaces


Code: Select all
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet static
        address 192.168.0.3
        netmask 255.255.255.0
        gateway 192.168.0.1
        dns-nameserver 127.0.0.1

allow-hotplug eth1
iface eth1 inet static
        address 192.168.1.3
        netmask 255.255.255.0
        dns-nameserver 127.0.0.1


I can delete the IP with
Code: Select all
 ip address del 169.254.206.210/16 dev eth1
but in doing so I get
Code: Select all
ping 192.168.1.1
connect: Invalid argument


After removing the static IP and adding it back ping does work.
Daniel
 
Posts: 1
Joined: 2019-10-30 18:25

Return to System configuration

Who is online

Users browsing this forum: No registered users and 16 guests

fashionable