View previous topic :: View next topic |
Author |
Message |
JoeS Just Arrived
Joined: 08 Apr 2005 Posts: 1
|
Posted: Sun May 30, 2010 10:22 pm Post subject: Looking for ethernet drivers |
|
|
Using Debian Lenny
I'm looking for drivers for a some ethernet cards:
02:07.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ [10ec: 8139] (rev 10)
Macronix, Inc. [MXIC] MX987x5 [10d9:0531] (rev 25)
and
Dlink dfe-538tx
I'm not familiar with Linux and drivers. Are there modules in Debian for these
drivers; how do I enable them?
Thanks
|
|
Back to top |
|
|
capi SF Senior Mod
Joined: 21 Sep 2003 Posts: 16777097 Location: Portugal
|
Posted: Mon May 31, 2010 1:35 am Post subject: |
|
|
The Realtek 8139 is an extremely popular chipset. You definitely have support for it among the Debian standard modules. You will want the 8139too module, or the 8139cp module if your card is an 8139 C+.
As for the Macronix and Dlink, I'm not really sure which modules you'd need; I'm not familiar with those cards. Perhaps a quick web search for "dlink dfe-538tx linux driver" will be of help.
udev should really be handling all this automatically for you, though. It will pick the right module for the hardware it detects. Are you not using udev for some reason, or have you experienced any specific errors? The output from dmesg should tell you whether the devices are being detected on boot or not.
|
|
Back to top |
|
|
JoeS Just Arrived
Joined: 08 Apr 2005 Posts: 1
|
Posted: Mon May 31, 2010 7:45 pm Post subject: |
|
|
I think the module for macronix is tulip.
I used lsmod and it showed the tulip and 8139too , but I still can't get
a connection. I tried an Ubuntu live CD and I got an Internet connection with
the Macronix card. I couldn't get one with the Realtek. There must be something
else I need to do with configuration, but I'm not familiar with drivers or networking.
The files I know about are /etc/network/interfaces and /etc/resolv.conf.
Here is the output if that helps:
interfaces
Quote: |
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0
# The primary network interface
allow-hotplug eth1
iface eth1 inet dhcp
hostname Debian |
resolv.conf
Quote: |
domain cg.shawcable.net
search cg.shawcable.net
nameserver 64.59.135.133
nameserver 64.59.135.135
nameserver 64.59.128.120 |
|
|
Back to top |
|
|
capi SF Senior Mod
Joined: 21 Sep 2003 Posts: 16777097 Location: Portugal
|
Posted: Mon May 31, 2010 8:56 pm Post subject: |
|
|
Hmm, to be honest I'm more used to Gentoo's network configuration scripts than Debian's. Still, I'm not seeing anything wrong in those files. I take it you don't want the eth1 interface to always come up automatically on boot, yes? (due to the lack of an "auto eth1" statement)
Can you tell me exactly which symptoms are you having? Are you for example able to ping your modem, by IP? Or does the network interface not even get an IP in the first place?
Let's try to gather a bit more information about the configuration the network interfaces are obtaining. Please try to obtain an Internet connection, then run these commands and paste the output here:
Code: |
$ ifconfig -a
$ route |
Also, in order to see whether you have any firewall rules configured, please run these as root and paste the output here:
Code: |
# iptables -v -L -t filter
# iptables -v -L -t mangle
# iptables -v -L -t nat |
|
|
Back to top |
|
|
JoeS Just Arrived
Joined: 08 Apr 2005 Posts: 1
|
Posted: Tue Jun 01, 2010 8:50 am Post subject: |
|
|
capi wrote: |
Can you tell me exactly which symptoms are you having? Are you for example able to ping your modem, by IP? Or does the network interface not even get an IP in the first place? |
I don't know how to ping the modem. I tried to ping cg.shawcable.net
which is my ISP:
Debian:~# ping cg.shawcable.net
ping: unknown host cg.shawcable.net
Quote: |
Please try to obtain an Internet connection, then run these commands and paste the output here:
Code: |
$ ifconfig -a
$ route |
|
I can't get a connection. I used to get a connection with the onboard ethernet
but intermitantly.
I used a live CD to run the commands:
ubuntu@ubuntu:~$ ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:08:74:dc:12:35
UP BROADCAST 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)
eth1 Link encap:Ethernet HWaddr 00:80:c6:fb:8f:16
inet addr:174.0.184.216 Bcast:174.0.187.255 Mask:255.255.252.0
inet6 addr: fe80::280:c6ff:fefb:8f16/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4951 errors:0 dropped:0 overruns:0 frame:0
TX packets:85 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:316465 (316.4 KB) TX bytes:10230 (10.2 KB)
Interrupt:17 Base address:0xe800
eth2 Link encap:Ethernet HWaddr 00:a1:b0:10:7f:f1
UP BROADCAST 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)
Interrupt:16 Base address:0xec00
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:85 errors:0 dropped:0 overruns:0 frame:0
TX packets:85 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:9144 (9.1 KB) TX bytes:9144 (9.1 KB)
Quote: |
Also, in order to see whether you have any firewall rules configured, please run these as root and paste the output here:
Code: |
# iptables -v -L -t filter
# iptables -v -L -t mangle
# iptables -v -L -t nat |
|
iptables -v -L -t filter
Chain INPUT (policy DROP 1 packets, 64 bytes)
pkts bytes target prot opt in out source destination
30 2076 ACCEPT all -- lo any anywhere anywhere
111 38158 bad_packets all -- any any anywhere anywhere
0 0 DROP all -- any any anywhere 224.0.0.1
0 0 ACCEPT all -- eth1 any anywhere anywhere state RELATED,ESTABLISHED
0 0 tcp_inbound tcp -- eth1 any anywhere anywhere
0 0 udp_inbound udp -- eth1 any anywhere anywhere
0 0 icmp_packets icmp -- eth1 any anywhere anywhere
110 38094 DROP all -- any any anywhere anywhere PKTTYPE = broadcast
1 64 LOG all -- any any anywhere anywhere limit: avg 3/min burst 3 LOG level warning prefix `INPUT packet died: '
Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy DROP 228 packets, 20505 bytes)
pkts bytes target prot opt in out source destination
0 0 DROP icmp -- any any anywhere anywhere state INVALID
30 2076 ACCEPT all -- any any localhost anywhere
0 0 ACCEPT all -- any lo anywhere anywhere
0 0 ACCEPT all -- any eth1 anywhere anywhere
13 1487 LOG all -- any any anywhere anywhere limit: avg 3/min burst 3 LOG level warning prefix `OUTPUT packet died: '
Chain bad_packets (1 references)
pkts bytes target prot opt in out source destination
0 0 LOG all -- any any anywhere anywhere state INVALID LOG level warning prefix `Invalid packet: '
0 0 DROP all -- any any anywhere anywhere state INVALID
1 64 bad_tcp_packets tcp -- any any anywhere anywhere
111 38158 RETURN all -- any any anywhere anywhere
Chain bad_tcp_packets (1 references)
pkts bytes target prot opt in out source destination
0 0 LOG tcp -- any any anywhere anywhere tcp flags:!FIN,SYN,RST,ACK/SYN state NEW LOG level warning prefix `New not syn: '
0 0 DROP tcp -- any any anywhere anywhere tcp flags:!FIN,SYN,RST,ACK/SYN state NEW
0 0 LOG tcp -- any any anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,URG/NONE LOG level warning prefix `Stealth scan: '
0 0 DROP tcp -- any any anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,URG/NONE
0 0 LOG tcp -- any any anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,URG/FIN,SYN,RST,PSH,ACK,URG LOG level warning prefix `Stealth scan: '
0 0 DROP tcp -- any any anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,URG/FIN,SYN,RST,PSH,ACK,URG
0 0 LOG tcp -- any any anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,URG/FIN,PSH,URG LOG level warning prefix `Stealth scan: '
0 0 DROP tcp -- any any anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,URG/FIN,PSH,URG
0 0 LOG tcp -- any any anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,URG/FIN,SYN,RST,ACK,URG LOG level warning prefix `Stealth scan: '
0 0 DROP tcp -- any any anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,URG/FIN,SYN,RST,ACK,URG
0 0 LOG tcp -- any any anywhere anywhere tcp flags:SYN,RST/SYN,RST LOG level warning prefix `Stealth scan: '
0 0 DROP tcp -- any any anywhere anywhere tcp flags:SYN,RST/SYN,RST
0 0 LOG tcp -- any any anywhere anywhere tcp flags:FIN,SYN/FIN,SYN LOG level warning prefix `Stealth scan: '
0 0 DROP tcp -- any any anywhere anywhere tcp flags:FIN,SYN/FIN,SYN
1 64 RETURN tcp -- any any anywhere anywhere
Chain icmp_packets (1 references)
pkts bytes target prot opt in out source destination
0 0 LOG icmp -f any any anywhere anywhere LOG level warning prefix `ICMP Fragment: '
0 0 DROP icmp -f any any anywhere anywhere
0 0 DROP icmp -- any any anywhere anywhere icmp echo-request
0 0 ACCEPT icmp -- any any anywhere anywhere icmp time-exceeded
0 0 RETURN icmp -- any any anywhere anywhere
Chain tcp_inbound (1 references)
pkts bytes target prot opt in out source destination
0 0 RETURN tcp -- any any anywhere anywhere
Chain tcp_outbound (0 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT tcp -- any any anywhere anywhere
Chain udp_inbound (1 references)
pkts bytes target prot opt in out source destination
0 0 DROP udp -- any any anywhere anywhere udp dpt:netbios-ns
0 0 DROP udp -- any any anywhere anywhere udp dpt:netbios-dgm
0 0 ACCEPT udp -- any any anywhere anywhere udp spt:bootps dpt:bootpc
0 0 RETURN udp -- any any anywhere anywhere
Chain udp_outbound (0 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT udp -- any any anywhere anywhere
-----------------------------
iptables -v -L -t filter
Chain PREROUTING (policy ACCEPT 159 packets, 46644 bytes)
pkts bytes target prot opt in out source destination
Chain INPUT (policy ACCEPT 155 packets, 45148 bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 267 packets, 23193 bytes)
pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 30 packets, 2076 bytes)
pkts bytes target prot opt in out source destination
--------------------------------
iptables -v -L -t nat
Chain PREROUTING (policy ACCEPT 146 packets, 50436 bytes)
pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 3 packets, 180 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 240 packets, 21297 bytes)
pkts bytes target prot opt in out source destination
|
|
Back to top |
|
|
capi SF Senior Mod
Joined: 21 Sep 2003 Posts: 16777097 Location: Portugal
|
Posted: Tue Jun 01, 2010 2:35 pm Post subject: |
|
|
JoeS wrote: |
I don't know how to ping the modem. I tried to ping cg.shawcable.net
which is my ISP:
Debian:~# ping cg.shawcable.net
ping: unknown host cg.shawcable.net |
That's ok, we'll get to that later.
JoeS wrote: |
I can't get a connection. I used to get a connection with the onboard ethernet
but intermitantly.
I used a live CD to run the commands: |
I understand that you can't get a working connection. The point is that those commands will give us information about what is happening with your system -- did the interface get an IP (which would tells us that DHCP is working properly), did it get a default gateway, do you have any weird firewall rules that might be blocking traffic, and so on.
Running the commands on a live CD tells us what is going on in the live CD; this doesn't help much for now. It may be useful later, to compare with your normal system, but right now we really want to see what is going on in your normal installation. It's hard enough troubleshooting one system
Please run everything on your normal system, in its normal working state, when you would expect it to have an Internet connection (even if the connection is not working). Don't forget to run route as well; its output complements that of ifconfig.
Also, again in your normal system, please try pinging something by its IP. If you are able to ping an external IP, that means you have a working connection and that the problem is only with DNS resolution. You can ping one of Google's IPs, for example:
Code: |
ping 209.85.227.103 |
If that fails, please paste the error here.
Given that you don't have a working Internet connection on that system, the easiest way to get the output of the commands out is to copy it to a text file, then transfer the text file to another computer using an USB pen or something like that.
|
|
Back to top |
|
|
JoeS Just Arrived
Joined: 08 Apr 2005 Posts: 1
|
Posted: Tue Jun 01, 2010 9:10 pm Post subject: |
|
|
I found part of the problem. My firewall had the wrong setting. I set it to eth0 and I got the Macronix card to work.
I then changed the setting to eth3 in the firewall & network/interfaces and restarted networking:
Code: |
/etc/init.d/networking restart |
I couldn't get a connection with the Realtek card. There is no flashing light when I connect the ethernet cable like with the Macronix. Does this mean the card is dead or I need another driver? I would like to get this card working as well if I can. I posted the info you asked for below.
Code: |
Debian:~# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:80:c6:fb:8f:16
inet addr:174.0.184.216 Bcast:255.255.255.255 Mask:255.255.252.0
UP BROADCAST RUNNING MULTICAST MTU:576 Metric:1
RX packets:11513 errors:0 dropped:0 overruns:0 frame:0
TX packets:2348 errors:20 dropped:0 overruns:0 carrier:20
collisions:0 txqueuelen:1000
RX bytes:1520071 (1.4 MiB) TX bytes:324200 (316.6 KiB)
Interrupt:17 Base address:0xe800
eth3 Link encap:Ethernet HWaddr 00:a1:b0:10:7f:f1
BROADCAST 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)
Interrupt:16 Base address:0xec00
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:48 errors:0 dropped:0 overruns:0 frame:0
TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3328 (3.2 KiB) TX bytes:3328 (3.2 KiB) |
Code: |
Debian:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
174.0.184.0 * 255.255.252.0 U 0 0 0 eth0
default 174.0.184.1 0.0.0.0 UG 0 0 0 eth0 |
Code: |
Debian:~# iptables -v -L -t filter
Chain INPUT (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT all -- lo any anywhere anywhere
0 0 bad_packets all -- any any anywhere anywhere
0 0 DROP all -- any any anywhere 224.0.0.1
0 0 ACCEPT all -- eth3 any anywhere anywhere state RELATED,ESTABLISHED
0 0 tcp_inbound tcp -- eth3 any anywhere anywhere
0 0 udp_inbound udp -- eth3 any anywhere anywhere
0 0 icmp_packets icmp -- eth3 any anywhere anywhere
0 0 DROP all -- any any anywhere anywhere PKTTYPE = broadcast
0 0 LOG all -- any any anywhere anywhere limit: avg 3/min burst 3 LOG level warning prefix `INPUT packet died: '
Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy DROP 9 packets, 630 bytes)
pkts bytes target prot opt in out source destination
0 0 DROP icmp -- any any anywhere anywhere state INVALID
0 0 ACCEPT all -- any any localhost anywhere
0 0 ACCEPT all -- any lo anywhere anywhere
0 0 ACCEPT all -- any eth3 anywhere anywhere
3 210 LOG all -- any any anywhere anywhere limit: avg 3/min burst 3 LOG level warning prefix `OUTPUT packet died: '
Chain bad_packets (1 references)
pkts bytes target prot opt in out source destination
0 0 LOG all -- any any anywhere anywhere state INVALID LOG level warning prefix `Invalid packet: '
0 0 DROP all -- any any anywhere anywhere state INVALID
0 0 bad_tcp_packets tcp -- any any anywhere anywhere
0 0 RETURN all -- any any anywhere anywhere
Chain bad_tcp_packets (1 references)
pkts bytes target prot opt in out source destination
0 0 LOG tcp -- any any anywhere anywhere tcp flags:!FIN,SYN,RST,ACK/SYN state NEW LOG level warning prefix `New not syn: '
0 0 DROP tcp -- any any anywhere anywhere tcp flags:!FIN,SYN,RST,ACK/SYN state NEW
0 0 LOG tcp -- any any anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,URG/NONE LOG level warning prefix `Stealth scan: '
0 0 DROP tcp -- any any anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,URG/NONE
0 0 LOG tcp -- any any anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,URG/FIN,SYN,RST,PSH,ACK,URG LOG level warning prefix `Stealth scan: '
0 0 DROP tcp -- any any anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,URG/FIN,SYN,RST,PSH,ACK,URG
0 0 LOG tcp -- any any anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,URG/FIN,PSH,URG LOG level warning prefix `Stealth scan: '
0 0 DROP tcp -- any any anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,URG/FIN,PSH,URG
0 0 LOG tcp -- any any anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,URG/FIN,SYN,RST,ACK,URG LOG level warning prefix `Stealth scan: '
0 0 DROP tcp -- any any anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,URG/FIN,SYN,RST,ACK,URG
0 0 LOG tcp -- any any anywhere anywhere tcp flags:SYN,RST/SYN,RST LOG level warning prefix `Stealth scan: '
0 0 DROP tcp -- any any anywhere anywhere tcp flags:SYN,RST/SYN,RST
0 0 LOG tcp -- any any anywhere anywhere tcp flags:FIN,SYN/FIN,SYN LOG level warning prefix `Stealth scan: '
0 0 DROP tcp -- any any anywhere anywhere tcp flags:FIN,SYN/FIN,SYN
0 0 RETURN tcp -- any any anywhere anywhere
Chain icmp_packets (1 references)
pkts bytes target prot opt in out source destination
0 0 LOG icmp -f any any anywhere anywhere LOG level warning prefix `ICMP Fragment: '
0 0 DROP icmp -f any any anywhere anywhere
0 0 DROP icmp -- any any anywhere anywhere icmp echo-request
0 0 ACCEPT icmp -- any any anywhere anywhere icmp time-exceeded
0 0 RETURN icmp -- any any anywhere anywhere
Chain tcp_inbound (1 references)
pkts bytes target prot opt in out source destination
0 0 RETURN tcp -- any any anywhere anywhere
Chain tcp_outbound (0 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT tcp -- any any anywhere anywhere
Chain udp_inbound (1 references)
pkts bytes target prot opt in out source destination
0 0 DROP udp -- any any anywhere anywhere udp dpt:netbios-ns
0 0 DROP udp -- any any anywhere anywhere udp dpt:netbios-dgm
0 0 ACCEPT udp -- any any anywhere anywhere udp spt:bootps dpt:bootpc
0 0 RETURN udp -- any any anywhere anywhere
Chain udp_outbound (0 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT udp -- any any anywhere anywhere |
Code: |
Debian:~# iptables -v -L -t mangle
Chain PREROUTING (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain INPUT (policy ACCEPT 2313 packets, 938K bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 18 packets, 1242 bytes)
pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 2402 packets, 297K bytes)
pkts bytes target prot opt in out source destination |
Code: |
Debian:~# iptables -v -L -t nat
Chain PREROUTING (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 18 packets, 1242 bytes)
pkts bytes target prot opt in out source destination |
Code: |
Debian:~# ping 209.85.227.103
PING 209.85.227.103 (209.85.227.103) 56(84) bytes of data.
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
^C
--- 209.85.227.103 ping statistics ---
8 packets transmitted, 0 received, 100% packet loss, time 6999ms
Debian:~# iptables -v -L -t filter
Chain INPUT (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT all -- lo any anywhere anywhere
0 0 bad_packets all -- any any anywhere anywhere
0 0 DROP all -- any any anywhere 224.0.0.1
0 0 ACCEPT all -- eth3 any anywhere anywhere state RELATED,ESTABLISHED
0 0 tcp_inbound tcp -- eth3 any anywhere anywhere
0 0 udp_inbound udp -- eth3 any anywhere anywhere
0 0 icmp_packets icmp -- eth3 any anywhere anywhere
0 0 DROP all -- any any anywhere anywhere PKTTYPE = broadcast
0 0 LOG all -- any any anywhere anywhere limit: avg 3/min burst 3 LOG level warning prefix `INPUT packet died: '
Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy DROP 9 packets, 630 bytes)
pkts bytes target prot opt in out source destination
0 0 DROP icmp -- any any anywhere anywhere state INVALID
0 0 ACCEPT all -- any any localhost anywhere
0 0 ACCEPT all -- any lo anywhere anywhere
0 0 ACCEPT all -- any eth3 anywhere anywhere
3 210 LOG all -- any any anywhere anywhere limit: avg 3/min burst 3 LOG level warning prefix `OUTPUT packet died: '
Chain bad_packets (1 references)
pkts bytes target prot opt in out source destination
0 0 LOG all -- any any anywhere anywhere state INVALID LOG level warning prefix `Invalid packet: '
0 0 DROP all -- any any anywhere anywhere state INVALID
0 0 bad_tcp_packets tcp -- any any anywhere anywhere
0 0 RETURN all -- any any anywhere anywhere
Chain bad_tcp_packets (1 references)
pkts bytes target prot opt in out source destination
0 0 LOG tcp -- any any anywhere anywhere tcp flags:!FIN,SYN,RST,ACK/SYN state NEW LOG level warning prefix `New not syn: '
0 0 DROP tcp -- any any anywhere anywhere tcp flags:!FIN,SYN,RST,ACK/SYN state NEW
0 0 LOG tcp -- any any anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,URG/NONE LOG level warning prefix `Stealth scan: '
0 0 DROP tcp -- any any anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,URG/NONE
0 0 LOG tcp -- any any anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,URG/FIN,SYN,RST,PSH,ACK,URG LOG level warning prefix `Stealth scan: '
0 0 DROP tcp -- any any anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,URG/FIN,SYN,RST,PSH,ACK,URG
0 0 LOG tcp -- any any anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,URG/FIN,PSH,URG LOG level warning prefix `Stealth scan: '
0 0 DROP tcp -- any any anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,URG/FIN,PSH,URG
0 0 LOG tcp -- any any anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,URG/FIN,SYN,RST,ACK,URG LOG level warning prefix `Stealth scan: '
0 0 DROP tcp -- any any anywhere anywhere tcp flags:FIN,SYN,RST,PSH,ACK,URG/FIN,SYN,RST,ACK,URG
0 0 LOG tcp -- any any anywhere anywhere tcp flags:SYN,RST/SYN,RST LOG level warning prefix `Stealth scan: '
0 0 DROP tcp -- any any anywhere anywhere tcp flags:SYN,RST/SYN,RST
0 0 LOG tcp -- any any anywhere anywhere tcp flags:FIN,SYN/FIN,SYN LOG level warning prefix `Stealth scan: '
0 0 DROP tcp -- any any anywhere anywhere tcp flags:FIN,SYN/FIN,SYN
0 0 RETURN tcp -- any any anywhere anywhere
Chain icmp_packets (1 references)
pkts bytes target prot opt in out source destination
0 0 LOG icmp -f any any anywhere anywhere LOG level warning prefix `ICMP Fragment: '
0 0 DROP icmp -f any any anywhere anywhere
0 0 DROP icmp -- any any anywhere anywhere icmp echo-request
0 0 ACCEPT icmp -- any any anywhere anywhere icmp time-exceeded
0 0 RETURN icmp -- any any anywhere anywhere
Chain tcp_inbound (1 references)
pkts bytes target prot opt in out source destination
0 0 RETURN tcp -- any any anywhere anywhere
Chain tcp_outbound (0 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT tcp -- any any anywhere anywhere
Chain udp_inbound (1 references)
pkts bytes target prot opt in out source destination
0 0 DROP udp -- any any anywhere anywhere udp dpt:netbios-ns
0 0 DROP udp -- any any anywhere anywhere udp dpt:netbios-dgm
0 0 ACCEPT udp -- any any anywhere anywhere udp spt:bootps dpt:bootpc
0 0 RETURN udp -- any any anywhere anywhere
Chain udp_outbound (0 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT udp -- any any anywhere anywhere
Debian:~#
Debian:~# iptables -v -L -t mangle
Chain PREROUTING (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain INPUT (policy ACCEPT 2313 packets, 938K bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 18 packets, 1242 bytes)
pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 2402 packets, 297K bytes)
pkts bytes target prot opt in out source destination
Debian:~#
Debian:~# iptables -v -L -t nat
Chain PREROUTING (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 18 packets, 1242 bytes)
pkts bytes target prot opt in out source destination |
Code: |
Debian:~# ping 209.85.227.103
PING 209.85.227.103 (209.85.227.103) 56(84) bytes of data.
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
^C
--- 209.85.227.103 ping statistics ---
8 packets transmitted, 0 received, 100% packet loss, time 6999ms |
|
|
Back to top |
|
|
capi SF Senior Mod
Joined: 21 Sep 2003 Posts: 16777097 Location: Portugal
|
Posted: Wed Jun 02, 2010 6:13 pm Post subject: |
|
|
I took the liberty of editing your post to add [code] tags around the command output, to preserve the formatting and make it more readable.
JoeS wrote: |
Code: |
Debian:~# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:80:c6:fb:8f:16
inet addr:174.0.184.216 Bcast:255.255.255.255 Mask:255.255.252.0
UP BROADCAST RUNNING MULTICAST MTU:576 Metric:1
[...]
eth3 Link encap:Ethernet HWaddr 00:a1:b0:10:7f:f1
BROADCAST MULTICAST MTU:1500 Metric:1
[...] |
|
This right here tells us that eth0 is up and has an IP, whereas eth3 is down -- that would explain why you didn't see the link LED turning on when you inserted the cable.
JoeS wrote: |
Code: |
Debian:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
174.0.184.0 * 255.255.252.0 U 0 0 0 eth0
default 174.0.184.1 0.0.0.0 UG 0 0 0 eth0 |
|
Your system is configured to use eth0 to communicate with your ISP. All your traffic will be routed through that network interface.
If I understood you correctly, you disconnected the network cable from eth0 (the Macronix) and connected it to eth3 (the Realtek). You also edited /etc/network/interfaces to replace eth0 with eth3, then restarted the networking service. Is that right?
The problem here is two-fold -- eth0 was never shutdown. When you took out any mention of eth0 from /etc/network/interfaces, you essentially told Debian not to manage that interface. Therefore, eth0 still has its IP, and the routing table will use it to send all traffic. Of course, the firewall isn't permitting any traffic to leave through eth0, so that is why you received the "operation not permitted" error when you tried to ping.
On the other hand, I'm not sure why eth3 didn't come up. It may be a problem with the way you have your /etc/network/interfaces configured.
It would help if I knew what it is that you are trying to achieve with the two interfaces. Do you want to use them both simultaneously? Are you planning on using that system as a router? (perhaps to share the Internet connection with other computers?)
In any case, let's try removing variables from the problem. We'll take out the firewall and configure the network manually, to see if that way it works. If it does, then we know there's nothing wrong with the card itself, nor with the drivers.
Please connect the cable to eth3. Then type the following commands as root, to configure a very simple firewall that allows all outgoing connections and blocks all incoming connections (except connections from localhost):
Code: |
# iptables --policy INPUT DROP
# iptables --policy OUTPUT ACCEPT
# iptables --policy FORWARD DROP
# iptables --flush
# iptables --delete-chain
# iptables --append INPUT --in-interface lo --jump ACCEPT
# iptables --append INPUT --match state --state RELATED,ESTABLISHED --jump ACCEPT |
Now type the following commands as root to set up the network interfaces themselves:
Code: |
# ifconfig eth0 down
# ifconfig eth3 174.0.184.216 netmask 255.255.252.0 up
# route add default gw 174.0.184.1 |
By now the link light should light up in the Realtek. If all is well you should be able to ping something by IP. Try pinging your own DNS servers, for example:
Code: |
$ ping 64.59.135.133 |
If that works, and assuming your /etc/resolv.conf is still how you showed it a few posts ago, you should be able to resolve hostnames:
And from then on, you should have got a working Internet connection Which means we need to focus on your /etc/network/interfaces file.
If you run into a problem at any stage of this, please post any errors you may obtain. I will be away for a few days but next week I'll be here again.
|
|
Back to top |
|
|
JoeS Just Arrived
Joined: 08 Apr 2005 Posts: 1
|
Posted: Sun Jun 06, 2010 4:50 pm Post subject: |
|
|
I'm not really trying to have 2 Ethernet cards going. Originally
I was trying to get an Internet connection. Now I would like to
see if the Realtek card will work. Sorry for the confusion.
When I put the Macronix cardin I can get a connection
with not much trouble: Put the card in,reboot,
ifconfig eth0 up, then dhclient eth0, but I can't do this
with the Realtek card. I changed the cards to try this before I
read your last post.
I set the cards back to try your advice. This is the output from ifconfig:
eth3 is the Realtek
Code: |
Debian:~# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:80:c6:fb:8f:16
inet addr:174.0.176.77 Bcast:255.255.255.255 Mask:255.255.252.0
UP BROADCAST RUNNING MULTICAST MTU:576 Metric:1
RX packets:1963644 errors:0 dropped:0 overruns:0 frame:0
TX packets:729339 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:671188769 (640.0 MiB) TX bytes:50063973 (47.7 MiB)
Interrupt:17 Base address:0xe800
eth3 Link encap:Ethernet HWaddr 00:a1:b0:10:7f:f1
BROADCAST 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)
Interrupt:16 Base address:0xec00
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:256 errors:0 dropped:0 overruns:0 frame:0
TX packets:256 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:365016 (356.4 KiB) TX bytes:365016 (356.4 KiB) |
I tried the advice you gave:
# ifconfig eth0 down
# ifconfig eth3 174.0.184.216 netmask 255.255.252.0 up
# route add default gw 174.0.184.1
that didn't work, so I adjusted the ip address according to the
ifconfig output above:inet addr:174.0.176.77
Code: |
# ifconfig eth3 174.0.176.77 netmask 255.255.252.0 up
# route add default gw 174.0.176.1 |
These are the results below. I can't get an connection with the Realtek card:
Code: |
Debian:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
174.0.176.0 * 255.255.252.0 U 0 0 0 eth3
default 174.0.176.1 0.0.0.0 UG 0 0 0 eth3 |
Code: |
Debian:~# ping 64.59.135.133
PING 64.59.135.133 (64.59.135.133) 56(84) bytes of data.
From 174.0.176.77 icmp_seq=2 Destination Host Unreachable
Debian:~# ping google.com
This hangs |
|
|
Back to top |
|
|
|