LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   help with 2nd nic ' resource temperarily unavaliable' (https://www.linuxquestions.org/questions/linux-newbie-8/help-with-2nd-nic-resource-temperarily-unavaliable-336267/)

taiwf 06-22-2005 09:07 PM

help with 2nd nic ' resource temperarily unavaliable'
 
HI
i have just installed another NIC onto my linux machine (woody version). I assign an ip to it via editing /etc/network/interfaces and install driver via modconf command. When i restart the computer i can't see the new eth1 loaded. I try to use ifconfig eth1 up 192.168.50.126 netmask 255.255.255.0 command, and i got resource temperarily unavaliable. But the funny thing is , i can ping the 126 address from other computer in lan , there is no data loss.


Can anyone help me with this problem? Btw , our LAN use static IP and the driver for eth0 is epro100 and eth1 is sis900.

============below is the mesg i got when typing dmesg ==========


apm: BIOS version 1.2 Flags 0x03 (Driver version 1.13)
apm: disabled on user request.
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 152k freed
NET4: Unix domain sockets 1.0 for Linux NET4.0.
Adding Swap: 499896k swap-space (priority -1)
eepro100.c:v1.09j-t 9/29/99 Donald Becker http://cesdis.gsfc.nasa.gov/linux/drivers/eepro100.html
eepro100.c: $Revision: 1.20.2.10 $ 2000/05/31 Modified by Andrey V. Savochkin <saw@saw.sw.com.sg> and others
eepro100.c: VA Linux custom, Dragan Stancevic <visitor@valinux.com> 2000/11/15
The PCI BIOS has not enabled this device! Updating PCI command 0113->0117.
eth0: Intel PCI EtherExpress Pro100 82557, 00:90:27:59:32:7C, IRQ 11.
Board assembly 721383-006, Physical connectors present: RJ45
Primary interface chip i82555 PHY #1.
General self-test: passed.
Serial sub-system self-test: passed.
Internal registers self-test: passed.
ROM checksum self-test: passed (0x04f4518b).
Installing knfsd (copyright (C) 1996 okir@monad.swb.de)
PCI: Enabling bus mastering for device 00:80
sis900.c: v1.06.09 09/28/2001
eth1: SiS 900 PCI Fast Ethernet at 0x1400, IRQ 0, 00:40:33:e2:2b:32.
eth1: SiS 900 Internal MII PHY transceiver found at address 1.
eth1: Using transceiver found at address 1 as default
===============================================





Thanks in advance

somarasa 06-23-2005 01:54 AM

Try $ ping 192.168.50.(some real adress) -I eth1
if this work then it is OK

taiwf 06-23-2005 11:07 PM

Quote:

Originally posted by somarasa
Try $ ping 192.168.50.(some real adress) -I eth1
if this work then it is OK

hmm i got bad interface adress 'eth1' if i type in the command you suggested. I got the same message if i type eth0. But it work if i replace eth1 with 192.168.50.126.

So, what is the problem? is it because that my 2 interace card can't connect to the same subnets?


Sorry, if it's a dump question, i just start to play around linux few day ago :P.

Harlin 06-24-2005 12:02 AM

Quote:

So, what is the problem? is it because that my 2 interace card can't connect to the same subnets?
You can have as many connections from one box to any (or the same) subnets.

Quote:

Sorry, if it's a dump question, i just start to play around linux few day ago :P.
Remember that TCP/IP is the same on a Linux, Windows, or Mac [other OS insert here] box.

Start from the beginning:

1. Before putting in your second card, make sure your first ethernet card is working and doing what you want it to do.
2. Install your second nic. Boot the system.
3. Before making any changes to config files, run ifconfig (as root) on your second card (eth1):
# ifconfig up eth1 192.168.50.x <- replace IP address with the one you want it to have.
Note any error messages you might receive. If no messages then your hardware is most likely working.
4. Do:
# ping IP.Address -I eth1

If all is well then consider that it's working, and then set up your configuration files.

taiwf 06-24-2005 12:53 AM

Quote:

Originally posted by Harlin
You can have as many connections from one box to any (or the same) subnets.



Remember that TCP/IP is the same on a Linux, Windows, or Mac [other OS insert here] box.

Start from the beginning:

1. Before putting in your second card, make sure your first ethernet card is working and doing what you want it to do.
2. Install your second nic. Boot the system.
3. Before making any changes to config files, run ifconfig (as root) on your second card (eth1):
# ifconfig up eth1 192.168.50.x <- replace IP address with the one you want it to have.
Note any error messages you might receive. If no messages then your hardware is most likely working.
4. Do:
# ping IP.Address -I eth1

If all is well then consider that it's working, and then set up your configuration files.


when i type in ping 192.168.50.real_ip -I eth1 , i got:
#bad interface address 'eth1'

Same result if i replace 'eth1' as 'eth0' which is the frist card and work perfectly well with my apache web server (my lan can browse from eth0's ip).

For step 3, i got "resource temperarily unavaliable" as mentioned on the first post of this thread.

any other thing i should try? I am pretty sure the 2nd card work flawlessly,coz i took it from other window machine.

Harlin 06-24-2005 02:33 AM

Run this:

cat /proc/interrupts

See if it's possible the two nics may be mistakenly tied to the same IRQ.

taiwf 06-26-2005 05:22 PM

Below is what i got from cat /proc/interrupts . It seems my eth1 , which use sis900 driver , is not even have irq assigned?


======================================

CPU0
0: 62067 XT-PIC timer
1: 2 XT-PIC keyboard
2: 0 XT-PIC cascade
8: 3 XT-PIC rtc
11: 1545 XT-PIC eth0
13: 1 XT-PIC fpu
14: 207331 XT-PIC ide0
15: 7 XT-PIC ide1
NMI: 0


===============================

By the way, i type in lsmod , and find that my sis900 driver seems not in used. Does that mean i install a wrong driver? (i install sis900 coz there is such chip on my lan card)


------------------------------
debian-dav:/proc# lsmod
Module Size Used by
ip_masq_raudio 2944 0 (unused)
ip_masq_portfw 2536 0 (unused)
ip_masq_mfw 3156 0 (unused)
ip_masq_irc 2164 0 (unused)
ip_masq_ftp 3584 0 (unused)
ip_masq_autofw 2488 0 (unused)
sis900 10156 0 (unused)
nfsd 180920 0 (unused)
nfs 71180 0 (unused)
lockd 42420 0 [nfsd nfs]
sunrpc 57816 0 [nfsd nfs lockd]
binfmt_misc 3788 0 (unused)
binfmt_aout 3756 0 (unused)
eepro100 14888 1
af_packet 6152 0 (unused)
unix 11352 78 (autoclean)
-----------------------------------------------

taiwf 06-27-2005 09:28 PM

was searching around and found the solution.... It seems the plug-and-play feature of bios causing the problem. I simply press DEL at computer reboot, then disable PnP. Everything work as champ :)


http://www.vidarholen.net/contents/linuxtips/


btw , anyone know what "SIOCSIFFLAGS" stand for(or its meaning)?

Harlin 06-27-2005 10:47 PM

Quote:

btw , anyone know what "SIOCSIFFLAGS" stand for(or its meaning)?
Not exactly sure, but I used to see it whenever I would try to configure that didn't exist or re-configure something like route add.


All times are GMT -5. The time now is 05:34 PM.