Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Chcę zrobić dhcp na ath1:
etc/dhcp3/dhcpd.conf
ddns-update-style ad-hoc; subnet 192.168.2.0 netmask 255.255.255.0 { range 192.168.2.10 192.168.2.20; default-lease-time 3600; option domain-name "ble.pl"; option domain-name-servers 192.168.1.1; option netbios-name-servers 192.168.2.1; option routers 192.168.2.1; option subnet-mask 255.255.255.0; option broadcast-address 192.168.2.255; }
/etc/default/dhcp3-server
# Defaults for dhcp initscript # sourced by /etc/init.d/dhcp # installed at /etc/default/dhcp3-server by the maintainer scripts # # This is a POSIX shell fragment # # On what interfaces should the DHCP server (dhcpd) serve DHCP requests? # Separate multiple interfaces with spaces, e.g. "eth0 eth1". INTERFACES="ath1"
ifconfig
ath1 Link encap:Ethernet HWaddr 06:14:78:8f:5f:cb inet addr:192.168.2.1 Bcast:192.168.2.255 Mask:255.255.255.0 inet6 addr: fe80::414:78ff:fe8f:5fcb/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:468 (468.0 B) eth0 Link encap:Ethernet HWaddr 00:40:63:cc:02:d5 inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::240:63ff:fecc:2d5/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:4334 errors:0 dropped:0 overruns:0 frame:0 TX packets:3395 errors:6 dropped:0 overruns:0 carrier:6 collisions:2263 txqueuelen:1000 RX bytes:384142 (375.1 KiB) TX bytes:1578275 (1.5 MiB) Interrupt:10 Base address:0xec00 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:560 (560.0 B) TX bytes:560 (560.0 B) wifi0 Link encap:UNSPEC HWaddr 00-14-78-8F-5F-CB-65-74-00-00-00-00-00-00-00-00 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:29 errors:0 dropped:0 overruns:0 frame:1 TX packets:84 errors:4 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:280 RX bytes:3560 (3.4 KiB) TX bytes:5510 (5.3 KiB) Interrupt:11
/etc/init.d/dhcp3-server restart
Stopping DHCP server: dhcpd3 failed! Starting DHCP server: dhcpd3check syslog for diagnostics. failed! failed!
syslog
Oct 24 13:45:08 serwer dhcpd: Wrote 0 leases to leases file. Oct 24 13:45:08 serwer dhcpd: Can't bind to dhcp address: Address already in use Oct 24 13:45:08 serwer dhcpd: Please make sure there is no other dhcp server Oct 24 13:45:08 serwer dhcpd: running and that there's no entry for dhcp or Oct 24 13:45:08 serwer dhcpd: bootp in /etc/inetd.conf. Also make sure you Oct 24 13:45:08 serwer dhcpd: are not running HP JetAdmin software, which Oct 24 13:45:08 serwer dhcpd: includes a bootp server.
netstat -l
Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 *:sunrpc *:* LISTEN tcp 0 0 *:54768 *:* LISTEN tcp 0 0 *:domain *:* LISTEN tcp 0 0 *:ssh *:* LISTEN tcp 0 0 localhost:smtp *:* LISTEN tcp6 0 0 [::]:domain [::]:* LISTEN tcp6 0 0 [::]:ssh [::]:* LISTEN udp 0 0 *:domain *:* udp 0 0 *:951 *:* udp 0 0 *:34367 *:* udp 0 0 *:bootps *:* udp 0 0 *:sunrpc *:* udp6 0 0 [::]:domain [::]:* Active UNIX domain sockets (only servers) Proto RefCnt Flags Type State I-Node Path unix 2 [ ACC ] STREAM LISTENING 5153 /var/run/acpid.socket unix 2 [ ACC ] STREAM LISTENING 5173 /var/run/dbus/system_bus_socket
No i się nie da ;)
Offline
tak jak napisane ... cos juz slucha na pocie 67 ... jak do netstat -l dodasz przelacznik -p to zobaczych pid procesu ktory tam siedzi ...
Offline
Ok dnsmasq miałem włączony :D dzięki :P
Offline