LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-01-2013, 07:01 PM   #1
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Rep: Reputation: 73
connect to the router


I'm trying to get my home wifi working. It has never worked. My computer can't connect to it using Ubuntu or Fedora. My mobile phone can't connect to it.If I enter 192.168.1.1 I get a timeout. So I can't look inside the router to see if there is something I can set to make it work.

I don't know why I can't connect to 192.168.1.1 That is the address printed on the back of the router, along with 'useradmin' as username and the password.

How can I force the browser to only look at the local network?

pedro@pedro-bedro:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:26:6c:b1:ae:88
inet6 addr: fe80::226:6cff:feb1:ae88/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:279238 errors:0 dropped:1 overruns:0 frame:0
TX packets:259448 errors:0 dropped:0 overruns:0 carrier:7
collisions:0 txqueuelen:1000
RX bytes:117773955 (117.7 MB) TX bytes:41458250 (41.4 MB)
Interrupt:41

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:26921 errors:0 dropped:0 overruns:0 frame:0
TX packets:26921 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:8605147 (8.6 MB) TX bytes:8605147 (8.6 MB)

ppp0 Link encap:Point-to-Point Protocol
inet addr:180.110.101.158 P-t-P:180.110.100.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:22914 errors:0 dropped:0 overruns:0 frame:0
TX packets:26147 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:10383208 (10.3 MB) TX bytes:4298694 (4.2 MB)

wlan0 Link encap:Ethernet HWaddr b4:74:9f:77:53:89
inet6 addr: fe80::b674:9fff:fe77:5389/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:52 errors:0 dropped:0 overruns:0 frame:0
TX packets:399 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:8465 (8.4 KB) TX bytes:93407 (93.4 KB)

pedro@pedro-bedro:~$
 
Old 02-01-2013, 08:01 PM   #2
KinnowGrower
Member
 
Registered: May 2008
Location: Toronto
Distribution: Centos && Debian
Posts: 347

Rep: Reputation: 34
the Output of ifconfig command shows that your computer did not have any IP address allocated in 192.168.1.0 subnet. Are you sure your computer is connected the router? To check DHCP or all other setting on router, try by giving the static IP to your computer in subnet of 192.168.1.0 e.g. 192.168.1.34/24. Then try to ping/open 192.168.1.1
 
Old 02-01-2013, 08:17 PM   #3
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
The dsl cable is working, I can access the internet through the router to write this. My mobile phone also sees the wifi. It is Android, but it only says 'obtaining ip address' and never gets any further.

So I'm thinking, I need to switch something in the router. But as you say, there is no 192.168.1.1 address in the ifconfig. Why not??

pedro@pedro-bedro:~$ iwconfig
ppp0 no wireless extensions.

lo no wireless extensions.

wlan0 IEEE 802.11bgn ESSID:"ChinaNet-zbgJ"
Mode:Managed Frequency:2.412 GHz Access Point: 4C:B1:6C:BB:92:B7
Bit Rate=72.2 Mb/s Tx-Power=20 dBm
Retry long limit:7 RTS thr=2347 B Fragment thrff
Power Managementff
Link Quality=60/70 Signal level=-50 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

eth0 no wireless extensions.

Last edited by Pedroski; 02-01-2013 at 08:27 PM.
 
Old 02-01-2013, 08:28 PM   #4
KinnowGrower
Member
 
Registered: May 2008
Location: Toronto
Distribution: Centos && Debian
Posts: 347

Rep: Reputation: 34
I dont know how your computer is able to access internet. But to access router as i mentioned earlier assign IP 192.168.1.45 to the computer manually using command
Code:
ifconfig eth0 192.168.1.45/24
Then try to ping and access 192.168.1.1 in browser

Hope it may help
 
Old 02-01-2013, 09:03 PM   #5
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
Thanks again. I am a bit wary of messing with the ifconfig. If I do that, will I be able to reset it to normal easily? I don't want to lose the internet connection completely! Bad enough that the wifi never works, hasn't worked for 2 or more years. But in the office it works fine, same thing, a router with wifi and dsl sockets! There the wifi works no prob, so I rule out a hardware fault.
 
Old 02-02-2013, 05:47 PM   #6
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
Well, I did a reset of the router. Now it is showing 192.168.1.1 But I still can't connect to the wifi, not with the computer, not with the Android phone! The phone says it is connected to the wifi, but it has no internet access. I can get that over by enabling data, but that is the same as making a phone call, so it costs me money. The wifi is in my yearly subscription, and should have no extra costs.
pedro@pedro-bedro:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:26:6c:b1:ae:88
inet6 addr: fe80::226:6cff:feb1:ae88/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9721 errors:0 dropped:1 overruns:0 frame:0
TX packets:8979 errors:0 dropped:0 overruns:0 carrier:1
collisions:0 txqueuelen:1000
RX bytes:8374151 (8.3 MB) TX bytes:1692003 (1.6 MB)
Interrupt:41

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:742 errors:0 dropped:0 overruns:0 frame:0
TX packets:742 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:115922 (115.9 KB) TX bytes:115922 (115.9 KB)

ppp0 Link encap:Point-to-Point Protocol
inet addr:114.222.140.184 P-t-P:114.222.140.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:9484 errors:0 dropped:0 overruns:0 frame:0
TX packets:8859 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:8147704 (8.1 MB) TX bytes:1486479 (1.4 MB)

wlan0 Link encap:Ethernet HWaddr b4:74:9f:77:53:89
inet addr:192.168.1.4 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::b674:9fff:fe77:5389/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3830 errors:0 dropped:0 overruns:0 frame:0
TX packets:3717 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1258769 (1.2 MB) TX bytes:537055 (537.0 KB)

pedro@pedro-bedro:~$
 
Old 02-02-2013, 06:12 PM   #7
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
Here a screenshot. Says I am connected to the internet via wifi, or at least to the router. BUT, if I unplug the dsl cable, I have no internet access.

Does anyone know why?
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2013-02-03 08:07:41.png
Views:	16
Size:	51.7 KB
ID:	11753  
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I set up a laptop as a router to connect wirelessly to my ADSL router hairysocks Linux - Networking 12 12-20-2009 06:51 AM
Intel 4965 AGN - can't connect to wireless 802.11b router, can connect to 11g siodine Linux - Wireless Networking 3 12-01-2007 07:36 AM
How do I connect to router behind router... glenn69 Linux - Networking 1 04-25-2007 11:34 AM
howto connect router to router? kvasarnomad Linux - Networking 4 09-04-2005 09:14 PM
Want To Connect to my Router warnesey333 Linux - Networking 34 10-02-2004 11:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration