Buster and multiple virtual nic

Kernels & Hardware, configuring network, installing services

Buster and multiple virtual nic

Postby GabrieleMax » 2019-07-31 19:52

Hi guys,

here below you can read my interface file:

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug enp0s25
iface enp0s25 inet dhcp

I need to add other networks (from dhcp I got 192.168.201.x) like 192.168.x.x because I need to configure devices like ipcam, printers, etc.

I'd like also to enable a "local" dhcp server because sometimes the devices don't have a fixed ip address.

I thought to do something like
allow-hotplug enp0s25
iface enp0s25 inet dhcp

iface enp0s25:0 inet static

iface enp0s25:1 inet static
address (where I could enable dhcp server!)

What I wrote I know is not right, I'm here to understand how solve this problem! :)
I don't understand also how I could enable dhcp server on a virtual nic :? :?

Posts: 68
Joined: 2016-09-07 20:24
Location: Senigallia

Re: Buster and multiple virtual nic

Postby ruwolf » 2019-08-07 06:58

Does Ubuntu Wiki not help you?
wiki.ubuntu.com: vlan
User avatar
Posts: 392
Joined: 2008-02-18 05:04
Location: Slovakia, Banovce nad Bebravou, Matice slovenskej 1260/4-7

Return to System configuration

Who is online

Users browsing this forum: No registered users and 11 guests