Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem z DHCP.
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) Instalacja i sprzęt
View previous topic :: View next topic  
Author Message
stiki1
n00b
n00b


Joined: 03 Aug 2006
Posts: 42
Location: Bydgoszcz, Poland

PostPosted: Fri Aug 04, 2006 12:46 pm    Post subject: Problem z DHCP. Reply with quote

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
View user's profile Send private message
Kurt Steiner
Bodhisattva
Bodhisattva


Joined: 01 Apr 2005
Posts: 1050
Location: Ostroleka, Polska

PostPosted: Fri Aug 04, 2006 1:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
stiki1
n00b
n00b


Joined: 03 Aug 2006
Posts: 42
Location: Bydgoszcz, Poland

PostPosted: Fri Aug 04, 2006 1:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
Kurt Steiner
Bodhisattva
Bodhisattva


Joined: 01 Apr 2005
Posts: 1050
Location: Ostroleka, Polska

PostPosted: Fri Aug 04, 2006 1:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
Yatmai
Veteran
Veteran


Joined: 12 Nov 2005
Posts: 1501
Location: Kraków

PostPosted: Fri Aug 04, 2006 4:37 pm    Post subject: Reply with quote

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 :D

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
View user's profile Send private message
Polin
Guru
Guru


Joined: 09 Oct 2004
Posts: 318

PostPosted: Fri Aug 04, 2006 4:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
stiki1
n00b
n00b


Joined: 03 Aug 2006
Posts: 42
Location: Bydgoszcz, Poland

PostPosted: Fri Aug 04, 2006 5:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) Instalacja i sprzęt All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum