Zmieniłem linuxa na ubuntu 10.10
zainstalowałem serwer dhcp
Wrzucę kod z terminala, może coś wam się nasunie co jest nie tak:
Kod:
ubuntu1@ubuntu1:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:27:be:c7:ed
inet addr:192.168.1.102 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:febe:c7ed/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3200 errors:0 dropped:0 overruns:0 frame:0
TX packets:2473 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3392181 (3.3 MB) TX bytes:292887 (292.8 KB)
eth1 Link encap:Ethernet HWaddr 08:00:27:17:6b:0c
inet addr:192.168.56.101 Bcast:192.168.56.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe17:6b0c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:165 errors:0 dropped:0 overruns:0 frame:0
TX packets:40 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:29064 (29.0 KB) TX bytes:7569 (7.5 KB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:480 (480.0 B) TX bytes:480 (480.0 B)
ubuntu1@ubuntu1:~$
adres eth1 jest otrzymany przez VB.
Proszę o info jakie adresy wprowadzic do konfiguracji dhcpd.conf aby coś mogło ruszyć, Pewnie coś mi się już pomieszało i źle zaadresowałem.
Kod:
subnet 192.168.20.0 netmask 255.255.255.0 {
option routers 192.168.20.1;
option subnet-mask 255.255.255.0;
option domain-name-servers 192.168.20.1;
range 192.168.20.100 192.168.20.200;
default-lease-time 21600;
max-lease-time 86400;
}
i wywala mi takie coś:
Kod:
ubuntu1@ubuntu1:~$ sudo /etc/init.d/dhcp3-server start
* Starting DHCP server dhcpd3 * check syslog for diagnostics.
[fail]
ubuntu1@ubuntu1:~$
a to syslog:
Kod:
ubuntu1@ubuntu1:~$ sudo tail -f /var/log/syslog | grep -i dhcp
Jan 6 21:43:33 ubuntu1 dhcpd: Wrote 0 leases to leases file.
Jan 6 21:43:33 ubuntu1 dhcpd:
Jan 6 21:43:33 ubuntu1 dhcpd: No subnet declaration for eth1 (192.168.56.101).
Jan 6 21:43:33 ubuntu1 dhcpd: ** Ignoring requests on eth1. If this is not what
Jan 6 21:43:33 ubuntu1 dhcpd: you want, please write a subnet declaration
Jan 6 21:43:33 ubuntu1 dhcpd: in your dhcpd.conf file for the network segment
Jan 6 21:43:33 ubuntu1 dhcpd: to which interface eth1 is attached. **
Jan 6 21:43:33 ubuntu1 dhcpd:
Jan 6 21:43:33 ubuntu1 dhcpd:
Jan 6 21:43:33 ubuntu1 dhcpd: Not configured to listen on any interfaces!
Macie jakieś pomysły ??