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.
Hello everyone!
I'm pretty new in Linux so I have to ask for your generous help
I recently installed Linux "Fedora" and when I click "ifconfig" I see can see the network card "eth1"
I want to change it to "wlan0", I realized that this is a common enough problem at Fedora, and I read about it a bit on Google but unfortunately I did not understand how to change it correctly.
i'll Say thank's if you will give me the order strictly Consul that allows Linux to change the name of my network card
I might be asking something stupid, but: why do you want to change the name of your network card??? If this card is not a wireless device, then being called eth1 sounds perfectly correct. If this card is a wireless device, nothing stops you from connecting to a wireless router with it, even though it is called eth1.
why do you want to change the name of your device?
The name eth0, eth1, wlan0 and so on are assigned by udev and normally it is not possible (not useful respectively) to change this. You know, wlan0 is the devicename for a wireless-adapter whereas eth0 is the devicename of an ethernet-adapter.
Is eth0 a wireless-adapter? please post the output of
I want to change the name of the network card to support me in "aircrack"
And when I write "iwconfig"I see: eth1 and all other settings (currently it is connected to a wireless network) etho-no wireless extensions
And when I write "ifconfig"I see
eth0 ,mac address, packets, etc. eth1-MAC address different
Last"lo" which listed some of the things :
Link enca: local loopback
inet addr: 127.0.0.1 mask: 255.0.0.0
ands some more..
Thanks for the quick response
Ok.. I don't really know if this works, but you could change the DEVICE section in your
Code:
/etc/sysconfig/networking/devices/ifcfg-eth1
But I can not guarantee that it works, I don't use wireless much myself, but you can try and see if it does something, I belief that this section sets the name of device but I might be way off.
It's easy to change it back if it doesn't go as hoped.
Hi ,
i have tried this code : /etc/sysconfig/networking/devices/ifcfg-eth1
but the answer was : "bash:/etc/sysconfig/networking/devices/ifcfg-eth1:no such file or directory"
and about what reed9 Wrote, i didn't understand ,
as i mentioned above I'm pretty new with Linux
Hi ,
i have tried this code : /etc/sysconfig/networking/devices/ifcfg-eth1
but the answer was : "bash:/etc/sysconfig/networking/devices/ifcfg-eth1:no such file or directory"
and about what reed9 Wrote, i didn't understand ,
as i mentioned above I'm pretty new with Linux
These are all text configuration files. You can edit them with any text editor.
This
Code:
/etc/sysconfig/networking/devices/ifcfg-eth1
Is a path to a location, like C:\Documents and Settings\User\Photos\bob.jpg would be for example in Windows. (Except the above leads to a text file not a photo.)
You need to be root to edit system configuration files. A handy command line text editor is nano, which should be installed by default, so you could open the file as so
Code:
su -
nano /etc/sysconfig/networking/devices/ifcfg-eth1
Did you rename the interface script file? /etc/sysconfig/network-scripts/ifcfg-eth1 --> /etc/sysconfig/network-scripts/ifcfg-wlan0 mv /etc/sysconfig/network-scripts/ifcfg-eth1 /etc/sysconfig/network-scripts/ifcfg-wlan0
Within /etc/sysconfig/network-scripts/ifcfg-wlan0 you should have the top line read: DEVICE=wlan0
And the /etc/udev/rules.d/10-network.rules should have: NAME="wlan0"
After all of that reboot
Last edited by jwl17330536; 12-22-2010 at 08:50 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.