LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Configure ethernet adapter (https://www.linuxquestions.org/questions/linux-newbie-8/configure-ethernet-adapter-156905/)

rec 03-12-2004 07:17 PM

Configure ethernet adapter
 
I have just installed disk 1 of SuSE and am trying to figure out how to configure the ethernet adapter. My machine is sitting behind a Microsoft wireless router on one of the CAT5 ports. The router is between me and an SBC router/modem so this machine is strictly on TCP/IP to the Microsoft router. The router is using a 10.0.0.X address and these machines are using 10.0.0.X addresses.

When I use ifconfig in linux it showing me a loopback address 127.something.

How do I configure the network adapter?



I still need to download the rest of the SuSE distribution.

Oliv' 03-13-2004 11:40 AM

When you type "ifconfig -a " if you don't see eth0, it means that the network card driver is not loaded :(. So either it is still compiled and located in /lib/modules/'uname -r'/kernel/driver/net and you just have to modprobe it. Or you have to find his driver, compile it and then insert it.
Once it is inserted you should see eth0 when you do "ifconfig -a". Then do:
ifconfig eth0 inet your.ip.address netmask your.network.mask up
route add default gw gateway.ip.address dev eth0

mossy 03-13-2004 11:25 PM

also what modem do you have?
If you a new cust I bet you have the 5100B [5 lights?]
If this is so then it has the ability to do pppoe on the modem itself.

let me know.



rec 03-14-2004 12:44 AM

No the modem is one of the earlier ones, a Westell with four lights; power, ready, link, activity. But like I said this machine isn’t hitting the SBC modem. There is a Microsoft wireless router between me and the modem. The Microsoft router is using PPPOE on the outside and TCP/IP on the inside. In fact it’s using DHCP on the inside but I have the addresses for these machines reserved and mapped to their MAC addresses so even though it is using DHCP the addresses stay the same all the time. Anyway the SBC modem doesn’t figure into this at all. All it sees is the Microsoft router, it doesn’t see my machine.

mossy 03-14-2004 08:21 PM

ok.
if you nic is actually instaleld then you should have two adapters found with ifconfig:

eth0 Link encap:Ethernet HWaddr 00:0A:E6:5F:77:91
inet addr:192.168.0.76 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:699072 errors:0 dropped:0 overruns:0 frame:0
TX packets:676233 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:157605691 (150.3 Mb) TX bytes:98124458 (93.5 Mb)
Interrupt:5 Base address:0xd000

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:16724888 errors:0 dropped:0 overruns:0 frame:0
TX packets:16724888 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1234526725 (1177.3 Mb) TX bytes:1234526725 (1177.3 Mb)


the first is my eth0 - my network card.
the second is lo - loopback - you should have one if these as well.

By the sound of it you did not mention eth0 so I presume the nic is not installed.
See if there is a hardware detection utility in suse that can find and install the driver.

rec 03-15-2004 08:57 AM

OK I just checked again and it isn’t showing but one adapter and that is the one with the loopback address. So I guess from here I need to know how to install the NIC card. Mind you, at this point I know virtually nothing about Linux. I have been reading online tutorials and I went and bought “Linux in a Nutshell” by O’Reilly but even still I am still groping my way along, mostly with the interaction aspect of the system. The basic access and method of execution of commands.

rec 03-15-2004 09:00 AM

NOTE: I have Linux installed on a clean drive and so I am switching back and forth between Linux and Windows by unplugging one drive and plugging in another drive so it takes me a few minutes to switch between systems.

mossy 03-15-2004 09:29 AM

you can make the lilo bootloader you next project.

yes your nic is not installed. you can find the nic make and model if you go to device manager in windows [if xp = controlPan>system>hardware>devmanager>network adapters category.

once you find this it will not be hard to find the driver online, download it and follow the installation intructions.

NB you should first see if there is a hardware detection utility that comes with your linux distro. Most newer OS's comes with something that will detect and install the correct driver. I have not seen many that don't do it automatically.Are you using older pc/nic?

rec 03-15-2004 09:57 AM

Yes the NIC is probably two maybe three years old. It’s a Realtek RTL 8139/810x Fast Ethernet Adapter.

The Linux distribution is SuSE 9.0 and I have it using KDE 3.?

I had thought there would be some sort of auto detect but so far I haven’t figured out where it might be. I was looking online and one of the tutorials said something about un-commenting an entry in the rc.modules file.

Here is the pertinent paragraph:

Once linux is installed, it relies on a probing process to locate and identify cards. You have to help with this process. /etc/rc.d contains a file named rc.modules which has a section of probe operations for network cards. For most card types (3c503, 3c509, etc) you simply uncomment (deleted the #) the line with your comment, reboot and you are done; you will see linux recognize the card. For other cards(NE2000), you will have to include the io address in the probe command in order for linux to recognize the card.

In Windows this would be a simple mater however in Linux I am still kind of lost.

mossy 03-15-2004 10:16 AM

there is a utillity off the menu somewhere. It may be in Yast/Yast2 but if you look around you should fnd it. I will search that cd when I get to work and follow up possibly tonight.

rec 03-15-2004 11:08 AM

OK

I really appreciate the help.

froxass 03-15-2004 11:19 AM

I had some problem
 
I had some problem.
modprobe 3c509 and it's OK I see one network card, bu I can't see another network card. Both are 3COM 3c509.
When I tryed to configure eth1 I gave this error: no such device.
????

mossy 03-17-2004 12:35 AM

sorry I posted the info in another thread and realized today I never updated this one.

here's some links to get the driver for that nic:

http://www.realtek.com.tw/search/sea...x?search=linux


http://www.scyld.com/network/rtl8139.html


All times are GMT -5. The time now is 05:41 AM.