Linux Distributed Switch Architecture with Local Option82 ISC DHCP server/DHCP relay

Simon Hobson dhcp1 at thehobsons.co.uk
Tue Nov 24 17:21:00 UTC 2020


remi rsd <remi.salard at wabtec.com> wrote:

> I tried another way:
> 
> shared-network my_bridge {
>   subnet 172.20.31.0 netmask 255.255.255.0 {}
>   subnet 172.20.32.0 netmask 255.255.255.0 {}
>   subnet 172.20.33.0 netmask 255.255.255.0 {}
>   subnet 172.20.34.0 netmask 255.255.255.0 {}
> 
>   subnet 192.168.1.0 netmask 255.255.255.0 {
>      option routers 192.168.1.20;
>      option broadcast-address 192.168.1.255;
>      option domain-name-servers 192.168.1.20;
>      option domain-name "bus-1";
> 
> 
> 			class "port1" {
> 				match if option agent.circuit-id = "port1";
> 			}
> 			pool {
> 				allow members of "port1";
> 				range 192.168.1.31;
> 			}

Just be aware that class statements  are global in scope no matter where in the config file you place them. It's best to define them in the global scope to avoid confusion - in more complex setups it can cause some "interesting" option inheritance problems.

Simon



More information about the dhcp-users mailing list