[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Can't connect to the internet after "aptitude safe-upgrade"



On Sat, 2015-08-01 at 02:48 -0400, Gene Heskett wrote:
[...]
> > Now instead of outcome 1 I have
> >
> > eth0      Link encap:Ethernet  HWaddr 10:c3:7b:9d:d0:d2
> >           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
> >           RX packets:61 errors:0 dropped:0 overruns:0 frame:0
> >           TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
> >           collisions:0 txqueuelen:1000
> >           RX bytes:5301 (5.1 KiB)  TX bytes:1162 (1.1 KiB)
> >
> > lo        Link encap:Local Loopback
> >           inet addr:127.0.0.1  Mask:255.0.0.0
> >           UP LOOPBACK RUNNING  MTU:65536  Metric:1
> >           RX packets:714 errors:0 dropped:0 overruns:0 frame:0
> >           TX packets:714 errors:0 dropped:0 overruns:0 carrier:0
> >           collisions:0 txqueuelen:0
> >           RX bytes:57796 (56.4 KiB)  TX bytes:57796 (56.4 KiB)
> >
> > ppp0      Link encap:Point-to-Point Protocol
> >           inet addr:218.102.185.241  P-t-P:203.218.189.254 
> > Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492 
> > Metric:1 RX packets:17 errors:0 dropped:0 overruns:0 frame:0 TX
> > packets:3 errors:0 dropped:0 overruns:0 carrier:0 collisions:0
> > txqueuelen:3
> >           RX bytes:1797 (1.7 KiB)  TX bytes:54 (54.0 B)
> >
> > BTW I forgot to mention that I had rerun pppoeconf to set up the
> > connection, which didn't help either.
> >
> > Thanks!
> >
> > NY
> 
> The only place you are getting an IPV4 address is ppp0.  And to get that 
> you are running pppoeconf.  Are you equipt with some sort of a phone 
> modem card in your machine?

ppp0 will probably be the ADSL modem attached to eth0. It will be
getting it's single IP address from the ISP over PPP. (PPPoE is
Point-to-Point Protocol over Ethernet).

I assume eth0 doesn't have an IP address because it's not connected to a
router or anything. I.e. the computer is a stand alone device connected
just to the ADSL modem. (Though I'm not sure about that hypothesis as
the OP talks about another computer that's not been upgraded still
having network access).

>   I have a bag of those things but its been 
> 15 years since I last actually used one.  In the above sampling, 2 
> things are dead wrong.
> 
> 1. Mask is restricted to the exact address when the setting is 
> 255.255.255.255.  Much more normal would be to zero the last triplet.

No, the mask is OK, the ISP will only be providing one IP address to the
user.

I see nothing suspicious in the IP addresses and masks, assuming the
computer really is only connected to an ADSL modem.

First thing to narrow down is if the problem is routing or DNS related.
The command:

   ip route

will show the route being used.

And pinging a specific IP address would avoid needing a working DNS. I
was going to suggest:

   ping 8.8.8.8

as that's easy to remember and is one Google uses for it's public name
server. However, I don't know if Google is blocked in the country the OP
lives. (The IP address of the ppp link shown above seems to be a Hong
Kong ISP so I believe Google won't be blocked).

-- 
Tixy



Reply to: