ethX and BridgeX get ip address by dhcp even with inet manual

adgenet

New Member
Nov 16, 2015
8
1
3
I have two interfaces on my machine, eth0 and eth1.
I created two OVS bridges, vmbr0 and vmbr1.
vmbr0 has an intport with my local ip for management (10.0.0.21)
vmbr1 has no intports, and no ip address configured.
Likewise, the physical interfaces have no ip addresses defined.

However, vmbr1, which is connected to a network where dhcp is served, receives an ip address, as does the eth1 interface.

So, I redid my network config as displayed below, and for the time being, disabled vmbr1 and eth1 connections (to simplify troubleshooting)

It turns out vmbr0 and eth0 are ALSO getting extra dhcp assignments.
What is causing this? It seems like the inet manual option is being ignored.

/etc/network/interfaces
Code:
auto lo
iface lo inet loopback

allow-vmbr0 eth0
iface eth0 inet manual
        ovs_type OVSPort
        ovs_bridge vmbr0

allow-vmbr1 eth1
iface eth1 inet manual
        ovs_type OVSPort
        ovs_bridge vmbr1

auto vmbr0
iface vmbr0 inet manual
        ovs_type OVSBridge
        ovs_ports eth0 intpt

allow-vmbr0 intpt
iface intpt inet static
        address  10.0.0.21
        netmask  255.255.255.0
        ovs_type OVSIntPort
        ovs_bridge vmbr0

auto vmbr1
iface vmbr1 inet manual
        ovs_type OVSBridge
        ovs_ports eth1

ip addr
Code:
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
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master ovs-system state UP group default qlen 1000
    link/ether [DELETED] brd ff:ff:ff:ff:ff:ff
    inet 169.254.84.21/16 brd 169.254.255.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::6ef0:49ff:fee6:26af/64 scope link
       valid_lft forever preferred_lft forever
3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
    link/ether [DELETED] brd ff:ff:ff:ff:ff:ff
4: ovs-system: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1
    link/ether [DELETED] brd ff:ff:ff:ff:ff:ff                                                                                                                                                                                                                                                                                                                                    
    inet 169.254.186.129/16 brd 169.254.255.255 scope global ovs-system                                                                                                                                                                                                                                                                                                                    
       valid_lft forever preferred_lft forever                                                                                                                                                                                                                                                                                                                                            
    inet6 fe80::49c:74ff:fe8d:9df0/64 scope link                                                                                                                                                                                                                                                                                                                                          
       valid_lft forever preferred_lft forever                                                                                                                                                                                                                                                                                                                                            
5: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1                                                                                                                                                                                                                                                                                      
    link/ether [DELETED] brd ff:ff:ff:ff:ff:ff                                                                                                                                                                                                                                                                                                                                    
    inet 10.0.0.129/24 brd 10.0.0.255 scope global vmbr0                                                                                                                                                                                                                                                                                                                                  
       valid_lft forever preferred_lft forever                                                                                                                                                                                                                                                                                                                                            
    inet6 fe80::6ef0:49ff:fee6:26af/64 scope link                                                                                                                                                                                                                                                                                                                                          
       valid_lft forever preferred_lft forever                                                                                                                                                                                                                                                                                                                                            
6: intpt: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1                                                                                                                                                                                                                                                                                      
    link/ether4 [DELETED] brd ff:ff:ff:ff:ff:ff                                                                                                                                                                                                                                                                                                                                    
    inet 10.0.0.21/24 brd 10.0.0.255 scope global intpt                                                                                                                                                                                                                                                                                                                                    
       valid_lft forever preferred_lft forever                                                                                                                                                                                                                                                                                                                                            
    inet 10.0.0.202/24 brd 10.0.0.255 scope global secondary intpt                                                                                                                                                                                                                                                                                                                        
       valid_lft forever preferred_lft forever                                                                                                                                                                                                                                                                                                                                            
    inet6 fe80::4cb7:4aff:fe42:80f2/64 scope link                                                                                                                                                                                                                                                                                                                                          
       valid_lft forever preferred_lft forever

As you can see, intpt is getting the static IP I set (10.0.0.21), but it's also picking up another IP via dhcp (10.0.0.202).
You can also see vmbr0 itself, despite being set to inet manual (no ip), is getting an IP assigned (10.0.0.129).
Configuration was done all via gui. The only thing that has an IP set is intpt. Everything else should NOT be getting an IP.
 
Last edited:
Ok, so I blew away my entire config and reinstalled from scratch (with 5 beta).
Installed OVS and the problem seems to be fixed for ipv4 - I must have misconfigured something somewhere on my previous install.

However, it looks like link-local ipv6 addresses (fe80::blahblah) are being assigned on this fresh install.
I haven't done anything on this host except install proxmox, install ovs, then set up my network config in the GUI.
If I use linux bridges, no ipv6 address is present.

Any thoughs?

Screenshot_20170509_203340.png
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!