Freesco, NND, CDN, EOS http://forum.freesco.pl/ |
|
DHCP i zmiana portu http://forum.freesco.pl/viewtopic.php?f=24&t=15851 |
Strona 1 z 1 |
Autor: | xxadas [ niedziela, 26 sierpnia 2007, 15:24 ] |
Tytuł: | DHCP i zmiana portu |
Witam, Czy któryś z forumowiczów zmagał się z tym tematem? Potrzebuję zmienić port DHCP na 10067. Wiem, że powniniem zmienić go wywołując z parametrem -p nr_portu Jednak kiedy robię /etc/rc.d/dhcpd -p 10067 start serwer nie uruchamia się. Jeśli natomiast wywołam : . . . zabieg nie odnosi skutku. Podobnie chcę zmienić port tftpd, ale to już inna historia. [root@devel sbin]# netstat -an Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN tcp 0 52 192.168.0.10:22 172.16.0.6:4336 ESTABLISHED udp 0 0 0.0.0.0:67 0.0.0.0:* udp 0 0 0.0.0.0:69 0.0.0.0:* raw 0 0 0.0.0.0:1 0.0.0.0:* 7 Active UNIX domain sockets (servers and established) Proto RefCnt Flags Type State I-Node Path unix 6 [ ] DGRAM 180 /dev/log unix 2 [ ] DGRAM 19945 unix 2 [ ] DGRAM 19743 unix 3 [ ] STREAM CONNECTED 7477 unix 3 [ ] STREAM CONNECTED 7476 unix 2 [ ] DGRAM 797 unix 2 [ ] DGRAM 292 [root@devel sbin]# |
Autor: | zciech [ niedziela, 26 sierpnia 2007, 19:06 ] |
Tytuł: | |
Jesli byś był laskaw zajrzec do pliku /etc/rc.d/dhcpd to wiele by Ci sie wyjaśniło ![]() |
Autor: | Maciek [ niedziela, 26 sierpnia 2007, 20:03 ] |
Tytuł: | |
No nie sądzę, żeby mu to coś wyjaśniło. Wg mnie, niech fachowcy sprostują, jeśli się mylę, serwer dhcp nie pracuje na żadnym porcie, przynajmniej u mnie netstat -l ani też zapuszczony w sieci nmap nie pokazuje, żadnego portu na którym jest taka usługa. Zatem nie można też portu zmienić. Dhcp rozgłasza się po tak zwanym broadcaście, o ile dobrze pamiętam i komputery klienckie nie szukają go na portach tylko na interfejsie. Po numerze portu (1067) raczej byłbym skłonny przypuszczać, że autor miał na myśli dns, a nie dhcp. Ale tu też zmiana portu wydaje się mało sensowna. |
Autor: | xxadas [ niedziela, 26 sierpnia 2007, 20:08 ] |
Tytuł: | |
Czytałem ten oraz kilka innych plików zanim napisałem na forum. Szukałem też na w istniejących już forach (to tak dla jasności). Nadal jednak nie potrafię uruchomić DHCP na pożądanym przez siebie porcie. Mimo wszystko dziękuję za dobre chęci. |
Autor: | xxadas [ niedziela, 26 sierpnia 2007, 20:10 ] |
Tytuł: | |
Maćku, chodziło mi o port 10067. Na tym porcie działają usługi PXE (jeśli dobrze to nazwałem). Dla podparcia swoich twierdzeń kawałek manuala: You can download the windows tool for updating the firmware from hp.com (combined BOOTP+TFTP server, it will need an ancient Java implementation running on the machine, search the web), or (very very much preferred), set up Linux to update the firmware: Configure a BOOTP server to run at port 10067 and serve out an IP address and a filename (to the firmware file). Easiest is to use the stock ISC DHCP with something like: range dynamic-bootp 192.168.0.100 192.168.0.140; in the file "/etc/dhcpd.conf" (the point was the dynamic-bootp), then start it with: dhcpd -p 10067 -cf custom-config-file-for-this-purpose Run a TFTP server at port 10069, handing out the firmware file specified by the filename in the file "dhcpd.conf". Register the port in the file "/etc/services", then copy the line in inetd.conf for the TFTP and put it on that port as well. Chcę uruchmić NND na bezdyskowym terminalu. Samo TFTP działa dobrze (sprawdzałem z innym urzązeniem), niezbędna jednak jest dla mnie zmiana portu obu usług (czyli DHCP oraz tftp). |
Autor: | czerwo [ niedziela, 26 sierpnia 2007, 20:13 ] |
Tytuł: | |
To moze trzeba wpisac: dhcpd -p 10000 |
Autor: | xxadas [ niedziela, 26 sierpnia 2007, 20:14 ] |
Tytuł: | |
W ten sposób nie startuje (bynajmniej u mnie). |
Autor: | czerwo [ niedziela, 26 sierpnia 2007, 20:25 ] |
Tytuł: | |
[root@router_nnd ~]# killall dhcpd [root@router_nnd ~]# killall dhcpd dhcpd: no process killed [root@router_nnd ~]# dhcpd -p 10801 binding to user-specified port 10801 Internet Systems Consortium DHCP Server V3.0.4 Copyright 2004-2006 Internet Systems Consortium. All rights reserved. For info, please visit http://www.isc.org/sw/dhcp/ Wrote 0 deleted host decls to leases file. Wrote 0 new dynamic host decls to leases file. Wrote 1 leases to leases file. Listening on LPF/eth1/00:e0:4c:a0:21:04/10.10.10/24 Sending on LPF/eth1/00:e0:4c:a0:21:04/10.10.10/24 No subnet declaration for eth0 (83.3.218.158). ** Ignoring requests on eth0. If this is not what you want, please write a subnet declaration in your dhcpd.conf file for the network segment to which interface eth0 is attached. ** Sending on Socket/fallback/fallback-net [root@router_nnd ~]# ps x | grep dhcpd 19932 ? Ss 0:00 dhcpd -p 10801 19952 pts/0 S+ 0:00 grep dhcpd [root@router_nnd ~]# |
Autor: | xxadas [ niedziela, 26 sierpnia 2007, 20:29 ] |
Tytuł: | |
Dziękuję! Podczas dołowania DHCP poprzez /etc/rc.d/dhcpd stop i uruchomieiu w/w sposób usługa startowała na defualtowym porcie. Po użyciu killall |
Autor: | czerwo [ niedziela, 26 sierpnia 2007, 21:20 ] |
Tytuł: | |
czytaj czytaj i jeszcze raz czytaj!!! wyraznie napisal: There's already a DHCP server running. |
Strona 1 z 1 | Strefa czasowa UTC+2godz. |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |