Interfaces with Static and DHCP IP

Jacob

Active Member
Dec 17, 2017
20
3
43
36
Looking for some help figuring this one out. I've had routing issues over the last three days because of IP conflicts with one of my two proxmox hosts. I had turned on DHCP for one of my containers on proxmox #2 host and then checked something, then turned it back off, and now I've got other interfaces with multiple IPs. I've checked the few places that I know so far ie: /etc/network/interfaces, /etc/dhcp/dhcpch.conf for where I've fixed this issues in the past. Yet neither of these files holds the answer.

I've checked host #2 "ip addr show" against host#1 and there are clear differences in configurations. I am showing alot of my "VETH" devices with loopback addresses where host #1 does not have these. Additionaly vmbr25 has two IP's, one is static which I've set, and another is DHCP from my DHCP server. I've turned off DHCP on the interface in the gui and in the /etc/network/interfaces file. I had other IP's showing up from my second vlan until I turned that DHCP server off since I primarly set those all static. Here are the results from "ip addr show"
Host 1
Bash:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    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: enp4s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master vmbr1 state UP group default qlen 1000
    link/ether 74:d4:35:ef:83:39 brd ff:ff:ff:ff:ff:ff
3: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master vmbr0 state UP group default qlen 1000
    link/ether 74:d4:35:ef:83:4d brd ff:ff:ff:ff:ff:ff
4: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 74:d4:35:ef:83:4d brd ff:ff:ff:ff:ff:ff
    inet 192.168.XX.10/26 brd 192.168.XX.63 scope global vmbr0
       valid_lft forever preferred_lft forever
    inet6 fe80::76d4:35ff:feef:834d/64 scope link
       valid_lft forever preferred_lft forever
5: vmbr1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 74:d4:35:ef:83:39 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::76d4:35ff:feef:8339/64 scope link
       valid_lft forever preferred_lft forever
6: vmbr2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000
    link/ether fa:c2:ac:b9:8a:fa brd ff:ff:ff:ff:ff:ff
    inet6 fe80::f8c2:acff:feb9:8afa/64 scope link
       valid_lft forever preferred_lft forever
7: vmbr3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000
    link/ether 26:ed:d0:0a:80:23 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::24ed:d0ff:fe0a:8023/64 scope link
       valid_lft forever preferred_lft forever
8: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default
    link/ether 02:42:aa:58:b9:a1 brd ff:ff:ff:ff:ff:ff
    inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0
       valid_lft forever preferred_lft forever
9: tap100i0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master vmbr0 state UNKNOWN group default qlen 1000
    link/ether ba:45:d4:2b:49:b4 brd ff:ff:ff:ff:ff:ff
21: veth110i0@if20: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master vmbr0 state UP group default qlen 1000
    link/ether fe:37:c8:4a:de:ef brd ff:ff:ff:ff:ff:ff link-netnsid 5
22: tap112i0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master vmbr1 state UNKNOWN group default qlen 1000
    link/ether f2:ef:c0:42:75:4f brd ff:ff:ff:ff:ff:ff
24: veth103i0@if23: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master vmbr1 state UP group default qlen 1000
    link/ether fe:9a:de:d4:75:b5 brd ff:ff:ff:ff:ff:ff link-netnsid 1
26: veth104i0@if25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master vmbr1 state UP group default qlen 1000
    link/ether fe:89:ea:93:f8:06 brd ff:ff:ff:ff:ff:ff link-netnsid 2
28: veth105i0@if27: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master vmbr1 state UP group default qlen 1000
    link/ether fe:93:34:bf:12:e9 brd ff:ff:ff:ff:ff:ff link-netnsid 3
30: veth106i0@if29: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master vmbr1 state UP group default qlen 1000
    link/ether fe:2f:ba:be:6e:a0 brd ff:ff:ff:ff:ff:ff link-netnsid 4
32: veth102i0@if31: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master vmbr1 state UP group default qlen 1000
    link/ether fe:48:07:97:a6:a4 brd ff:ff:ff:ff:ff:ff link-netnsid 0

Host 2
Bash:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    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: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 00:8c:fa:a5:9a:fb brd ff:ff:ff:ff:ff:ff
    inet 169.254.202.211/16 brd 169.254.255.255 scope global noprefixroute enp1s0
    valid_lft forever preferred_lft forever
5: vmbr25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 00:8c:fa:a5:9a:fb brd ff:ff:ff:ff:ff:ff
    inet 192.168.XX.11/26 brd 192.168.XX.63 scope global vmbr25
    valid_lft forever preferred_lft forever
    inet 192.168.XX.35/26 brd 192.168.XX.63 scope global secondary noprefixroute vmbr25
    valid_lft forever preferred_lft forever
    inet6 fe80::6121:3ebe:4969:9356/64 scope link
    valid_lft forever preferred_lft forever
