problem dhclient to get dynamic IP-address
Hello, To see if anybody can help me. I always had fixed IP-addresses on my laptop that I change easily (PCMCIA card) with instruction #> cardctl scheme scheme_name (after configuring /etc/pcmcia/network.opts). Now I have to work in a service where there is no fixed IP-address, only dynamic IP-addresses. Three years ago I had no problems with rcdhclient in the same service with just one little problem: I had to set up a trial time of at least 20s to request a dynamic IP-address in /etc/rc.config (SuSE 7.1 I think) because the DHCP servor was a little too slow to give a dynamic IP-address. Right now I am working with SuSE 7.3 and dhclient seems to work but apparently too fast and impossible to get a dynamic IP-address (it is frustrating because that damned Windoze machine has no problem to connect to the network). There is no more line in /etc/rc.config with SuSE-7.3 to configure a longer trial time to ask for a dynamic IP-address (at least send many requests within 20 seconds). Does anybody know how I can configure dhclient to make several requests to the dhcp servor? Or can there be another problem but dhclient seems to be a straightforward soft and it worked three years ago (with a request time of at least 20 seconds though). -- Alain Barthélemy bartydeux@gminformatique.com cassandre@gminformatique.com Voyez mon site web sur: http://bartydeux.gminformatique.com Ma généalogie et la petite histoire de Herve et sa région ----- End forwarded message ----- -- Qui fut le plus à plaindre: Cassandre que personne n'écouta ou ceux qui n'écoutaient pas Cassandre ====== Who was more to be pitied Cassandra whom nobody listened to or those who were not listening to Cassandra -- Alain Barthélemy bartydeux@gminformatique.com cassandre@gminformatique.com Voyez mon site web sur: http://bartydeux.gminformatique.com Ma généalogie et la petite histoire de Herve et sa région
I am currently doing that with SuSE 8.0. I easily set it up under YaST2. You can also set up a timeout value. On the same laptop I previously used YaST1. Under YaST1 on 7.3, you can set up alternate profiles, which is convenient. I have a situation where I have 3 places with dynamic IP addresses (home, work, and where I teach weekly), ond one place where we have our monthly meetings, where we have a fixed IP address. With YaST1, I was able to set them both up and simply deactivate one and activate the other. With 8.0, under YaST2, I must enter the static IP each time. But, in the case of dhcp, whether YaST1 on 7.3 or YaST2 DHCP worked fine. Under YaST1: System Admin Network Configuration Network Base Configuration set up [0] for one and [1] for the other. One thing I found under 8.0, is that sometimes on boot DHCP would not always obtain an IP address. Most of the time simply popping the card caused it to work. I did play around with the time values a bit. I think the default is 999999 (infinite). On 7 Oct 2002 at 23:39, Alain Barthélemy wrote:
Hello,
To see if anybody can help me. I always had fixed IP-addresses on my laptop that I change easily (PCMCIA card) with instruction #> cardctl scheme scheme_name (after configuring /etc/pcmcia/network.opts).
Now I have to work in a service where there is no fixed IP-address, only dynamic IP-addresses. Three years ago I had no problems with rcdhclient in the same service with just one little problem: I had to set up a trial time of at least 20s to request a dynamic IP-address in /etc/rc.config (SuSE 7.1 I think) because the DHCP servor was a little too slow to give a dynamic IP-address.
Right now I am working with SuSE 7.3 and dhclient seems to work but apparently too fast and impossible to get a dynamic IP-address (it is frustrating because that damned Windoze machine has no problem to connect to the network).
There is no more line in /etc/rc.config with SuSE-7.3 to configure a longer trial time to ask for a dynamic IP-address (at least send many requests within 20 seconds).
Does anybody know how I can configure dhclient to make several requests to the dhcp servor? Or can there be another problem but dhclient seems to be a straightforward soft and it worked three years ago (with a request time of at least 20 seconds though).
-- Alain Barthélemy bartydeux@gminformatique.com cassandre@gminformatique.com
Voyez mon site web sur: http://bartydeux.gminformatique.com Ma généalogie et la petite histoire de Herve et sa région
----- End forwarded message -----
-- Qui fut le plus à plaindre:
Cassandre que personne n'écouta ou ceux qui n'écoutaient pas Cassandre ====== Who was more to be pitied
Cassandra whom nobody listened to or those who were not listening to Cassandra -- Alain Barthélemy bartydeux@gminformatique.com cassandre@gminformatique.com
Voyez mon site web sur: http://bartydeux.gminformatique.com Ma généalogie et la petite histoire de Herve et sa région
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
--
Jerry Feldman
Le Lundi 7 Octobre 2002 23:57, vous avez écrit :
I am currently doing that with SuSE 8.0. I easily set it up under YaST2. You can also set up a timeout value. On the same laptop I previously used YaST1. Under YaST1 on 7.3, you can set up alternate profiles, which is convenient. I have a situation where I have 3 places with dynamic IP addresses (home, work, and where I teach weekly), ond one place where we have our monthly meetings, where we have a fixed IP address. With YaST1, I was able to set them both up and simply deactivate one and activate the other. With 8.0, under YaST2, I must enter the static IP each time. But, in the case of dhcp, whether YaST1 on 7.3 or YaST2 DHCP worked fine.
Under YaST1: System Admin Network Configuration Network Base Configuration set up [0] for one and [1] for the other. One thing I found under 8.0, is that sometimes on boot DHCP would not always obtain an IP address. Most of the time simply popping the card caused it to work. I did play around with the time values a bit. I think the default is 999999 (infinite).
Hello, Well I know Yast1 and the network was configured like you said (SuSE-7.3). The problem is elsewhere. I remind that I have no problem with fixed IP-address (configuration set with pcmcia card manager : # cardctl scheme home or work or dhcp). PCMCIA card is Xircom multifunction perfectly recognised and installed (xirc2ps_cs module). Now when I want to install the dhcp client with rcdhclient (re)start I have the following messages in /var/log/messages: IThere seems to be negotiation with DHCP server but difficult to understand I used dhcpcd and even tried a longer timeout with #> dhcpcd -t 120 Difficult for me to understand the /var/log/messages but one DHCP server 192.168.0.173 seems to be well detected and connection is made. Why don't I get a dynamic address? DHCP server seems not to acknowledge (waiting for DHCP_ACK). Does anybody have more experience of DHCP server and client than I? Oct 8 11:28:45 portable3 dhcpcd[2939]: terminating on signal 2 Oct 8 11:28:45 portable3 dhcpcd[2919]: recvfrom: Network is down Oct 8 11:28:45 portable3 dhcpcd[2919]: sendto: Network is down Oct 8 11:28:45 portable3 modify_resolvconf: no matching backup found, left everything alone Oct 8 11:28:45 portable3 modify_resolvconf: no matching backup found, left everything alone Oct 8 11:30:01 portable3 kernel: eth0: autonegotiation failed; using 10mbs Oct 8 11:30:01 portable3 kernel: eth0: MII selected Oct 8 11:30:01 portable3 dhcpcd[2989]: broadcasting DHCP_REQUEST for 192.168.0.173 Oct 8 11:30:01 portable3 kernel: eth0: media 10BaseT, silicon revision 5 Oct 8 11:30:12 portable3 kernel: eth0: no IPv6 routers present Oct 8 11:31:57 portable3 dhcpcd[2989]: timed out waiting for DHCP_ACK response Oct 8 11:31:57 portable3 dhcpcd[2989]: broadcasting DHCP_DISCOVER Oct 8 11:32:21 portable3 dhcpcd[2989]: terminating on signal 2 Oct 8 11:32:21 portable3 dhcpcd[2989]: modify_resolvconf restore Oct 8 11:32:21 portable3 modify_resolvconf: no matching backup found, left everything alone Oct 8 11:32:21 portable3 dhcpcd[2989]: modify_resolvconf returns 0 == One of the error messages I get is "no device available/detected to start dhcp client on" Which device? == PCMCIA card is multifunction Xircom creditcard Ethernet 10/100 + modem 56 "CEM 56" perfectly well recognised (kernel module xirc2ps_cs on eth0) In a howTo I read "give device name as second interface". Alain =================================================================
On 7 Oct 2002 at 23:39, Alain Barthélemy wrote:
Hello,
To see if anybody can help me. I always had fixed IP-addresses on my laptop that I change easily (PCMCIA card) with instruction #> cardctl scheme scheme_name (after configuring /etc/pcmcia/network.opts).
Now I have to work in a service where there is no fixed IP-address, only dynamic IP-addresses. Three years ago I had no problems with rcdhclient in the same service with just one little problem: I had to set up a trial time of at least 20s to request a dynamic IP-address in /etc/rc.config (SuSE
7.1 I think) because the DHCP servor was a little too slow to give a dynamic IP-address.
Right now I am working with SuSE 7.3 and dhclient seems to work but apparently too fast and impossible to get a dynamic IP-address (it is frustrating because that damned Windoze machine has no problem to connect to the network).
There is no more line in /etc/rc.config with SuSE-7.3 to configure a longer trial time to ask for a dynamic IP-address (at least send many requests within 20 seconds).
Does anybody know how I can configure dhclient to make several requests to the dhcp servor? Or can there be another problem but dhclient seems to be a straightforward soft and it worked three years ago (with a request time of at least 20 seconds though).
The 02.10.08 at 21:29, Alain Barthélemy wrote: [... skipping]
IThere seems to be negotiation with DHCP server but difficult to understand I used dhcpcd and even tried a longer timeout with #> dhcpcd -t 120 Difficult for me to understand the /var/log/messages but one DHCP server 192.168.0.173 seems to be well detected and connection is made. Why don't I get a dynamic address? DHCP server seems not to acknowledge (waiting for DHCP_ACK).
Does anybody have more experience of DHCP server and client than I?
No, but I see a problem on your logs. Look:
Oct 8 11:28:45 portable3 dhcpcd[2939]: terminating on signal 2 Oct 8 11:28:45 portable3 dhcpcd[2919]: recvfrom: Network is down Oct 8 11:28:45 portable3 dhcpcd[2919]: sendto: Network is down Oct 8 11:28:45 portable3 modify_resolvconf: no matching backup found, left everything alone Oct 8 11:28:45 portable3 modify_resolvconf: no matching backup found, left everything alone Oct 8 11:30:01 portable3 kernel: eth0: autonegotiation failed; using 10mbs Oct 8 11:30:01 portable3 kernel: eth0: MII selected
The card was negotiating the connection speed at the same time the dhcpcd daemon was doing its part: that can not work, the network is down. Check whether during boot up the network script runs before the dhcpcd script: just have a look at the /var/log/boot.msg file if unsure.
One of the error messages I get is "no device available/detected to start dhcp client on" Which device?
eth0 -- Cheers, Carlos Robinson
participants (3)
-
Alain Barthélemy
-
Carlos E. R.
-
Jerry Feldman