LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   ubuntu adsl cable modem ethernet problem (https://www.linuxquestions.org/questions/linux-networking-3/ubuntu-adsl-cable-modem-ethernet-problem-558013/)

NiviJah 05-31-2007 09:52 AM

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!!!:cry:

thank,
NiviJah

camorri 05-31-2007 12:46 PM

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.

NiviJah 05-31-2007 02:26 PM

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


camorri 06-01-2007 08:06 AM

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...

NiviJah 06-07-2007 04:24 PM

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 


camorri 06-08-2007 08:35 AM

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.

NiviJah 06-08-2007 09:51 AM

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... :/

camorri 06-08-2007 10:39 AM

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...

NiviJah 06-08-2007 11:07 AM

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!

camorri 06-08-2007 12:09 PM

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.

NiviJah 06-08-2007 01:23 PM

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?

Nylex 06-08-2007 01:54 PM

You really shouldn't post your external IP.

NiviJah 06-08-2007 02:23 PM

thank you
NiviJah

camorri 06-08-2007 06:47 PM

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.

NiviJah 06-09-2007 02:00 AM

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.


All times are GMT -5. The time now is 04:06 AM.