6: enp1s0.25@enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master vmbr25 state UP group default qlen 1000
    link/ether 00:8c:fa:a5:9a:fb brd ff:ff:ff:ff:ff:ff
    inet 169.254.202.211/16 brd 169.254.255.255 scope global noprefixroute enp1s0.25
    valid_lft forever preferred_lft forever
7: vmbr26: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 00:8c:fa:a5:9a:fb brd ff:ff:ff:ff:ff:ff
    inet 169.254.202.211/16 brd 169.254.255.255 scope global noprefixroute vmbr26
   valid_lft forever preferred_lft forever
    inet6 fe80::6121:3ebe:4969:9356/64 scope link
    valid_lft forever preferred_lft forever
8: enp1s0.26@enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master vmbr26 state UP group default qlen 1000
    link/ether 00:8c:fa:a5:9a:fb brd ff:ff:ff:ff:ff:ff
    inet 169.254.202.211/16 brd 169.254.255.255 scope global noprefixroute enp1s0.26
    valid_lft forever preferred_lft forever
9: vmbr27: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 00:8c:fa:a5:9a:fb brd ff:ff:ff:ff:ff:ff
    inet 169.254.202.211/16 brd 169.254.255.255 scope global noprefixroute vmbr27
    valid_lft forever preferred_lft forever
    inet6 fe80::6121:3ebe:4969:9356/64 scope link
    valid_lft forever preferred_lft forever
10: enp1s0.27@enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master vmbr27 state UP group default qlen 1000
    link/ether 00:8c:fa:a5:9a:fb brd ff:ff:ff:ff:ff:ff
    inet 169.254.202.211/16 brd 169.254.255.255 scope global noprefixroute enp1s0.27
    valid_lft forever preferred_lft forever
12: veth108i0@if11: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master vmbr26 state UP group default qlen 1000
    link/ether fe:c3:11:ff:28:5b brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet 169.254.233.190/16 brd 169.254.255.255 scope global noprefixroute veth108i0
    valid_lft forever preferred_lft forever
14: veth122i0@if13: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master vmbr25 state UP group default qlen 1000
    link/ether fe:b8:7e:6f:86:9f brd ff:ff:ff:ff:ff:ff link-netnsid 1
    inet 192.168.25.28/26 brd 192.168.25.63 scope global noprefixroute veth122i0
    valid_lft forever preferred_lft forever
16: veth123i0@if15: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master vmbr26 state UP group default qlen 1000
    link/ether fe:16:df:8a:1b:7b brd ff:ff:ff:ff:ff:ff link-netnsid 2
    inet 169.254.202.142/16 brd 169.254.255.255 scope global noprefixroute veth123i0
    valid_lft forever preferred_lft forever
18: veth119i0@if17: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master vmbr26 state UP group default qlen 1000
    link/ether fe:d5:a3:8f:08:08 brd ff:ff:ff:ff:ff:ff link-netnsid 3
    inet 169.254.152.200/16 brd 169.254.255.255 scope global noprefixroute veth119i0
    valid_lft forever preferred_lft forever
 
Here is the output from ip route show:

Code:
default via 192.168.XX.1 dev vmbr25 proto dhcp src 192.168.XX.35 metric 205
default via 192.168.XX.1 dev veth122i0 proto dhcp src 192.168.XX.28 metric 214
169.254.0.0/16 dev enp1s0 scope link src 169.254.202.211 metric 202
169.254.0.0/16 dev enp1s0.25 scope link src 169.254.202.211 metric 206
169.254.0.0/16 dev vmbr26 scope link src 169.254.202.211 metric 207
169.254.0.0/16 dev enp1s0.26 scope link src 169.254.202.211 metric 208
169.254.0.0/16 dev vmbr27 scope link src 169.254.202.211 metric 209
169.254.0.0/16 dev enp1s0.27 scope link src 169.254.202.211 metric 210
169.254.0.0/16 dev veth108i0 scope link src 169.254.233.190 metric 212
169.254.0.0/16 dev veth123i0 scope link src 169.254.202.142 metric 216
169.254.0.0/16 dev veth119i0 scope link src 169.254.152.200 metric 218
192.168.XX.0/26 dev vmbr25 proto dhcp scope link src 192.168.XX.35 metric 205
192.168.XX.0/26 dev veth122i0 proto dhcp scope link src 192.168.XX.28 metric 214

I've got everything backed up incase I need to employ the nuclear option and reinstall proxmox and then restore my containers. I'd like not to do this as it should be an adjustment in my configuration setup. "Hopefully."
 

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!