You are not logged in.

#1 2011-09-04 18:14:12

nemamradfazole
Member
Registered: 2010-03-18
Posts: 40
Website

PC needs router to renew IP

I would appreciate any help concerning this problem: I had a PC connected directly to the internet, my IP is dynamic, everything was ok. Now I have a router connected to the internet and the PC and a VoIP phone connected to the router. The router is set to have a dynamic IP, the phone is working quite correctly (well, there are some issues with delayed SIP registrations, but I hope that's another thing).

The problem is anytime the whole system is cut from the energy and then after some time restarted, the PC cannot connect to the internet although the phone can. The PC can connect just to machines inside LAN, so I can connect to the router and the phone. Everytime I have to go to the router's administration, release the IP address and renew it (force the router to obtain a new address), after this the PC can connect to the internet. The interesting thing is nothing changes by this action: WAN IP remains the same, LAN IP is always the same, same goes for DNSs. The problem holds disregarding if I use network or network-manager (with a dynamic or static IP).

Offline

#2 2011-09-05 21:17:11

pigiron
Member
From: USA
Registered: 2009-07-14
Posts: 150

Re: PC needs router to renew IP

It may be a DNS problem.

Get it into failure mode, then bring up a terminal on the PC and see if you can ping a Google server:

   ping -c 3 8.8.8.8

Also, verify that the /etc/resolv.conf file looks reasonable when it's failing.

Offline

#3 2011-09-05 22:04:34

nemamradfazole
Member
Registered: 2010-03-18
Posts: 40
Website

Re: PC needs router to renew IP

Thanks, I will try that over the weekend.

Offline

#4 2011-09-11 13:06:19

nemamradfazole
Member
Registered: 2010-03-18
Posts: 40
Website

Re: PC needs router to renew IP

So I've tried. The failure state behaves like this:

ondra@doma-desktop ~$ ping -c 3 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_req=1 ttl=53 time=17.3 ms
64 bytes from 8.8.8.8: icmp_req=2 ttl=53 time=15.8 ms
64 bytes from 8.8.8.8: icmp_req=3 ttl=53 time=17.5 ms

--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 15.878/16.933/17.570/0.766 ms
ondra@doma-desktop ~$ more /etc/resolv.conf 
# Generated by NetworkManager
nameserver 192.168.1.1
ondra@doma-desktop ~$ ping -c 3 google.com
ping: unknown host google.com
ondra@doma-desktop ~$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     *               255.255.255.0   U     1      0        0 eth0
default         192.168.1.1     0.0.0.0         UG    0      0        0 eth0

with this information available at the internal administration webpage:

IP Address:	188.175.169.37	Dynamic IP
Subnet Mask:	255.255.254.0	 
Default Gateway:	188.175.168.1	  
DNS Server:	94.74.192.252 , 94.74.192.244

After I obtained new network parameters for the router and thus made the internet connection working, I got to this state:

ondra@doma-desktop ~$ more /etc/resolv.conf 
# Generated by NetworkManager
nameserver 192.168.1.1
ondra@doma-desktop ~$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     *               255.255.255.0   U     1      0        0 eth0
default         private         0.0.0.0         UG    0      0        0 eth0

with this information available at the internal administration webpage:

IP Address:	188.175.169.37	Dynamic IP
Subnet Mask:	255.255.254.0	 
Default Gateway:	188.175.168.1	  
DNS Server:	94.74.192.252 , 94.74.192.244

So it's weird - except the output for route, nothing changes but internet is made accessible.  It is probably a DNS problem, because I've found that the phone can't access domains neither (can't register SIP services until the router's IP is "refreshed").

Offline

#5 2011-09-25 13:09:16

nemamradfazole
Member
Registered: 2010-03-18
Posts: 40
Website

Re: PC needs router to renew IP

It seems I have solved this problem: the router (TP Link WR741N) seems not to be working fully correctly with DNS servers, so I had to set them under DHCP > DHCP Settings (copied them from the Status view). Now internet is fully accessible right after resurrection of the electricity supply.

Offline

Board footer

Powered by FluxBB