LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   More and more distros don't like the internet (https://www.linuxquestions.org/questions/linux-networking-3/more-and-more-distros-dont-like-the-internet-428810/)

nonoitall 03-26-2006 08:52 PM

More and more distros don't like the internet
 
I'm still on my newbie quest to find the perfect distro for me, but many of the distributions I've tried out have had the same strange problem connecting to other computers on our network or on the internet. In all of the distros that have had the problem, I can successfully ping the IP address that my router gives me through DHCP (either 192.168.1.100 or .101, depending on if our other computer logged in before mine or not). However, attempting to ping the router (192.168.1.1) does not work, nor does pinging our other computer or any address on the internet. I've tried manually setting up the IP address, mask, gateway and DNS addresses, and I've also tried just letting it try to automatically figure everything out. Neither has worked. It seems like newer versions have bigger problems with this too. A year or two ago when I first tried Slax, it booted and had me on the internet without me having to do a thing. The last two Slax releases have displayed the problem above. Any idea what's up and how to fix it?

syg00 03-26-2006 09:29 PM

Sounds like you've got a problem with your router setup - IMHO it should have the dns definitions in it.
I am constantly changing/testing distros.

Never have a problem.

RobertP 03-26-2006 09:38 PM

cat /etc/resolv.conf
hostname
route
iptables -L
nmap 192.168.0.1
cat /etc/nsswitch.conf
ifconfig
dhclient eth0

are commands that should be useful.

nonoitall 03-26-2006 11:16 PM

@syg00: If it's a router problem, why would Windows and other distros be able to connect just fine (and other computers on the network as well)? I tried those commands, RobertP and got these responses (using MEPIS 3.4-3):
Code:

root@1[root]# cat /etc/resolv.conf
nameserver 64.91.105.250
nameserver 209.206.160.253

root@1[root]# hostname
mepis1

root@1[root]# route
Kernel IP routing table
Destination    Gateway        Genmask        Flags Metric Ref    Use Iface
192.168.1.0    *              255.255.255.0  U    0      0        0 eth0
default        192.168.1.1    0.0.0.0        UG    0      0        0 eth0

root@1[root]# iptables -L
Chain INPUT (policy ACCEPT)
target    prot opt source              destination

Chain FORWARD (policy ACCEPT)
target    prot opt source              destination

Chain OUTPUT (policy ACCEPT)
target    prot opt source              destination

Chain f0to1 (3 references)
target    prot opt source              destination
ACCEPT    tcp  --  anywhere            anywhere            tcp dpt:netbios-ns state NEW
ACCEPT    udp  --  anywhere            anywhere            udp spts:1024:65535 dpt:netbios-ns
ACCEPT    udp  --  anywhere            anywhere            udp spt:netbios-ns dpt:netbios-ns
ACCEPT    udp  --  anywhere            anywhere            udp spts:1024:65535 dpt:netbios-dgm
ACCEPT    udp  --  anywhere            anywhere            udp spt:netbios-dgm dpt:netbios-dgm
ACCEPT    tcp  --  anywhere            anywhere            tcp dpt:netbios-ssn state NEW
ACCEPT    udp  --  anywhere            anywhere            udp spts:1024:65535 dpt:netbios-ssn
ACCEPT    tcp  --  anywhere            anywhere            tcp dpt:microsoft-ds state NEW
ACCEPT    icmp --  anywhere            anywhere            icmp source-quench
ACCEPT    tcp  --  anywhere            anywhere            tcp spts:1024:65535 dpts:6881:6889 state NEW
ACCEPT    tcp  --  anywhere            anywhere            tcp spts:1024:65535 dpt:ipp state NEW
ACCEPT    udp  --  anywhere            anywhere            udp dpt:ipp
ACCEPT    tcp  --  anywhere            anywhere            tcp spts:1024:65535 dpt:6969 state NEW
ACCEPT    udp  --  anywhere            anywhere            udp spt:netbios-ns dpts:1024:5999
ACCEPT    udp  --  anywhere            anywhere            udp spt:netbios-ns dpt:netbios-ns
ACCEPT    udp  --  anywhere            anywhere            udp spt:netbios-dgm dpt:netbios-dgm
ACCEPT    udp  --  anywhere            anywhere            udp dpts:6970:7170
ACCEPT    tcp  --  anywhere            anywhere            tcp spts:1024:65535 dpts:1024:65535 state NEW
ACCEPT    tcp  --  anywhere            anywhere            tcp spts:1024:65535 dpts:6881:6889 state NEW
ACCEPT    icmp --  anywhere            anywhere            icmp echo-reply
logdrop    all  --  anywhere            anywhere

Chain f1to0 (1 references)
target    prot opt source              destination
ACCEPT    udp  --  anywhere            anywhere            udp spt:netbios-ns dpts:1024:65535
ACCEPT    udp  --  anywhere            anywhere            udp spt:netbios-ns dpt:netbios-ns
ACCEPT    udp  --  anywhere            anywhere            udp spt:netbios-dgm dpt:netbios-dgm
ACCEPT    tcp  --  anywhere            anywhere            tcp spts:1024:5999 dpts:6881:6889 state NEW
ACCEPT    tcp  --  anywhere            anywhere            tcp spts:1024:5999 dpt:rsync state NEW
ACCEPT    tcp  --  anywhere            anywhere            tcp dpt:netbios-ns state NEW
ACCEPT    udp  --  anywhere            anywhere            udp spts:1024:5999 dpt:netbios-ns
ACCEPT    udp  --  anywhere            anywhere            udp spt:netbios-ns dpt:netbios-ns
ACCEPT    udp  --  anywhere            anywhere            udp spts:1024:5999 dpt:netbios-dgm
ACCEPT    udp  --  anywhere            anywhere            udp spt:netbios-dgm dpt:netbios-dgm
ACCEPT    tcp  --  anywhere            anywhere            tcp dpt:netbios-ssn state NEW
ACCEPT    udp  --  anywhere            anywhere            udp spts:1024:5999 dpt:netbios-ssn
ACCEPT    tcp  --  anywhere            anywhere            tcp dpt:microsoft-ds state NEW
ACCEPT    tcp  --  anywhere            anywhere            tcp spts:1024:5999 dpt:5050 state NEW
ACCEPT    tcp  --  anywhere            anywhere            tcp spts:1024:5999 dpt:telnet state NEW
ACCEPT    tcp  --  anywhere            anywhere            tcp spts:1024:5999 dpts:5000:5001 state NEW
ACCEPT    udp  --  anywhere            anywhere            udp spts:1024:5999 dpt:5000
ACCEPT    tcp  --  anywhere            anywhere            tcp spts:1024:5999 dpt:imaps state NEW
ACCEPT    tcp  --  anywhere            anywhere            tcp spts:1024:5999 dpt:whois state NEW
ACCEPT    udp  --  anywhere            anywhere            udp dpt:43
ACCEPT    icmp --  anywhere            anywhere            icmp source-quench
ACCEPT    tcp  --  anywhere            anywhere            tcp dpt:rtsp state NEW
ACCEPT    tcp  --  anywhere            anywhere            tcp dpt:7070 state NEW
ACCEPT    tcp  --  anywhere            anywhere            tcp spts:1024:5999 dpt:imap2 state NEW
ACCEPT    udp  --  anywhere            anywhere            udp dpt:imap2
ACCEPT    tcp  --  anywhere            anywhere            tcp spts:1024:5999 dpt:ssh state NEW
ACCEPT    tcp  --  anywhere            anywhere            tcp spts:0:1023 dpt:ssh state NEW
ACCEPT    tcp  --  anywhere            anywhere            tcp spts:1024:5999 dpts:6660:6669 state NEW
ACCEPT    tcp  --  anywhere            anywhere            tcp spts:1024:5999 dpt:ftp state NEW
ACCEPT    tcp  --  anywhere            anywhere            tcp dpt:1755 state NEW
ACCEPT    udp  --  anywhere            anywhere            udp dpt:1755
ACCEPT    tcp  --  anywhere            anywhere            tcp spts:1024:5999 dpt:hkp state NEW
ACCEPT    udp  --  anywhere            anywhere            udp dpt:4000
ACCEPT    tcp  --  anywhere            anywhere            tcp spts:1024:65535 dpts:1024:65535 state NEW
ACCEPT    tcp  --  anywhere            anywhere            tcp dpt:ldap state NEW
ACCEPT    tcp  --  anywhere            anywhere            tcp dpt:522 state NEW
ACCEPT    tcp  --  anywhere            anywhere            tcp dpt:1503 state NEW
ACCEPT    tcp  --  anywhere            anywhere            tcp dpt:1720 state NEW
ACCEPT    tcp  --  anywhere            anywhere            tcp dpt:1731 state NEW
ACCEPT    tcp  --  anywhere            anywhere            tcp spts:1024:5999 dpts:1024:65535 state NEW
ACCEPT    udp  --  anywhere            anywhere            udp spts:1024:5999 dpts:1024:65535
ACCEPT    udp  --  anywhere            anywhere            udp dpts:33434:33600
ACCEPT    tcp  --  anywhere            anywhere            tcp spts:1024:5999 dpt:smtp state NEW
ACCEPT    tcp  --  anywhere            anywhere            tcp spts:1024:5999 dpts:6881:6889 state NEW
ACCEPT    tcp  --  anywhere            anywhere            tcp dpt:7741 state NEW
ACCEPT    tcp  --  anywhere            anywhere            tcp spts:1024:5999 dpt:ipp state NEW
ACCEPT    udp  --  anywhere            anywhere            udp dpt:ipp
ACCEPT    tcp  --  anywhere            anywhere            tcp dpt:gnutella-svc state NEW
ACCEPT    tcp  --  anywhere            anywhere            tcp spts:1024:5999 dpts:5190:5193 state NEW
ACCEPT    udp  --  anywhere            anywhere            udp spts:1024:5999 dpts:5190:5193
ACCEPT    udp  --  anywhere            anywhere            udp dpt:sip
ACCEPT    tcp  --  anywhere            anywhere            tcp spts:1024:5999 dpt:pop3 state NEW
ACCEPT    udp  --  anywhere            anywhere            udp dpt:3478
ACCEPT    icmp --  anywhere            anywhere            icmp echo-request
ACCEPT    tcp  --  anywhere            anywhere            tcp dpt:3030 state NEW
ACCEPT    tcp  --  anywhere            anywhere            tcp dpt:printer state NEW
ACCEPT    tcp  --  anywhere            anywhere            tcp spts:1024:5999 dpt:1863 state NEW
ACCEPT    tcp  --  anywhere            anywhere            tcp spts:1024:5999 dpt:xmpp-client state NEW
ACCEPT    tcp  --  anywhere            anywhere            tcp spts:1024:5999 dpt:5223 state NEW
ACCEPT    tcp  --  anywhere            anywhere            tcp spts:1024:5999 dpt:https state NEW
ACCEPT    tcp  --  anywhere            anywhere            tcp dpt:kerberos state NEW
ACCEPT    tcp  --  anywhere            anywhere            tcp dpt:8765 state NEW
ACCEPT    tcp  --  anywhere            anywhere            tcp dpt:domain state NEW
ACCEPT    udp  --  anywhere            anywhere            udp dpt:domain
ACCEPT    tcp  --  anywhere            anywhere            tcp spts:1024:5999 dpt:6969 state NEW
ACCEPT    tcp  --  anywhere            anywhere            tcp spts:1024:5999 dpt:1723 state NEW
ACCEPT    gre  --  anywhere            anywhere
ACCEPT    tcp  --  anywhere            anywhere            tcp spts:1024:5999 dpt:pop3s state NEW
ACCEPT    tcp  --  anywhere            anywhere            tcp spts:1024:5999 dpt:dict state NEW
ACCEPT    tcp  --  anywhere            anywhere            tcp spts:1024:5999 dpt:nntp state NEW
ACCEPT    udp  --  anywhere            anywhere            udp dpt:ntp
ACCEPT    tcp  --  anywhere            anywhere            tcp spts:1024:5999 dpt:ntp state NEW
ACCEPT    tcp  --  anywhere            anywhere            tcp spts:1024:5999 dpt:www state NEW
ACCEPT    tcp  --  anywhere            anywhere            tcp spts:1024:5999 dpt:webcache state NEW
ACCEPT    tcp  --  anywhere            anywhere            tcp spts:1024:5999 dpt:8008 state NEW
ACCEPT    tcp  --  anywhere            anywhere            tcp spts:1024:5999 dpt:8000 state NEW
ACCEPT    tcp  --  anywhere            anywhere            tcp spts:1024:5999 dpt:8888 state NEW
logdrop    all  --  anywhere            anywhere

Chain logaborted (0 references)
target    prot opt source              destination
logaborted2  all  --  anywhere            anywhere            limit: avg 1/sec burst 10
LOG        all  --  anywhere            anywhere            limit: avg 2/min burst 1 LOG level warning prefix `LIMITED '

Chain logaborted2 (1 references)
target    prot opt source              destination
LOG        all  --  anywhere            anywhere            LOG level warning tcp-sequence tcp-options ip-options prefix `ABORTED '
ACCEPT    all  --  anywhere            anywhere            state RELATED,ESTABLISHED

Chain logdrop (4 references)
target    prot opt source              destination
logdrop2  all  --  anywhere            anywhere

Chain logdrop2 (1 references)
target    prot opt source              destination
DROP      all  --  anywhere            anywhere

Chain logreject (0 references)
target    prot opt source              destination
logreject2  all  --  anywhere            anywhere

Chain logreject2 (1 references)
target    prot opt source              destination
REJECT    tcp  --  anywhere            anywhere            reject-with tcp-reset
REJECT    udp  --  anywhere            anywhere            reject-with icmp-port-unreachable
DROP      all  --  anywhere            anywhere

Chain nicfilt (0 references)
target    prot opt source              destination
RETURN    all  --  anywhere            anywhere
RETURN    all  --  anywhere            anywhere
RETURN    all  --  anywhere            anywhere
logdrop    all  --  anywhere            anywhere

