[SOLVED] Interface eth0 does not have an assigned IP address -- Help please!
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Interface eth0 does not have an assigned IP address
I scoured multiple forums on how to assign an IPv4 address to my card, but nothing seems to work.
-----------------------------------------------------
I ran uname -a and got this
Linux kali 4.9.0-kali3-amd64 #1 SMP Debian 4.9.18-1kali1 (2017-04-04) x86_64 GNU/Linux
I'm not sure how to tell what wireless card. I am using the built in one on my laptop.
You say that you are new to Linux. Let me emphasize the Kali is not for beginners. It's a highly specialized distro designed to do one thing, which is penetration testing. You can of course do other things with it, but Kali's single-minded design makes that much more trouble than it's worth.
I suggest you get your Linux feet wet with something of a more general nature, such as Ubuntu, Mageia, Mint, or OpenSUSE.
Linux uses the /etc/network/interfaces file to specify how each network interface should be configured.
Commonly, this file specifies that the interface should use DHCP to configure itself. e.g.:
Code:
auto eth0
iface eth0 inet dhcp
("DHCP" is the usual way that, say, "your phone" automagically obtains an IP-address on your home network as soon as you walk into the door. It "broadcasts" a request, and your router answers.)
First, check this file to see if anyone monkeyed with it. Then, perhaps all you need to do is to reboot your machine, or at least restart networking, so that your computer repeats the DHCP request and thereby obtains the IP-address that it needs.
"I'm not sure how to tell what wireless card. I am using the built in one on my laptop. "
Linux wireless would not be eth0 I'd think. I assume you mean built in as in wireless and not the ethernet wired connector.
THANK YOU SO MUCH!
It wasn't working because I was typing eth0 not wlan0. (used to using a VM)
I guess sometimes all it takes is someone to point out my stupidity. Everything works now. Thanks again!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.