Marouane LAARIF scribbles

No Built-in Ethernet? No Problem! USB Ethernet on Proxmox Explained

Setting up Ethernet over USB on a Proxmox server is a common scenario, especially when your hardware lacks a built-in Ethernet port, or you need an additional network interface. Here’s a step-by-step guide on how to do it:

Important Considerations:


Steps to Configure Ethernet over USB in Proxmox:

We’ll primarily be working with the /etc/network/interfaces file, which is where Proxmox manages its network configuration.

1. Connect the USB Ethernet Adapter:

2. Identify the USB Ethernet Interface:

1ip a

or

1ifconfig -a

3. Edit the Network Configuration File:

1nano /etc/network/interfaces

4. Add a New Network Bridge for the USB Adapter:

Proxmox uses Linux bridges (vmbrX) to manage network interfaces and allow VMs/containers to access the physical network. You’ll create a new bridge and assign your USB Ethernet interface to it.

1auto vmbr1
2iface vmbr1 inet dhcp
3bridge-ports enx0123456789ab
4bridge-stp off
5bridge-fd 0

Add the following lines, replacing enx0123456789ab with your USB Ethernet interface name, 192.168.1.10/24 with your desired IP address and subnet mask, and 192.168.1.1 with your gateway:

1   auto vmbr1
2   iface vmbr1 inet static       
3		address 192.168.1.10/24
4		gateway 192.168.1.1
5		bridge-ports enx0123456789ab
6		bridge-stp off
7		bridge-fd 0

5. Save and Apply Changes:

 systemctl restart networking

Then, you can verify the status:

systemctl status networking

And apply changes in the Proxmox GUI by clicking “Apply Configuration” in the Network section of your node.

reboot

6. Verify Network Connectivity:

ip a

Verify that vmbr1 (or whatever bridge name you used) has an IP address.

ping google.com

or ping an IP address on your local network.

#homelab #proxmox #devops

Reply to this post by email ↪