LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 05-31-2007, 10:52 AM   #1
NiviJah
LQ Newbie
 
Registered: May 2007
Posts: 10

Rep: Reputation: 0
ubuntu adsl cable modem ethernet problem


hello, i've just downloaded ubuntu 7.04 (my first linux)
and it says that i have internet connection, but nothing related to the internet is working!

when i try to config my internet connection (pppoeconf) its saying that there is a connection (eth0) but when it is scanning for it nothing is found (timeout)
my comp' is doal-boot with xp and everything is working fine there...

please help me i don't know what to do anymore!!!

thank,
NiviJah
 
Old 05-31-2007, 01:46 PM   #2
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,868

Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
First things first. Open a konsole and run the command /sbin/igconfig. Cut and paste the results to this thread. Then we can see if the ethernet interface on your system is active.

This is what it could look like, if it is working.

Code:
/sbin/ifconfig
eth0      Link encap:Ethernet  HWaddr 00:D0:B7:26:B3:78
          inet addr:192.168.1.21  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:266125 errors:0 dropped:0 overruns:0 frame:0
          TX packets:164623 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:257097710 (245.1 MiB)  TX bytes:11411155 (10.8 MiB)
          Interrupt:11
It may not be called eth0, and you probably will see one called 'lo'. Just copy and paste the results.
 
Old 05-31-2007, 03:26 PM   #3
NiviJah
LQ Newbie
 
Registered: May 2007
Posts: 10

Original Poster
Rep: Reputation: 0
thank you!

here it is:

PHP Code:
/sbin/ifconfig
eth0      Link encap
:Ethernet  HWaddr 00:20:ED:36:84:20  
          inet addr
:172.21.14.16  Bcast:255.255.255.255  Mask:255.255.224.0
          inet6 addr
fe80::220:edff:fe36:8420/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU
:1500  Metric:1
          RX packets
:801 errors:0 dropped:0 overruns:0 frame:0
          TX packets
:27 errors:0 dropped:0 overruns:0 carrier:0
          collisions
:0 txqueuelen:1000 
          RX bytes
:55422 (54.1 KiB)  TX bytes:4377 (4.2 KiB)
          
Interrupt:19 Base address:0x4000 

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
:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets
:2 errors:0 dropped:0 overruns:0 carrier:0
          collisions
:0 txqueuelen:
          RX bytes
:100 (100.0 b)  TX bytes:100 (100.0 b
 
Old 06-01-2007, 09:06 AM   #4
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,868

Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
You have a class B address. Two things to do next. I would like to know if you have a default route set.

To find out, open a konsole, and run the command '/sbin/route' ( without the quotes ). It will look something like this.

Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     *               255.255.255.0   U     2      0        0 eth0
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         192.168.1.1     0.0.0.0         UG    2      0        0 eth0
Would you try to see what you can ping from a konsole. Try a 'ping www.yahoo.com' and see it that responds. If that does not work, try to ping 216.109.112.135. That is the IP yahoo reports. If that works, and using the name doesn't it is probably the DNS is not set up.

Post back the results...
 
Old 06-07-2007, 05:24 PM   #5
NiviJah
LQ Newbie
 
Registered: May 2007
Posts: 10

Original Poster
Rep: Reputation: 0
hello

sorry, wasn't here for the past week....
this is the output:

PHP Code:
/sbin/route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    
Use Iface
172.21.0.0      
*               255.255.224.0   U     0      0        0 eth0
link
-local      *               255.255.0.0     U     1000   0        0 eth0


ping www
.yahoo.com
PING www
.yahoo.com (213.57.1.1356(84bytes of data.

ping 216.109.112.135
PING 216.109.112.135 
(216.109.112.13556(84bytes of data.
From 10.163.192.1 icmp_seq=2 Destination Net Unreachable 
 
Old 06-08-2007, 09:35 AM   #6
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,868

Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
You do not have a default gateway address set. This is where your system will send all packets that are not resolved by the local routing table.

I know your system is connected to your ISP through an ethernet card, what other hardware is there? A cable or DSL modem, or a router/modem?

Your ISP should tell you what to set the default gateway to. You could also boot winders and look in the network area and find it in there.

To set the default, there is probably a gui tool in Ubuntu to set it. It can also be set via the command line; with route add. There is a man page if you need more help with the command line.
 
Old 06-08-2007, 10:51 AM   #7
NiviJah
LQ Newbie
 
Registered: May 2007
Posts: 10

Original Poster
Rep: Reputation: 0
thanks!
how do i know what other hardware i have?
and, i did you mean a command "route add"?
cause i couldn't find any doc on that...
and what is "boot winders"?

is this o.k?
and how do i know my router ip address?

sorry for being dum... :/

Last edited by NiviJah; 06-08-2007 at 10:58 AM.
 
Old 06-08-2007, 11:39 AM   #8
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,868

Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
Quote:
how do i know what other hardware i have?
The ethernet cable from your nic has to go somewhere. What is it plugged into? Since ping worked to some locations, you have a connection somewhere. The hardare matters. If it is a router, then the default route will point at the IP address of the router, on your side, not the ISP side.

This is just a guess on my part ( remember I can't see what your system is connected to ) your IP is 172.21.14.16. The IP address of a router is most likely 172.21.16.1 with the same network mask you are using. Try to ping that address if you can not see where you are connected.

Quote:
did you mean a command "route add"?
Sorry for the confusion, try 'man route' without the quotes. The route command can be used for many things, including adding routes. If you were to add a route, the command gets expanded, you would type something like 'route add default 111.222.333.444' Not sure of the exact syntax. I have to look it up also. If you read through the man route page, there are examples of adding routes, including defaults routes.

Quote:
and what is "boot winders"?
I thought you had a windoze system, is that correct?

I meant 'boot windows' rarely do I use the correct spelling, it may be perceived as a disparaging remark, so winders, windbloze, windoze and the list goes on...
 
Old 06-08-2007, 12:07 PM   #9
NiviJah
LQ Newbie
 
Registered: May 2007
Posts: 10

Original Poster
Rep: Reputation: 0
o.k, i looked at "network" under windows, maybe this will help:
the host name is " cable.netvision.net.il "
IP & DNS are automatically received...

i looked at www.myrouterip.com"
and it gave me this:

Your External IP address is:
217.132.XXX.XX

Your hostname is:
CBL217-XXX-123-XX.bb.netvision.net.il

are we moving somewhere?


i will try to ping the router ip and use the man route and i will post the output back.

thanks!

Last edited by NiviJah; 06-08-2007 at 03:22 PM.
 
Old 06-08-2007, 01:09 PM   #10
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,868

Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
Yes we are getting somewhere.

The fact that your external IP address is a different network, confirms you are going through a router somewhere.

To discover what your default gateway is, in windoze, open a command prompt. On the start button, click, in the "run" box type 'command' ( without the quotes ). You should get a "DOS prompt". At the command line run the command 'ipconfig' ( no quotes ). It should return your current IP address, subnet mask, and the default gateway.

Back in linux, configure the same IP address as your default gateway.
 
Old 06-08-2007, 02:23 PM   #11
NiviJah
LQ Newbie
 
Registered: May 2007
Posts: 10

Original Poster
Rep: Reputation: 0
o.k, so i went to system - > administration -> network.
made the connection "static ip" and entered the details i got from ipconfig.

tried to surf the web but it didn't work still.
maybe something with the DNS ip's?
 
Old 06-08-2007, 02:54 PM   #12
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You really shouldn't post your external IP.
 
Old 06-08-2007, 03:23 PM   #13
NiviJah
LQ Newbie
 
Registered: May 2007
Posts: 10

Original Poster
Rep: Reputation: 0
thank you
NiviJah
 
Old 06-08-2007, 07:47 PM   #14
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,868

Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
Did you add the default route? Without one, your linux system will not know where to send anything not found it the local routing table.

Your IP can be static, or one from a DHCP server is O.K.
 
Old 06-09-2007, 03:00 AM   #15
NiviJah
LQ Newbie
 
Registered: May 2007
Posts: 10

Original Poster
Rep: Reputation: 0
how do i add the default route?
and what ip do i use for it?

is this o.k?

PHP Code:
Add setup a new route

The syntax is 
as follows:
route add default gw {IP-ADDRESS} {INTERFACE-NAME}

Where,

    * 
IP-ADDRESSSpecify router IP address
    
* INTERFACE-NAMESpecify interface name such as eth0

For example if your router IP address is 192.168.1.254 type the following command as the root user:
# route add default gw 192.168.1.254 eth0OR use hostname such as dsl-router:# route add default gw dsl-router eth0 
how do i know what to put here?:

PHP Code:
    IP-ADDRESSSpecify router IP address
    
* INTERFACE-NAMESpecify interface name such as eth0 
and one last this, do i have to have root access or can i use "sudo" ?

by the way, i found this over the net. tried to install it but it want go.
take a look plz.

Last edited by NiviJah; 06-09-2007 at 03:12 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Ubuntu ethernet modem router problem stubbs@zetnet.co.uk Linux - Networking 2 05-08-2007 03:41 PM
SUSE 9.2 detect my [B]ADSL USB-Ethernet Modem-Router [/B] as a [B]Dial up modem[/B]. myprecius Linux - Hardware 0 06-27-2005 10:21 AM
Cable modem and Ethernet card stonesino Linux - Newbie 2 03-13-2004 06:23 PM
Is a adsl backup to a cable modem conection posible? Anubis Linux - Networking 4 09-01-2003 01:57 PM
cable modem with ethernet brabraa Linux - Software 8 01-30-2002 10:04 AM


All times are GMT -5. The time now is 12:51 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration