Re: Network fails on Lenny



Alejandro Barocio A. wrote:
When I installed Lenny with the official DVD Binary 1 the network
connection stoped working. Previously, I had Etch 4.0_r5 And
everything worked fine.

My greater concern is that I still can recive my email via POP
and use messaging with XMPP, also I can connect to my computer
via SMB, HTTP (and, I *fear*, other protocols; so I can be accessed
by the world, but can't access the rest of the world). No output
protocols wok!

I use to think that the problem was on a WinXP I use as gateway,
but my machine didn't work on ant other connection (not even direct
connection to the DSL modem nor 3.5G USB modem).

Can anybody tell me what's the problem?, or where can I start?


If you can connect to your machine via SMB or HTTP and you can use POP
to retrieve email then we can conclude that the network connection is
working.

In order to test your network connection do the following as root or sudo:

Open a console

1. Check if your network card has been detected
ifconfig -a
This will list all network cards found. The first wired network card in
Debian is normally "eth0", the second "eth1", etc.

2. Check if your network card has been configured with an IP address.
ifconfig eth0
You will see something like this;
Link encap:Ethernet HWaddr 00:21:86:61:14:d8
inet addr:192.168.6.217 Bcast:192.168.6.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Memory:fc200000-fc220000

If you see the above then your card is configured.
If the second line (inet addr:....)is missing then it is not.
Since you stated that you can connect to the machine then I think the
network card is configured.

3. Ping tests. This will let you know if the card is working and if you
can connect to other devices on the network.

Loop back test. This tests the functionality of the network card
ping 127.0.0.1
There show be no errors or data loss.
Use ctrl+c to stop

Assigned IP test. This will test the card with it assigned IP address.
ping 192.168.6.217
192.168.6.217 is the address you found using "ifconfig eth0"
There should be no errors or data loss.

Ping router: This will test if the machine can connect to your router.
Find out what your router address is. It should be on the same subnet as
your machine. In this example 192.168.6.???. Normally the router is 1.
So in this case...
ping 192.168.6.1
There should be no errors or data loss.

Also look at /etc/network/interfaces to see the setup of your network cards.

If all the above is OK then your network connection is good.

The next thing to checked is DNS (Domain Name Service/System).

Check to see if you can resolve Internet domain names.
Us the dig command to do this.

dig www.debian.org

The result should contain at least one answer with the IP address of
www.debian.org. If not then DNS is not configured properly or the DNS
server is not functioning.

First check your DNS settings
cat /etc/resolve.conf

You should see something like this:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by
resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 192.168.6.1
nameserver 4.2.2.1
search your_domain.prv

You should see at least one nameserver IP address.
If there is none and you are using DHCP then our DHCP server is not
issuing the IP for the DNS server. Problem with DHCP server.

If there are one or more nameservers then first ping then and use them
with dig

ping 192.168.6.1
ping 4.2.2.1
Use ctrl-c to stop
should complete with no errors or data loss

Use dig to check them.
dig @192.168.6.1 www.debian.org
dig @4.2.2.1 www.debian.org
You should get at least one answer with the resolved IP address of
www.debian.org.

If not then try another DNS server. You can search the Internet for free
DNS servers. 4.2.2.1 is a free DNS server.

Have fun :)


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Sharing Modem
    ... right click the local area network connection ... >> DNS Server = none ... On the client computer, right click the local area network ... >> ping 192.168.0.1 ...
    (microsoft.public.windowsxp.network_web)
  • Re: Sharing Modem
    ... >>> ping 192.168.0.1 ... >>Client addresses OK except there is nothing about DNS Server! ... >>IE will ask for a connection when I try to connect to anything, ...
    (microsoft.public.windowsxp.network_web)
  • Re: Hate to give up
    ... If your software requires DNS server settings, use: ... nameserver 207.69.188.185 ... Now try to ping yahoo.com and google.com. ... And, in fact, next PPP connection resolv.conf will almost certainly get ...
    (Ubuntu)
  • Re: Cant resolve domain names
    ... Here's the results of the solo Win2K Ping ... I can ping the router and itself ... >Ethernet adapter Local Area Connection: ... >Secondary DNS Server 0.0.0.0 ...
    (microsoft.public.win2000.networking)
  • Re: Re: XP Not Detecting Connection
    ... It's the same computer, network card, ISP ... When I tried to ping 127.0.0.1, ... >> simply a direct connection to the cable modem. ...
    (microsoft.public.windowsxp.network_web)