Solved

how to add Ip address in Slackware linux

Posted on 2006-11-06
10
553 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
 
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
Give your grad a cloud of their own!

With up to 8TB of storage, give your favorite graduate their own personal cloud to centralize all their photos, videos and music in one safe place. They can save, sync and share all their stuff, and automatic photo backup helps free up space on their smartphone and tablet.

 

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
MOVING OFFICE / SERVER 22 74
Nic to NIC 5 46
Printer Settings 3 64
DDOS information about ip's, gateways and how it works 2 71
Even if you have implemented a Mobile Device Management solution company wide, it is a good idea to make sure you are taking into account all of the major risks to your electronic protected health information (ePHI).
Don’t let your business fall victim to the coming apocalypse – use our Survival Guide for the Fax Apocalypse to identify the risks and signs of zombie fax activities at your business.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
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…

757 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now