LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Network card problems (https://www.linuxquestions.org/questions/linux-networking-3/network-card-problems-89271/)

WiWa 09-04-2003 01:51 PM

Network card problems
 
Hi all,

I have just installed RedHat on my computer. I have problems with the two installed NICs. They are from Realtek and from 3 COM. Both of them are recognized, but they do not get assigned an IP address by DHCP. However, that must 100% work, since all my other PCs get IP. I did extensive searching on this topic and all the major hints I tried in the file below.

Does anyone know (based on the output below) what is wrong and what I could do to solve this annoying problem?

Thanks in advance,

WiWa

[root@Thorgal root]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:50:DA:07:F0:80
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:18 errors:0 dropped:0 overruns:0 frame:0
TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:4656 (4.5 Kb) TX bytes:3762 (3.6 Kb)
Interrupt:10 Base address:0xc000

eth1 Link encap:Ethernet HWaddr 00:48:54:1A:AC:71
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5 errors:0 dropped:0 overruns:0 frame:0
TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:585 (585.0 b) TX bytes:3762 (3.6 Kb)
Interrupt:11 Base address:0x9000

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:134 errors:0 dropped:0 overruns:0 frame:0
TX packets:134 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:8664 (8.4 Kb) TX bytes:8664 (8.4 Kb)

[root@Thorgal root]# lsmod
Module Size Used by Not tainted
ide-cd 33608 0 (autoclean)
cdrom 33696 0 (autoclean) [ide-cd]
i810_audio 25224 0 (autoclean)
ac97_codec 13384 0 (autoclean) [i810_audio]
soundcore 6532 2 (autoclean) [i810_audio]
agpgart 43072 4 (autoclean)
binfmt_misc 7524 1
autofs 13348 0 (autoclean) (unused)
8139too 17704 1
mii 2156 0 [8139too]
3c59x 30640 1
iptable_filter 2412 0 (autoclean) (unused)
ip_tables 14936 1 [iptable_filter]
microcode 4668 0 (autoclean)
mousedev 5524 1
keybdev 2976 0 (unused)
hid 22244 0 (unused)
input 5888 0 [mousedev keybdev hid]
usb-uhci 26188 0 (unused)
usbcore 77024 1 [hid usb-uhci]
ext3 70368 5
jbd 52212 5 [ext3]

[root@Thorgal root]# service network restart
Shutting down interface eth0: [ OK ]
Shutting down interface eth1: [ OK ]
Shutting down loopback interface: [ OK ]
Setting network parameters: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0:
Determining IP information for eth0... failed.
[FAILED]
Bringing up interface eth1:
Determining IP information for eth1... failed.
[FAILED]

[root@Thorgal network-scripts]# cd /etc/sysconfig/network-scripts
[root@Thorgal network-scripts]# cat ifcfg-eth0
DEVICE=eth0
BOOTPROTO=dhcp
BROADCAST=10.0.0.255
NETWORK=10.0.0.0
ONBOOT=yes
USERCTL=no
PEERDNS=no
TYPE=Ethernet
[root@Thorgal network-scripts]# cat ifcfg-eth1
DEVICE=eth1
BOOTPROTO=dhcp
BROADCAST=10.0.0.255
NETWORK=10.0.0.0
ONBOOT=yes
USERCTL=no
PEERDNS=no
TYPE=Ethernet


[root@Thorgal network-scripts]# ifup eth0

Determining IP information for eth0... failed.
[root@Thorgal network-scripts]# ifup eth1

Determining IP information for eth1... failed.


[root@Thorgal network-scripts]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:50:DA:07:F0:80
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:37 errors:0 dropped:0 overruns:0 frame:0
TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:9654 (9.4 Kb) TX bytes:8208 (8.0 Kb)
Interrupt:10 Base address:0xc000

[root@Thorgal network-scripts]# ifconfig eth1
eth1 Link encap:Ethernet HWaddr 00:48:54:1A:AC:71
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:19 errors:0 dropped:0 overruns:0 frame:0
TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:3873 (3.7 Kb) TX bytes:7866 (7.6 Kb)
Interrupt:11 Base address:0x9000


[root@Thorgal etc]# cat modules.conf
alias parport_lowlevel parport_pc
alias eth0 3c59x
alias eth1 8139too
alias sound-slot-0 i810_audio
post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1 || :
pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 || :
alias usb-controller usb-uhci

[root@Thorgal etc]# cd /etc/init.d
[root@Thorgal init.d]# ./network start
Setting network parameters: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0:
Determining IP information for eth0... failed.
[FAILED]
Bringing up interface eth1:
Determining IP information for eth1... failed.
[FAILED]

xscousr 09-04-2003 02:51 PM

change your ifcfg-eth0 to:

DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
USERCTL=no
PEERDNS=no
TYPE=Ethernet

let the dhcp setup your network

WiWa 09-04-2003 03:06 PM

That didn't help...I removed the Broadcast entry and network entry from the below example, but still I cannot activate both cards...Any other ideas?

DEVICE=eth0
BOOTPROTO=dhcp
BROADCAST=10.0.0.255
NETWORK=10.0.0.0
ONBOOT=yes
USERCTL=no
PEERDNS=no
TYPE=Ethernet

xscousr 09-04-2003 03:11 PM

so why are they there? (broadcast and network statements)

are you on a network where you can assign a temp static ip to test cabling, port connections?

what are you connected to? hub/switch - wall plate?

how can we be sure that the cabling is correct?

WiWa 09-04-2003 03:20 PM

Hi,

I have an ADSL router, with 4 Ethernet connections. The two NICs in my Linux PC are each connected to 1 Ethernet port. My Windows PC is connected to 1 other port. The ADSL router gives out static IP addresses, such as 10.0.0.x.

I don't know how those broadcast and network got there in the first place. Maybe because -when installing Linux- I wanted to choose manual IP addresses (so they always had the same IP). Afterwards I changed my mind and wanted DHCP to assign the addresses

The cabling is 100% correct...Right before this PC, I had another one connected to the same ADSL router, and that previous PC didn't have a problem.

Hope you can help...

xscousr 09-04-2003 03:30 PM

ok - let me get this straight

1 adsl router - currently set to dhcp for internal lan

have you had dhcp working at all? has any pc connected to that router running any operating system been able to receive an ip?

the pc before - was that set to a static ip?

have you tried setting it as static?

put this in ifcfg-eth0 (humour me - try it out)

** Change the gateway to your routers lan interface


DEVICE=eth0
BOOTPROTO=none
BROADCAST=10.0.0.255
IPADDR=10.0.0.5
NETMASK=255.255.255.0
NETWORK=10.0.0.0
ONBOOT=yes
USERCTL=no
PEERDNS=no
GATEWAY=10.117.0.1
TYPE=Ethernet

rename your ifcfg-eth1 to ifcfg-eth1.test (were going to concentrate on getting you up with one nic first then tackle both)

service network stop
service network start

ifconfig (post the result)
netstat -r (post the result)

ping -c 1 10.0.0.1 (lan interface ip - post the result)
ping -c 1 localhost (post the result)
ping -c 1 10.0.0.5 (post the result)

WiWa 09-04-2003 03:58 PM

The ADSL LAN interface is 10.0.0.2. DHCP has always been working. My Windows PC (the one I'm using now) gets IP from that same router. The PC before got assigned an address, so dynamically not statically.

Here the output after changing that file:


[root@Thorgal]# ifconfig:

eth0 Link encap:Ethernet HWaddr 00:50A:07:F0:80
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:77 errors:0 dropped:0 overruns:0 frame:0
TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:9708 (9.4 Kb) TX bytes:4446 (4.3 Kb)
Interrupt:10 Base address:0xc000

[root@Thorgal]# netstat -r

Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
127.0.0.0 * 255.0.0.0 U 40 0 0 lo


[root@Thorgal]# ping -c 1 10.0.0.2
connect: network is unreachable

[root@Thorgal]# ping -c 1 localhost
PING Thorgal (127.0.0.1) from 127.0.0.1: 56(84) bytes of data
64 bytes from Thorgal (127.0.0.1): icmp_seq=1 ttl=64 time=0.931ms

--------Thorgal ping statistics:--------
1 packets transmitted, 1 received, 0% loss, time 0ms
rtt /min/avg/max/mdev=0.931/0.931/0.931/0.000ms


[root@Thorgal]# ping -c 1 10.0.0.5
connect: network is unreachable

xscousr 09-04-2003 04:06 PM

the ip isn't getting assigned staticly either......hmmmm

have you had these nic's working on anohter system or ever?

do the previous exercise with eth1 - rename ifcfg-eth0 to ifcfg-eth0.test
etc etc

WiWa 09-04-2003 04:20 PM

With my second card it works...Probably the first one is not good...AFter it succeeded for eth1, I changed back the config to :

DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
USERCTL=no
PEERDNS=no
TYPE=Ethernet

but that didn't work...

So conclusion: if you assign statically it works...if you let dhcp do the work, it doesn't work...However I'm 100% sure my DHCP works fine. Any ideas?

BTW: even with an IP address, I cannot surf on the net...DO I need to add DNS somewhere?

xscousr 09-04-2003 04:26 PM

remove eth0 from the exercise completely - the nic is dead

now that we know eth1 works change the settings to dhcp

ifcfg-eth1

DEVICE=eth1
BOOTPROTO=dhcp
ONBOOT=yes
USERCTL=no
PEERDNS=no
TYPE=Ethernet

add your dns servers to /etc/resolv.conf
(or whatever nameserver you use - don't use your router address - use an external nameserver)

nameserver 142.77.1.5

service network restart

Looking_Lost 09-04-2003 04:26 PM

Does it help if in modules.conf you swap the aliases around ?

Do you have any sort of firewall on?

WiWa 09-04-2003 04:38 PM

The DNS problem is solved..I can surf on the web...but using static IP addresses...

I did change that file to:

DEVICE=eth1
BOOTPROTO=dhcp
ONBOOT=yes
USERCTL=no
PEERDNS=no
TYPE=Ethernet

and then service network restart:
it says: bringing up interface eth1:
determining IP information for eth1....failed


To that other question: I don't have a firewall running. Does it hurt changing modules.conf...?

Looking_Lost 09-04-2003 04:44 PM

Well looks like you it can't you hurt anymore than it already is :)

All you can do is try and if no effect put it back to what it was.


If you keep plugging away at it and it doesn't get sorted I'd consider starting from scratch, removing the cards from the machine if possible and setting up one at a time, but hey it might kick into life yet :)

WiWa 09-04-2003 04:51 PM

I'll give it a try tomorrow morning, it's getting pretty late here.

Swapping the aliases wouldn't solve the problem of not working via DHCP, but woild -maybe- give more info on whether the 1 card is damaged or not. Am I right...


If you should have ideas about the NICS only working via static addresses and not via DHCP, please let me know...I prefer DHCP, although it's only a small network. ;-)

thanks for helping me to get this far!!

Looking_Lost 09-04-2003 05:02 PM

Was sort of trying to see if the wrong module was getting related to the wrong card, maybe eth0 is being brought up first probed and wrong module so it dies the second one the same but seeing as the proper module is already there it works then dhcp is getting all confused about what goes where - that sort of thing - notice the words "sort of" because I'm wildly hypothesizing but like the X-Files, the truth is out there somewhere :)


All times are GMT -5. The time now is 07:56 AM.