View previous topic :: View next topic |
Author |
Message |
stiki1 n00b

Joined: 03 Aug 2006 Posts: 42 Location: Bydgoszcz, Poland
|
Posted: Fri Aug 04, 2006 12:46 pm Post subject: Problem z DHCP. |
|
|
Mam pewien problem, którego natury niestety nie rozumiem.
Sytuacja wygląda tak:
- kiedy w rc, w runlevel default jest "net.eth0", system zawiesza się w momencie gdy odpalony zostaje ten skrypt startowy.
- kiedy z rc usunę "net.eth0", po zalogowaniu się do systemu, robię następujące czynności:
Code: | 1. localhost stiki # ifconfig eth0 hw ether 00:04:61:58:56:D0
2. localhost stiki # ifconfig eth0 up
3. localhost stiki # ifconfig
4. eth0 Link encap:Ethernet HWaddr 00:04:61:58:56:D0
5. UP BROADCAST MULTICAST MTU:1500 Metric:1
6. RX packets:1 errors:0 dropped:0 overruns:0 frame:0
7. TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
8. collisions:0 txqueuelen:1000
9. RX bytes:64 (64.0 b) TX bytes:0 (0.0 b)
10. Interrupt:217
11.
12. lo Link encap:Local Loopback
13. inet addr:127.0.0.1 Mask:255.0.0.0
14. UP LOOPBACK RUNNING MTU:16436 Metric:1
15. RX packets:8 errors:0 dropped:0 overruns:0 frame:0
16. TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
17. collisions:0 txqueuelen:0
18. RX bytes:400 (400.0 b) TX bytes:400 (400.0 b)
19.
20. localhost stiki # dhcpcd eth0
21. Error, timed out waiting for a valid DHCP server response
22. localhost stiki # dhcpcd eth0 | I dopiero po takim zabiegu mam internet. Czy jest jakaś możliwość aby robiło się automatycznie przy starcie systemu? _________________ And when he gets to heaven,
to St. Peter he will tell:
"I served my time in hell." |
|
Back to top |
|
 |
Kurt Steiner Bodhisattva


Joined: 01 Apr 2005 Posts: 1050 Location: Ostroleka, Polska
|
Posted: Fri Aug 04, 2006 1:13 pm Post subject: |
|
|
stiki1 wrote: | - kiedy w rc, w runlevel default jest "net.eth0", system zawiesza się w momencie gdy odpalony zostaje ten skrypt startowy. | 1. Jaką masz zawartość /etc/conf.d/net?
2. Skąd wiesz, że się wiesza? Może poprostu czeka na odpowiedź z DHCP? Ile czasu czekasz? |
|
Back to top |
|
 |
stiki1 n00b

Joined: 03 Aug 2006 Posts: 42 Location: Bydgoszcz, Poland
|
Posted: Fri Aug 04, 2006 1:17 pm Post subject: |
|
|
1. Code: | localhost init.d # cat /etc/conf.d/net
iface_eth0="dhcp"
#mac_eth0="00:04:61:58:56:D0"
iface_eth1="dhcp"
iface_eth2="dhcp"
iface_eth3="dhcp"
iface_eth4="dhcp"
dhcpcd_eth0=""
|
2. Włączyłem komputer, wyszedłem i nie było mnie jakieś 2h - stąd mniemam, że się wiesza. _________________ And when he gets to heaven,
to St. Peter he will tell:
"I served my time in hell." |
|
Back to top |
|
 |
Kurt Steiner Bodhisattva


Joined: 01 Apr 2005 Posts: 1050 Location: Ostroleka, Polska
|
Posted: Fri Aug 04, 2006 1:32 pm Post subject: |
|
|
Zobacz czy zmiana "iface" na "config" nie pomoze - jakis czas temu byla zmiana. Jakis czas temu też mi to troche nerwow sprawilo. |
|
Back to top |
|
 |
Yatmai Veteran


Joined: 12 Nov 2005 Posts: 1501 Location: Kraków
|
Posted: Fri Aug 04, 2006 4:37 pm Post subject: |
|
|
Kurt Steiner wrote: | Zobacz czy zmiana "iface" na "config" nie pomoze - jakis czas temu byla zmiana. Jakis czas temu też mi to troche nerwow sprawilo. |
Hmm jak instalowałem poraz pierwszy Gentoo w wersi 2004.3 w poradniku nie było żadnego iface, tylko właśnie config... Chyba, że w najnowszej wersji coś takiego wprowadzili
EDIT
Code: | 20. localhost stiki # dhcpcd eth0
21. Error, timed out waiting for a valid DHCP server response
22. localhost stiki # dhcpcd eth0 |
A tak swoją drogą... To chyba powinno być automatycznie zrobione podczas ifconfig eth0 up, wynikało by więc, że system nie wie jak ma wstawić/uzyskać ip  _________________ Desktop: [Ath64 X2 2GB DDR2 GF76GT] [amd64] [2.6.29-gentoo] [nVidia] [KDE 3.5.10]
Lapek: [HP nc6000] [i686] [2.6.29-ARCH] [ati-open] [KDE 3.5.10] |
|
Back to top |
|
 |
Polin Guru


Joined: 09 Oct 2004 Posts: 318
|
Posted: Fri Aug 04, 2006 4:44 pm Post subject: |
|
|
Spróbuj w configu wpisać tak:
Code: | config_eth0=( "dhcp" ) |
Spacje między ( i ) a ".
Last edited by Polin on Fri Aug 04, 2006 9:12 pm; edited 1 time in total |
|
Back to top |
|
 |
stiki1 n00b

Joined: 03 Aug 2006 Posts: 42 Location: Bydgoszcz, Poland
|
Posted: Fri Aug 04, 2006 5:14 pm Post subject: |
|
|
Hmmm.. ujmę to tak:
mam dwa kernele, różniące się tylko tym, że dodałem obsługę ACPI.
Na kernelu 2.6.15-gentoo-r5 - system ładuje się, DHCP otrzymuje IP (jest to kernel który był w systemie po instalacji).
Na kernelu 2.6.17-gentoo-r4 - tym, do którego dodałem obsługę ACPI, DHCP nie otrzymuje IP i system się zawiesza podcas bootowania..
Podczas budowania kernela użyłem konfigu z poprzedniego...
/EDIT:
Wszystko działa. Zamieniłem klienta DHCP z dhcpcd na dhclient. _________________ And when he gets to heaven,
to St. Peter he will tell:
"I served my time in hell." |
|
Back to top |
|
 |
|