Solved

how to add Ip address in Slackware linux

Posted on 2006-11-06
10
557 Views
Last Modified: 2013-12-05
I use slackware 10.2 and have two ethernet cards installed. when I do "lspci" i can see its there. I want to create one Private and one Public IPs. what commands shall I use.

when I use netconfig I manage to set  one up. and when I put ifconfig -a only one eth0 is shown. How to make both work. Its new install of Linux.

whats the command to do it?
0
Comment
Question by:SachinFIJI
  • 4
  • 3
  • 3
10 Comments
 
LVL 9

Expert Comment

by:paradoxengine
ID: 17887694
Since the interface was not created, probably we've a module (driver) issue.
What kind of nics have you got there, working or not?
0
 
LVL 1

Expert Comment

by:devnull22
ID: 17888829
If by doing ifconfig -a you only see one card, it's because Slackware has not loaded the drivers for the network card.

Are both cards the same type of cards, or are they different? I can't help much without knowing the card types, can you post a lspci and a lsmod, so we can see which hardware they should be and the loaded drivers?

Usually, it might be just a problem of loading the kernel driver, if it exists. Is it the stock kernel, or a compiled kernel you made yourself?

Many questions, not many answers, but hopefully, we'll fix that soon.
0
 

Author Comment

by:SachinFIJI
ID: 17894288
Ismod
Module  size used by  Not tainted


lspci

Ethernet controller: RealTealtek Semiconductor Co., RTL-8139/8139C/....

Ethernet controller: VIA Technologies, Inc VT6102 [Rhine-II]


its custom compiled kernel
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 9

Expert Comment

by:paradoxengine
ID: 17894357
what if you do as root a modprobe via-rhine ?
0
 
LVL 1

Expert Comment

by:devnull22
ID: 17894992
that or modprobe 8139cp or 8139too for the realtek card.

It could also be that in your kernel config, you do not have the modules compiled for the missing network card. Did you manually configure the kernel and removced most network drivers?
0
 

Author Comment

by:SachinFIJI
ID: 17895534
I think the modules for the devices is a problem. The devices are recognized at boot but no output for 'ifconfig -a'

How to solve this problem
0
 
LVL 9

Expert Comment

by:paradoxengine
ID: 17895930
Can you post the complete output of lsmod please?
0
 

Author Comment

by:SachinFIJI
ID: 17896007
when I typed lsmod I get this output:

Module                           size  USed by            Not tainted
0
 
LVL 9

Expert Comment

by:paradoxengine
ID: 17896796
NO modules?!?!?
something's gone wrong with your custom kernel, I bet
have yuou compiled module support into it?
0
 
LVL 1

Accepted Solution

by:
devnull22 earned 125 total points
ID: 17897907
I would try getting your Slackware cd, and reinstall the kernel on it. Just to make sure the problem goes away, then, you can try and compile your kernel, but keep the one that works, till you get a compiled kernel that works as you want it too.

Compiling a kernel can bring a bit more performance, or a leaner machine, but it can lead to situations like not having modules supported, or worse... not supporting your ide drivers or scsi for your hard disk (yes, I made that mistake once).

My advice when compiling a kernel, keep a stock distribution kernel installed, and when compiling, don't do the make install. Copy the kernel to /boot, and modify your /etc/lilo.conf manually (I think slack still uses lilo) so you can boot between both kernels. With the stock kernel, your network cards should work out of the box.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question