> Pierre's instructions should be enough. I was going to reply, then saw
> it, and adapted my reply, and am sending, as it has some more details.
> 
> Em 18-06-2013 06:59, Pierre Labastie escreveu:
>> Le 18/06/2013 11:47, John Black a écrit :
>>> I took a picture from my cellphone and type it to this email.
>>> 
>>> 1. Adding IPv4 address 192.168.1.1 to the eth0 interface...Cannot find
>>> device "eth0"
>>> 2. -bash-4.2$_
>>> 
>>> -------------
>>> 1. How to fix it?
>>> 2. whay bash not root, it's something wrong?
>>> 
>>> Any help please
>>> 

>> If I understand correctly, you first see the "caanot find device eth0"
>> during boot, then you log in as root, and get the prompt shown on the 2.
>> line.
>> 
>> I think that prompt is OK. To make sure you are root, type "whoami"
>> (should return `root').
> 
> You can go to
> 
> <http://www.linuxfromscratch.org/blfs/view/svn/postlfs/postlfs.html>
> 
> more particularly,
> 
> <http://www.linuxfromscratch.org/blfs/view/svn/postlfs/profile.html>
> 
> and should be able to get a proper prompt.
> 
> 
>> Now, to address the first error, type "ip link show". It should return
>> the list of network devices, with their current state. lo0 is the
>> localhost interface, any other (you might get enp0s3 for example) is the
>> name given by the kernel to the interface. There is also a possibility
>> that you see no other interface if it has not been enabled in the kernel
>> configuration.
> 
> It has been a while since the devices are not given the names used
> before.
> 
> You read at
> 
> <http://www.linuxfromscratch.org/lfs/view/development/chapter07/network.html#stable-net-names>
> 
> how to find the interface name and "Creating Network Interface
> Configuration Files" and "Creating Network Interface Configuration
> Files".
> 
> Unfortunately, there is no /etc/udev/rules.d/70-persistent-net.rules in
> a VM from VMware, at least, not in latest one I built.
> 
> The interfaces can also be listed with:
> 
> ls /sys/class/net
> 
> The interface name will probably start with "en". Either way you find
> it, now the steps, assuming the interface name given in Pierre's example
> "enp0s3":
> 
> 1. Rename the interface
> 
> mv -vi /etc/sysconfig/ifconfig.eth0 /etc/sysconfig/ifconfig.enp0s3
> 
> 2. Edit /etc/sysconfig/ifconfig.enp0s3 and replace eth0 by enp0s3. This
> might do it:
> 
> sed -i 's/eth0/enp0s3/' /etc/sysconfig/ifconfig.enp0s3
> 
> I have not documented what I did, but the mv -vi
> /etc/sysconfig/ifconfig.eth0 ... part, so, hope the instructions are
> accurate, but take them as guidelines.
> 
> These steps will solve the problem, hopefully.
> ________________________________________________________________________
> 
> I have a VM where it is named enp2s1. [That is 64bit, was going to place
> it in a physical machine as my main one, but discovered that for me a 32
> bit is still necessary, so will have to build a new one.]
> ______________________________________________________________________
> 
> Incidentally, if an editor reads this, following link is broken, in 6.37.
> Inetutils-1.9.1:
> 
> <http://www.linuxfromscratch.org/blfs/view/svn/basicnet/inetutils.html>
> ________________________________________________________________________
> 
> --
> []s,
> Fernando
> --

Yes, " Adding IPv4 address 192.168.1.1 to the eth0 interface...Cannot find 
device "eth0"" it's during the boot.
whoami --> root.
I will see that links, thank you for you help Mr. Pierre and Mr. Fernando

____________________________________________________________
FREE ONLINE PHOTOSHARING - Share your photos online with your friends and 
family!
Visit http://www.inbox.com/photosharing to find out more!


-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to