Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Buster and multiple virtual nic

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
GabrieleMax
Posts: 126
Joined: 2016-09-07 20:24
Location: Senigallia (AN) - Italy
Has thanked: 4 times
Been thanked: 1 time
Contact:

Buster and multiple virtual nic

#1 Post by GabrieleMax »

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
address 192.168.0.250/24

iface enp0s25:1 inet static
address 10.0.0.250/24 (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 :? :?

Regards.
GabrieleMax

User avatar
ruwolf
Posts: 623
Joined: 2008-02-18 05:04
Location: Banovce nad Bebravou
Has thanked: 35 times
Been thanked: 26 times

Re: Buster and multiple virtual nic

#2 Post by ruwolf »

Does Ubuntu Wiki not help you?
wiki.ubuntu.com: vlan

Post Reply