Chain s0 (1 references)
target    prot opt source              destination
f0to1      all  --  anywhere            192.168.1.101
f0to1      all  --  anywhere            192.168.1.255
f0to1      all  --  anywhere            localhost.localdomain
logdrop    all  --  anywhere            anywhere

Chain s1 (0 references)
target    prot opt source              destination
f1to0      all  --  anywhere            anywhere

Chain srcfilt (0 references)
target    prot opt source              destination
s0        all  --  anywhere            anywhere

root@1[root]# nmap 192.168.1.1
bash: nmap: command not found

root@1[root]# cat /etc/nsswitch.conf
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd:        compat
group:          compat
shadow:        compat

hosts:          files dns mdns
networks:      files

protocols:      db files
services:      db files
ethers:        db files
rpc:            db files

netgroup:      nis

root@1[root]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:08:A1:15:5B:15
          inet addr:192.168.1.101  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:15 errors:204 dropped:0 overruns:0 frame:0
          TX packets:22 errors:1 dropped:0 overruns:0 carrier:1
          collisions:0 txqueuelen:1000
          RX bytes:2560 (2.5 KiB)  TX bytes:2821 (2.7 KiB)
          Interrupt:193 Base address:0xd800

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:270 errors:0 dropped:0 overruns:0 frame:0
          TX packets:270 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:16192 (15.8 KiB)  TX bytes:16192 (15.8 KiB)

root@1[root]# dhclient eth0
Internet Systems Consortium DHCP Client V3.0.3
Copyright 2004-2005 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP

Listening on LPF/eth0/00:08:a1:15:5b:15
Sending on  LPF/eth0/00:08:a1:15:5b:15
Sending on  Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
No DHCPOFFERS received.
No working leases in persistent database - sleeping.


syg00 03-27-2006 03:34 AM

Why don't we all just pretend I was never in this thread.
Should know better than to shoot from the lip - especially where networking is concerned.
I'll shuddup now ...

RobertP 03-27-2006 06:23 AM

The only thing I see that is unusual is a large number of errors from ifconfig for eth0. Try restarting networking and

