How to configure 2NIC devices

bravo0916

New Member
Jan 29, 2024
28
2
3
Hello Team,

I have just finished settiup Proxmox VE. Now, the machine has 2 NIC devices. I can see that there is vmbr0 has been configured already.
I want to setup another NIC device. Here is network map.

1. eno1 (192.168.50.xx) ->this is for servers and this eno1 has been sticked with vmbr0.
2. enp5s0 (192.168.30.xx) ->this is for local network and I will setup Windows VMs.

I just put IP address like 192.168.30.2 for esp5s0 and link is up now. I can ping to 192.168.30.2. I want to confirm if this setting is OK or not.
Or I still need to configure another brigde like vmbr1 and ens5s0 should be connected to vmbr1?

I appreciate your help!!

Regards,
 
Without a bridge VMs/LXCs can't use that NIC. So if you want to use that NIC with guests you should attach it to a new vmbr1 and set the IP on the vmbr1.
 
Hi Dunuin,

Thanks for your quick reponse. Now, I tried to setup as below.

1. enp5s0 ->all of the fields are empty.
2. vmbr1 ->I created this bridge and put 192.168.30.2/24.

The active status of vmbr1 is "No". However, I still can ping to 192.168.30.2. Do you know how I can change the active status to "Yes"?
Also, this configuration is OK?

Regards,
 
Hello. Here is the output. BTW, I can not set GW for enp5s0 nor vmbr1. The error I got was "GW already exist on vmbr0". However, I think that I will need to set GW for 192.168.30.2 subnet.

--------------------------------------------------------------------------------------------------------------------------
auto lo
iface lo inet loopback

iface eno1 inet manual

iface enp2s0 inet manual

auto enp5s0
iface enp5s0 inet manual

auto vmbr0
iface vmbr0 inet static
address 192.168.50.3/24
gateway 192.168.50.1
bridge-ports eno1
bridge-stp off
bridge-fd 0

auto vmbr1
iface vmbr1 inet static
address 192.168.30.2/24
bridge-ports enp5s0
bridge-stp off
bridge-fd 0
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
Here is result of ip addr

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 noprefixroute
valid_lft forever preferred_lft forever
2: enp2s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 70:85:c2:af:94:a1 brd ff:ff:ff:ff:ff:ff
3: enp5s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master vmbr1 state UP group default qlen 1000
link/ether 1c:fd:08:73:08:53 brd ff:ff:ff:ff:ff:ff
4: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master vmbr0 state UP group default qlen 1000
link/ether 70:85:c2:af:94:9f brd ff:ff:ff:ff:ff:ff
altname enp0s31f6
5: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 70:85:c2:af:94:9f brd ff:ff:ff:ff:ff:ff
inet 192.168.50.3/24 scope global vmbr0
valid_lft forever preferred_lft forever
inet6 fe80::7285:c2ff:feaf:949f/64 scope link
valid_lft forever preferred_lft forever
14: tap100i0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master fwbr100i0 state UNKNOWN group default qlen 1000
link/ether da:59:4b:a4:c9:3a brd ff:ff:ff:ff:ff:ff
15: fwbr100i0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 92:36:35:af:e0:9a brd ff:ff:ff:ff:ff:ff
16: fwpr100p0@fwln100i0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master vmbr0 state UP group default qlen 1000
link/ether 8a:34:67:b6:90:ee brd ff:ff:ff:ff:ff:ff
17: fwln100i0@fwpr100p0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master fwbr100i0 state UP group default qlen 1000
link/ether 92:36:35:af:e0:9a brd ff:ff:ff:ff:ff:ff
18: tap101i0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master fwbr101i0 state UNKNOWN group default qlen 1000
link/ether 36:b8:1d:b4:06:a8 brd ff:ff:ff:ff:ff:ff
19: fwbr101i0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether c6:20:8a:71:85:20 brd ff:ff:ff:ff:ff:ff
20: fwpr101p0@fwln101i0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master vmbr0 state UP group default qlen 1000
link/ether a6:45:ce:bc:11:48 brd ff:ff:ff:ff:ff:ff
21: fwln101i0@fwpr101p0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master fwbr101i0 state UP group default qlen 1000
link/ether c6:20:8a:71:85:20 brd ff:ff:ff:ff:ff:ff
22: tap102i0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master fwbr102i0 state UNKNOWN group default qlen 1000
link/ether 0e:83:f9:39:d3:d1 brd ff:ff:ff:ff:ff:ff
23: fwbr102i0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 36:7f:7d:01:58:71 brd ff:ff:ff:ff:ff:ff
24: fwpr102p0@fwln102i0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master vmbr0 state UP group default qlen 1000
link/ether a6:c2:8b:94:94:a5 brd ff:ff:ff:ff:ff:ff
25: fwln102i0@fwpr102p0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master fwbr102i0 state UP group default qlen 1000
link/ether 36:7f:7d:01:58:71 brd ff:ff:ff:ff:ff:ff
28: vmbr1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 1c:fd:08:73:08:53 brd ff:ff:ff:ff:ff:ff
inet 192.168.30.2/24 scope global vmbr1
valid_lft forever preferred_lft forever
inet6 fe80::1efd:8ff:fe73:853/64 scope link
valid_lft forever preferred_lft forever
 
Last edited:
BTW, I can not set GW for enp5s0 nor vmbr1. The error I got was "GW already exist on vmbr0". However, I think that I will need to set GW for 192.168.30.2 subnet.
Thats normal. There can only be one gateway where all packets, that are not part of the subnets the PVE host got an IP in, will be send to.

Outputs look fine.
 

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!