Thread View: pl.comp.os.freebsd
4 messages
4 total messages
Started by pmz
Sat, 24 Sep 2005 15:25
DHCPd
Author: pmz
Date: Sat, 24 Sep 2005 15:25
Date: Sat, 24 Sep 2005 15:25
59 lines
2754 bytes
2754 bytes
Witam serdecznie !
Mam N maszyn do rozlozenia w subnety i chcialem zrobic to mniej
wiecej tak:
192.168.10.1 - router
192.168.11.2/50 - maszyny z grupy 0
192.168.20.1/50 - maszyny z grupy A
192.168.40.1/50 - maszyny z grupy B
Skonfigurowalem ladnie DNS'y, tj. kazdej maszynie przydzielilem
dane i jednak zatrzymalem sie przy dhcpd. Jakoze kazda maszyna musi
byc w pelni 'auto', tj. ma miec wszystko co sie da przydzielane via
dhcpd.
I problem polega na samym dhcpd.conf'ie, mianowicie, który to wyglada
tak:
option domain-name "acm";
option domain-name-servers 192.168.10.1;
option subnet-mask 255.255.255.0;
default-lease-time 86399;
max-lease-time 86400;
ddns-update-style none;
subnet 192.168.10.0 netmask 255.255.255.0 {
range 192.168.10.150 192.168.10.254;
option routers 192.168.10.1;
}
#subnet 192.168.11.0 netmask 255.255.255.0 {
# option routers 192.168.10.1;
#}
#subnet 192.168.20.0 netmask 255.255.255.0 {
# option routers 192.168.10.1;
#}
/* ... */
Jednak problem jest nastepujacy, przydzielam subnety do jednego
interface'u sieciowego (rl0), co sie dhcpd nie podoba. Czy jedynym
wyjsciem jest dodanie kart sieciowych? Mozna jakos emulowac
interface'y ?
Drugim problemem jest routing, rc.conf wyglada tak:
router_flags="-q"
router="/sbin/routed"
router_enable="YES"
static_routes="acmoffice"
route_acmoffice="-net 192.168.10.0/24"
i to chodzi, ale narazie mam tylko subnet 192.168.10.0/24, kiedy dodam
11,20,30,40,N, nie bedzie osiagalny internet na tamtych maszynach.
Jak to sprytnie rozwiazac?
Szczerze dziekuje za wszelka pomoc i pozdrawiam,
Przemek
Re: DHCPd
Author: pmz
Date: Sat, 24 Sep 2005 16:03
Date: Sat, 24 Sep 2005 16:03
3 lines
1287 bytes
1287 bytes
Pardon me, mój blad. dhcpd.conf -> shared-network. P.
Re: DHCPd
Author: pmz
Date: Sat, 24 Sep 2005 17:21
Date: Sat, 24 Sep 2005 17:21
26 lines
1995 bytes
1995 bytes
Jednak wciąż istnieje pewien problem ...
DHCPd skonfigurowałem tak:
shared-network AcmOffice {
option routers 192.168.10.1;
subnet 192.168.10.0 netmask 255.255.255.0 {
}
subnet 192.168.11.0 netmask 255.255.255.0 {
option routers 192.168.10.1;
}
subnet 192.168.20.0 netmask 255.255.255.0 {
option routers 192.168.10.1;
}
subnet 192.168.168.0 netmask 255.255.255.0 {
range 192.168.168.0 192.168.168.255;
option routers 192.168.10.1;
}
}
I jest sobie maszyna, dostaje IP 192.168.11.10, jednak nie moge pingnac
z niej serwera od którego dostała IP. Domyślam się, ze problem jest
z routingiem po stronie serwera, ale jaki ?
Dziękuje za pomoc i pozdrawiam,
Przemek
Re: DHCPd
Author: pmz
Date: Sat, 24 Sep 2005 18:54
Date: Sat, 24 Sep 2005 18:54
30 lines
2292 bytes
2292 bytes
Okay, troche nowych informacji:
(Action @ 192.168.11.10 ):
if( route add default 192.168.10.1 ) => result => Network is
unreachable
if( route add default 192.168.11.1 ) => result => Ok, route added.
netstat -rt pokazuje, że default ma iść do 192.168.11.1, czyli
teoretycznie ok.
praktycznie, ping 192.168.11.1 nie pokazuje żadnych sensacji - nie
wraca.
Z innej beczki, czy fakt, że 192.168.10.1 jest przypisanym IP do
interface'u rl0 na routerze a 192.168.11.1 jest tylko aliasem do tego
interface'u, ma jakieś znaczenie w moim problemie ?
Pozdrawiam i dziękuje,
Przemek
PS. ~schemat:
|
[router]
(192.168.10.1/192.168.11.1/192.168.20.1 @ rl0)
|
[Catalyst]
|
+-------------------+-------------------+
| | |
[ 192.168.11.0/24 ] [ 192.168.10.0/24 ] [ 192.168.20.0/24 ]
| | | | | | | | | | | | | | | | | | | | | | | | | |
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads