Click to See Complete Forum and Search --> : I cant get my IP Addr
I am running Turbo Linux Server 6.0 LITE on my laptop. I am on hte netowork because hte lights on hte card are on. But I cant figure out how to get my IP Addr. I've tried hte following commands:
ip addr
ipconfig
/sbin/ipconfig
ip arrd doenst give me my IP and hte other 2 say invalid file or dir. Any help is appreciated. Thanks.
Atealtha
05-10-2003, 12:47 PM
ifconfig
not ipconfig
whoops, well, that does nothing either, just goes to the next line.
z0mbix
05-10-2003, 12:55 PM
Originally posted by Carp
whoops, well, that does nothing either, just goes to the next line.
then your network is not configured.
would you like to assist me on doing so? :)
/sbin/ifconfig eth0 up
/sbin/ifconfig
It errored:
eth0: Unknown interfave: no such device.
I assume that you don't have your ethernet modules loaded. Try to configure your network.
I am 100% Linix Newb. I dont know how to do anything.
andysimmons
05-11-2003, 08:21 AM
This thread might help you out....
http://www.justlinux.com/nhf/Networks/NIC_Installation.html
http://www.whatismyipaddress.com
I use it regularly!
andysimmons
05-11-2003, 09:09 AM
Originally posted by MxCl
http://www.whatismyipaddress.com
I use it regularly!
That would give him his WAN address, which isn't necessarily the one that will be associated with his network interface (ifconfig will show him that). Right now he doesn't even have a network interface set up anyway...but yeah, once he does that either tool is good.
It says to type: insmod rtl8139
I get the error:
Device or resource busy
phil_patnude
05-11-2003, 11:21 AM
try this: "modprobe rtl8139"
instead of insmod
if your network card is in a pcmcia (cardbus) slot, rather than a part of your laptop (onboard), make sure "pcmcia" and related modules are also loaded (via modprobe)
same error, but now i get more to the error, I also get this:
insmod rtl8139 failed
Also, Its a card that slides in the sde of the lappy.
phil_patnude
05-11-2003, 01:20 PM
ok, then its some kind of pcmcia card. i'm guessing the modprobe failed because either:
you don't have the proper pcmcia modules loaded
and/or
you are trying to load the wrong driver for your card
are you sure that the card is based on the rt8139 chipset?
I dont k now what the card is based, I got that command from a thread someone linked me to. Go to page 1 in this thread to see hte page.
phil_patnude
05-11-2003, 03:27 PM
:) ok, you've made an easy mistake.
In the NHF ("newbie help file") you reference, the author Skamm
uses the rtl8139 module because that's the appropriate driver for his network card. modprobe's faillure indicates that this Realtek NIC is not your card.
it's easy to miss the first few lines of the NHF, which read:
Help File Library: NIC Installation
* you are using Red Hat Linux 6.0 or equivilant
* your Realtek nick is like mine and uses the rtl8139 driver.
*Remember you can use any driver with this Help File, we are using the realtek driver as an example.
Since the driver is not the right one (as i predicted in my previous post), the first thing we have to determine is what is the appropriate driver. Why don't you post the manafacturer and model printed on the card. Knowing what card it REALLY is will allow me to point you to the next step.
EDIT:
p.s.: this is unrelated to the issue at hand, but I'm curious as to why you're running a server distro on your laptop??
I'musing it for a webserver, and ftp server (locally for testing). Also, when I try to install Redhat, or pretty much any other dsitro, I pop the CD in and get a Checksum error, it says "Checksum error, cannot install. Sorry!" Anyways, the card is a D-Link DFE-670TXD
Thanks.
phil_patnude
05-12-2003, 12:01 AM
ok i did a little reseach and i'm fairly certain that the proper module for the card is called "pcnet_cs". so try modprobe pcnet_cs and see if that will detect the card.
note: if you don't have the proper pcmcia support already loaded, you will probably need to load those modules. sometimes there are specific modules for isa->pcmcia chipsets as well. i don't know your manafacturer/model of your laptop, so i don't know if this is the case for you.
let me know how it turns out. hopefully after this step you'll be ready to configure your net
potential problem area: since your distro is as old as it is (turbolinux 6.0 dates back to around 2000 - i think), you may not even have the pcnet_cs module. if thats the case, then helping you is a bit beyond the scope of my ability right now
good luck
Ok, that doesnt work either, no errors, but goes tot the next line. Its an IBM Thinkpad Type: 2635 (if that isnt the model, i dont know where it is)
phil_patnude
05-12-2003, 09:09 PM
Actually, the module seems to have loaded fine. Modprobe will usually not output any message unless something goes wrong.
(if it doesn't produce an error message, then the module did load correctly. )That's good news! (It also seems we won't need any specific pcmcia modules)
Naturally, your network still won't be functional yet. That's because it hasn't been configured. I'll need some more information on how you connect to the internet (cable/dsl/modem) & your general newwork setup before we can set it up. Help me help you by answering these questions:
What does the network cable connected to your laptop connect to on its other end? (A hub, router, switch, cable/dsl modem, or directly into another computer's NIC card?)
Should the machine have a fixed (permanent) IP address, or will another machine assign it an IP addy (dynamic ~ dhcp)?
Will other computers be depending on this one for internet access? (Will it be acting as a gateway or router?)
Lastly, just to make sure your module did load correctly, let me know what happens when you issue this command:
ifconfig eth0 192.168.0.2
then this one...
ifconfig
These commands will try to assign the ip address 192.168.0.2 (an internal network ip address) to your NIC card, and then see if the device shows up properly in the linux ip-configuration program.
Then try to run these 2 commands and tell me the results
dhcpcd eth0
if that works without producing any error messages, run:
ifconfig
This will test to see if you are getting a dynamic ip address via a dhcp sever.
PS: If you've restarted your computer since the last advice I gave you, you'll have to run modprobe pcnet_cs before tying to use ifconfig.
ifconfig 192.168.0.3 = 192.168.0.3: error fetching inteface information: Device not found
dhcpcd eth0 = bash: dhcpcd: command not found
I connect the a switch and other computers will not depend on this computer for internet. Thanks.
phil_patnude
05-13-2003, 01:23 PM
ifconfig 192.168.0.3 = 192.168.0.3: error fetching inteface information: Device not found
Okay, i think you may have omitted the part of the command that tells ifconfig which interface to configure. It thinks 192.168.0.3 is your interface's name. Type in this command exactly as I specify:
ifconfig eth0 192.168.0.3
dhcpcd eth0 = bash: dhcpcd: command not found
Apparently, the dhcp (i think that stands for dynamic host connection protocol, but don't quote me on that one) client dhcpcd is not installed on your system. Type dhc at a command prompt and then press the tab key twice to see what dhcp client is availble for you to use. Let me know what you're working with
Does your switch automatically give out ip addresses to the computers connected to it, or do you manually give your other machines whichever ip addresses you like?
mborrill
05-22-2003, 09:02 AM
Originally posted by andysimmons
This thread might help you out....
http://www.justlinux.com/nhf/Networks/NIC_Installation.html
thx's for that, it help me out plenty ;-)
phil_patnude
05-24-2003, 02:20 PM
did you follow any of the advice i suggested? did you ever get the information I asked about you network?
WOW! Sorry for not posting in like a month. I have dhclient, dhcpd, and dhcrelay.
bwkaz
06-01-2003, 10:04 PM
dhcpd is a DHCP server, not a client, and dhcrelay is ... something else (I'm not entirely sure what, but I'm pretty sure it's not a client).
If you're sure you have a DHCP server running somewhere else on the LAN (other machines are configured for DHCP, right? -- the option in Windows is called "obtain an IP address automatically"), then you should be able to do dhclient eth0 or something very similar.
that would probably work, but eth0 doesnt work for me.
eth0: unknown interface: no such device
Bind to socket interface: no such device
and I do have a DHCP server in my lan.
Does anyone have more idea's?
bwkaz
06-02-2003, 10:05 PM
pcnet_cs is still loaded (the module, that is), right? If not, reload it (or add alias eth0 pcnet_cs to /etc/modules.conf and run /sbin/depmod -a as root) and try again.
If it is loaded, then what does ifconfig -a say (before you run dhclient)?
bash: alias: 'eth0' not found
bash: alias: 'pcnet_cs' not found
ERRORS are all I get.
bwkaz
06-03-2003, 07:35 PM
:)
Don't type that alias line into a shell -- it's not shell syntax. Add it to your /etc/modules.conf file. But do type in the /sbin/depmod -a line.
So, what do i type at command line to do so? I'm a complete newb...
etc/modules.conf ???
bwkaz
06-05-2003, 10:04 PM
Sorry, I'm assuming too much. :)
You need to use an editor to change the /etc/modules.conf file. My personal favorite is vi, because it's installed everywhere, but you might have other more user-friendly editors installed (pico, nano, or if you can run X, kedit, gedit, xedit, gvim (has menus and GUI stuff, so it's easier), etc.).
In short, if you decide to try vi, do this:
su
<enter root password>
vi /etc/modules.conf Then, hit the 'i' key to get into insert mode. Use the arrow keys to get to the start of any line, and hit return a couple of times. Then go back to the start of one of the blank lines you just created, and type in the alias thing -- alias eth0 pcnet_cs. Hit the escape key, then type in :, w, and q, then hit enter. This will save the file and exit vi.
If you screw something up, hitting escape then typing :, q, ! and hitting enter (that's colon, q, exclamation point) will exit and discard changes.
Thanks for all the help guys! I switched to knoppix (loaded onto the HDD) and it works with my network card! Once again, Thanks for all the help