Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 5956

Setting up a DHCP server on Ubuntu for several network cards [closed]

$
0
0

I have a server with 8 network cards. I'm trying to configure it so that the first network connection (enp9s0) looks at the provider, receives the Internet, and the rest of the network devices look at the local network and distribute IP addresses from the same subnet so that PCs can access the Internet through enp9s0. That is, to have some kind of router. Ubuntu 22.04 server installed. Installed DHCPsudo apt install isc-dhcp-server I made the following settings in the /etc/dhcp/dhcpd.conf file:

subnet 192.168.12.0 netmask 255.255.255.0 {  range 192.168.12.100 192.168.12.200;  option routers 192.168.12.1;  option subnet-mask 255.255.255.0;  option broadcast-address 192.168.12.255;  option domain-name-servers 8.8.8.8, 8.8.4.4;  interface enp7s0;  default-lease-time 600;  max-lease-time 7200;}

appliedI registered an address from this subnet for each network on this server. But only the device that is connected to enp7s0 receives the address. The rest, which are connected to enp6s0, enp5s0, enp4s0, etc. They don't receive addresses.

I tried to write two lines like:

interface enp7s0;interface enp6s0;interface enp5s0;

or separated by commas:interface enp7s0, enp6s0, enp5s0;But I still get an error and DHCP does not work at all.Ideally, I would like network cards to receive an address via DHCP.


Viewing all articles
Browse latest Browse all 5956

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>