shorthand for "hardware" spec with multiple IP aliases for a single interface?

terrygalant.lists at fastest.cc terrygalant.lists at fastest.cc
Thu Aug 14 14:45:24 UTC 2014


I'm setting up my DHCPD server to assign multiple IP aliases to a single host.

In /etc/dhcpd.conf, this works

	shared-network "home" {
		subnet 10.10.8.0 netmask 255.255.255.0 {
			option subnet-mask 255.255.255.0;
			option routers 10.10.11.100;
		}
		subnet 10.155.1.0 netmask 255.255.255.0 {
			option subnet-mask 255.255.255.0;
			option routers 10.155.1.100;
		}
	}

	group {
		host example0 {hardware ethernet aa:bb:cc:dd:ee:ff; fixed-address 10.10.11.26;}
		host example1 {hardware ethernet aa:bb:cc:dd:ee:ff; fixed-address 10.155.1.26;}
	}

Is a 'shorthand' possible for the repeated, single 'hardware' specification?

I.e., something like (THIS, specifically, doesn't actually work ...)

	group {
		hardware ethernet aa:bb:cc:dd:ee:ff;
		host example0 {fixed-address 10.10.11.26;}
		host example1 {fixed-address 10.155.1.26;}
	}

to avoid the redundant statment?


Thanks,

Terry


More information about the dhcp-users mailing list