mii-tool eth0

Do you get a link light on the NIC?

nonoitall 03-27-2006 10:31 PM

Code:

root@1[root]# mii-tool eth0
eth0: negotiated 100baseTx-FD, link ok

And the link light is on.

tormented_one 03-27-2006 10:58 PM

Just curious what is the make/model of the NIC?

RobertP 03-27-2006 10:59 PM

I think there is nothing wrong with the Linux box. Can you surf to the router and check its configuration? Can you surf to the internet? It could be the the router is set to ignore/block pings. That could be a security feature. It would be very annoying if it blocked port 80.

Try also flushing the firewall rules:
iptables -F
iptables -L

I do not understand why you have an IP address if dhclient does not get an answer. Try /etc/init.d/network stop
/etc/init.d/network start
to bring the network up in the usual manner.

nonoitall 03-28-2006 12:02 AM

In the distros that have the problem, I can't do anything on the internet - surf or ping. In some distros and in Windows pinging and surfing both work fine (to any computer on the internet or to the router). In the problem distros the only addresses I can successfully ping are 127.0.0.1 and whatever address the router gives me through DHCP. After flushing the firewall rules, I tried pinging and got a response to the effect of 'sendto not being an allowed command' on any IP address I tried to ping (even if it was one of the two that worked before). (Sorry I forgot to copy the exact error message, but if you need a more detailed error message I can check it again.) Anyway, after that I tried stopping/starting the network and got the following response:
Code:

root@1[init.d]# /etc/init.d/networking stop
Deconfiguring network interfaces...Internet Systems Consortium DHCP Client V3.0.3
Copyright 2004-2005 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP

Listening on LPF/eth0/00:08:a1:15:5b:15
Sending on  LPF/eth0/00:08:a1:15:5b:15
Sending on  Socket/fallback
DHCPRELEASE on eth0 to 192.168.1.1 port 67
send_packet: Operation not permitted
done.
root@1[init.d]# /etc/init.d/networking start
Configuring network interfaces...ifup: interface lo already configured
Internet Systems Consortium DHCP Client V3.0.3
Copyright 2004-2005 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP

Listening on LPF/eth0/00:08:a1:15:5b:15
Sending on  LPF/eth0/00:08:a1:15:5b:15
Sending on  Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
done.


RobertP 03-28-2006 06:43 AM

Looking at the changelog for SLAX, suggests to me they are in rapid development and perhaps have a bug in the init scripts. You could try the manual settings ( see http://slax.linux-live.org/doc_using...ax.php#network ). You need to find the IP address for the name server and plug that in plus an appropriate IPaddress for you NIC not already in use.

Once you find a configuration that works, plug it into the init scripts instead of what came with SLAX.

nonoitall 03-28-2006 03:27 PM

This was on MEPIS 3.4-3. :)

RobertP 03-28-2006 04:04 PM

That is so old! They are now onto 6... and using Ubuntu for a base. Why not upgrade?

Darin 03-28-2006 05:34 PM

Quote:

Originally Posted by nonoitall
Any idea what's up and how to fix it?

What's up? If I had to guess, I'd say it's something in the way the kernel handles the APIC/PCI bus/ACPI/NIC/???? that causes the network module (driver) to not work right. This could be specific to the paramaters used in building the kernels, which would explain why some distros have problems and others don't, even with the same kernel version. This could also be the fault of the motherboard and it's a fix that is worked around (possibly unknowingly) in some distros.

How to fix it? I wish I had a solid answer. I've seen this where the NIC just refuses to work, sometimes it's specific to certain distros. In the past I could always swap out the PoS NIC for a 3Com and everything would work. These days everyone has LAN on Motherboard kits so swapping out the network card for a decent one isn't the same. On some systems I've fixed it by tweaking BIOS settings (like PnP OS) but on others it makes no difference.

syg00 03-28-2006 05:52 PM

Quote:

Originally Posted by RobertP
That is so old! They are now onto 6... and using Ubuntu for a base. Why not upgrade?

You appear not to understand the Mepis release philosophy.
The beta using the Canonical base is still just that - a beta.


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