to dziwne bo ja mam zrobione to w ten sposób tylko ze bez podwójnego adresu na tej karcie sieciowej czyli router ma 10.0.0.1/8
a w pliku dhcpd.conf jest:
ddns-update-style=ad-hoc;
option domain-name "siec_ipak";
option domain-name-servers 194.204.159.1, 194.204.152.34;
option subnet-mask 255.255.255.0;
default-lease-time 26000;
max-lease-time 84000;
subnet 10.0.0.0 netmask 255.255.255.0 {
range 10.0.0.2 10.0.0.3; #Zakres przydzielanych adresów
option broadcast-address 10.0.0.255; #Adres rozgłoszeniowy
option routers 10.0.0.1; #Brama domyślna
}
host DTP_PC2 {
hardware ethernet 00:0A:E6:C8:17:D7;
fixed-address 10.0.0.21;
option broadcast-address 10.0.0.255;
option routers 10.0.0.1;
}
host DTP_MAC1 {
hardware ethernet 00:0D:93:56:A4:CE;
fixed-address 10.0.0.22;
option broadcast-address 10.0.0.255;
option routers 10.0.0.1;
}
host DTP_MAC2 {
hardware ethernet 00:0D:93:35:1C:0A;
fixed-address 10.0.0.23;
option broadcast-address 10.0.0.255;
option routers 10.0.0.1;
}
host Sigma {
hardware ethernet 00:30:05:7F:39:04;
fixed-address 10.10.10.3;
option broadcast-address 10.10.10.255;
option routers 10.0.0.1;
}
host Shooter {
hardware ethernet 00:11:D8:3C:BA:43;
fixed-address 10.10.10.2;
option broadcast-address 10.10.10.255;
option routers 10.0.0.1;
}
host Meta {
hardware ethernet 00:11:D8:30:42:92;
fixed-address 10.10.10.1;
option broadcast-address 10.10.10.255;
option routers 10.0.0.1;
}
zaznaczam że to działa bez problemu ale chciałem zrobić to bardziej eleganco zeby bramka byla z tej samej klasy i jak zmieniam w sekcji przynaleznej do danego hosta option routers na 10.10.10.254 to dalej przyznaje bramke 10.0.0.1