Re: ADSL connection problem

Jean-David Beyer <[email protected]> Sat, 01 Apr 2006 07:59:15 -0500
Newsgroups gmane.linux.redhat.ppp
Organization Institute For Regimented Whimsey
Message-ID <[email protected]>
Tamal wrote:
> I have a problem with my ADSL modem. The ADSL supports web-based
> configuration. It's IP address is 192.168.1.1. To connect to that IP my
> ethernet card should be configured with a static IP address 192.168.1.*
> [*=2 to 254] with a subnet mask 255.255.255.0.When Fedora core starts it
> autometically detects my ethernet. I am sure about that as "ifconfig
> eth0" gives the proper information. To test whether my Ethernet card can
> communicate with the ADSL or not I do a ping test to my ADSL
> (192.168.1.1). But it do not work.
> Using static IP address I was able to communicate with my ADSL (and also
> able to connect to the Internet) in FC4 last week. So, there is no
> driver problem. But after restart the problem started. I think it is
> some kind of mis-configuration problem. Can anyone help me on this ?

I have Verizon FiOS (Fibre-Optic to the home), but it works about the same.
It is connected to a D-Link DI-624 router and through that to the box on the
side of the house that, among other things, converts the 622 Megabit/second
fibre-optic cable to 15 Megabit/second ethernet through a CAT-5e cable.
The D-Link has IP address 192.168.0.1 as far as my computer is concerned. I
have configured the IP address of my computer (not the only computer on my
LAN) to be 192.168.0.251.

ifconfig reveals (among other things):

eth2      Link encap:Ethernet  HWaddr 01:92:23:C4:C5:76
          inet addr:192.168.0.251  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1492  Metric:1
          RX packets:3066460 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1709928 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2892573473 (2758.5 Mb)  TX bytes:169991226 (162.1 Mb)

and ping says:

$ ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
64 bytes from 192.168.0.1: icmp_seq=0 ttl=127 time=0.389 ms
64 bytes from 192.168.0.1: icmp_seq=1 ttl=127 time=0.365 ms

--- 192.168.0.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1010ms
rtt min/avg/max/mdev = 0.365/0.377/0.389/0.012 ms, pipe 2

I run Red Enterprise Linux 3, but that should be close enough to Fedora to
make little difference in this respect, I would imagine.

1.) Should your DSL modem respond to pings? Perhaps everything is OK, but
the modem blocks pings. (I would resent it if this were the case.)

2.) Is your networking configured correctly?
N.B.: my Internet connection is on eth2; eth0 and eth1 are used for other
things.

In /etc/sysconfig/network-scripts should be files like this:

-rw-r--r--    3 root     root          245 Jan 19 13:54 ifcfg-eth0
-rw-r--r--    3 root     root          245 Jan 19 13:54 ifcfg-eth1
-rw-r--r--    3 root     root          252 Jan 28 13:50 ifcfg-eth2
-rw-r--r--    1 root     root          254 Jun 20  2001 ifcfg-lo

In my case, ifcfg-eth2 contains:

$ cat ifcfg-eth2
# Intel Corporation|82557/8/9 [Ethernet Pro 100]
DEVICE=eth2
ONBOOT=yes
BOOTPROTO=none
HWADDR=01:92:23:C4:C5:76
USERCTL=no
PEERDNS=yes
TYPE=Ethernet
NETMASK=255.255.255.0
IPADDR=192.168.0.251
GATEWAY=192.168.0.1
# Reduce MTU for Verizon FiOS.
MTU=1492

Yours should be similar but on 192.168.1.*, though you may not need to
change the MTU, or you may need another value. Your ISP would tell you this.

This file actually is in three places in Red Hat distributions and you may
want to be sure they are all the same. I am not sure why they do this. They
are not linked together, so you better make copies once the first one is
correct.

/etc/sysconfig/network-scripts/ifcfg-eth2
/etc/sysconfig/networking/devices/ifcfg-eth2
/etc/sysconfig/networking/profiles/default/ifcfg-eth2

-- 
  .~.  Jean-David Beyer          Registered Linux User 85642.
  /V\  PGP-Key: 9A2FC99A         Registered Machine   241939.
 /( )\ Shrewsbury, New Jersey    http://counter.li.org
 ^^-^^ 07:40:01 up 16 days, 8:52, 3 users, load average: 4.07, 4.11, 4.08