adding network interface

almiller

Member
Dec 1, 2020
21
0
21
58
I inherited an old Dell with pve-manager/7.2-7 installed.
The machine has 4 physical interfaces and 1 port is configured for 172.16.1.0/24
I deployed some VMs in the same subnet and everything is fine.

But now I'd like to use another physical interface for a new subnet 172.17.1.0/24
so that I can deploy a k8s cluster there.

I don't understand how the the interfaces and the networking works.
I see 4 enoX itnerfaces and 2 vmbrX interfaces.

Bash:
root@pve ~ # ip addr show
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: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master vmbr0 state UP group default qlen 1000
    link/ether 00:26:b9:2c:82:5b brd ff:ff:ff:ff:ff:ff
    altname enp1s0f0
3: eno2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq master vmbr1 state DOWN group default qlen 1000
    link/ether 00:26:b9:2c:82:5d brd ff:ff:ff:ff:ff:ff
    altname enp1s0f1
4: eno3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 00:26:b9:2c:82:5f brd ff:ff:ff:ff:ff:ff
    altname enp2s0f0
5: eno4: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 00:26:b9:2c:82:61 brd ff:ff:ff:ff:ff:ff
    altname enp2s0f1
6: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 16:4e:1c:59:10:bd brd ff:ff:ff:ff:ff:ff
    inet 172.16.1.101/24 brd 172.16.1.255 scope global vmbr0
       valid_lft forever preferred_lft forever
    inet6 fde7:9611:2b18:d2b8:144e:1cff:fe59:10bd/64 scope global dynamic mngtmpaddr
       valid_lft 1548sec preferred_lft 1548sec
    inet6 fe80::144e:1cff:fe59:10bd/64 scope link
       valid_lft forever preferred_lft forever
7: vmbr1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether 52:85:71:a8:40:ed brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.1/24 brd 192.168.1.255 scope global vmbr1
       valid_lft forever preferred_lft forever
 
Nevermind, I found the networking docs and changed my /etc/network/interfaces to

Code:
auto lo
iface lo inet loopback
iface eno1 inet manual
iface eno2 inet manual
iface eno3 inet manual
iface eno4 inet manual

auto vmbr0
iface vmbr0 inet static
    address 172.16.1.101/24
    gateway 172.16.1.1
    bridge-ports eno1
    bridge-stp off
    bridge-fd 0
auto vmbr1
iface vmbr1 inet static
    address 172.17.1.100/24
    gateway 172.17.1.1
    bridge-ports eno2
    bridge-stp off
    bridge-fd 0

Now I see this:

Code:
root@pve ~ # ip route show
default via 172.16.1.1 dev vmbr0 proto kernel onlink
172.16.1.0/24 dev vmbr0 proto kernel scope link src 172.16.1.101
172.17.1.0/24 dev vmbr1 proto kernel scope link src 172.17.1.100 linkdown

root@pve ~ # ip addr show
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: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master vmbr0 state UP group default qlen 1000
    link/ether 00:26:b9:2c:82:5b brd ff:ff:ff:ff:ff:ff
    altname enp1s0f0
3: eno2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq master vmbr1 state DOWN group default qlen 1000
    link/ether 00:26:b9:2c:82:5d brd ff:ff:ff:ff:ff:ff
    altname enp1s0f1
4: eno3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 00:26:b9:2c:82:5f brd ff:ff:ff:ff:ff:ff
    altname enp2s0f0
5: eno4: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 00:26:b9:2c:82:61 brd ff:ff:ff:ff:ff:ff
    altname enp2s0f1
6: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 00:26:b9:2c:82:5b brd ff:ff:ff:ff:ff:ff
    inet 172.16.1.101/24 brd 172.16.1.255 scope global vmbr0
       valid_lft forever preferred_lft forever
    inet6 fe80::226:b9ff:fe2c:825b/64 scope link
       valid_lft forever preferred_lft forever
7: vmbr1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether 00:26:b9:2c:82:5d brd ff:ff:ff:ff:ff:ff
    inet 172.17.1.100/24 scope global vmbr1
       valid_lft forever preferred_lft forever
 

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!