LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 03-04-2016, 08:26 AM   #16
TheStr3ak5
Member
 
Registered: Feb 2016
Location: Zaragoza, Spain
Distribution: Xubuntu, Tails, etc.
Posts: 55

Original Poster
Rep: Reputation: 9

When i say “all eth0 goes bad" i mean who there isnt network,and i think the archive ifconfig.eth0 is bad writed.
Yes,i booted lfs for first time and there isnt network,but in the host distro (xubuntu live) there was network,my resolv.conf file looks like:

search localhost
nameserver 8.8.8.8
nameserver 8.8.4.4

Now i think a new theory,the error will be in ifconfig.eth0.
I will post it son,but i am now far from my computer.
 
Old 03-04-2016, 08:30 AM   #17
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
whats the output of ip addr ?
 
Old 03-04-2016, 11:11 AM   #18
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,041

Rep: Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348
is this a virtual host inside your xubuntu or ?
 
Old 03-04-2016, 10:00 PM   #19
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 628

Rep: Reputation: 185Reputation: 185
Quote:
Originally Posted by TheStr3ak5

Now i think a new theory,the error will be in ifconfig.eth0.
Well okay, but that's a very simple config file. I will tell you how to square that away right now and eliminate it from this puzzle once and for all. Start with the book's example, but it's only a template. You almost certainly will need to change the IP, GATEWAY, and BROADCAST values. Start with GATEWAY...
GATEWAY=xxx.xxx.xxx.xxx
This usually is just the IP address of your router. If you don't know it, you can find the router's default IP address in the router's manual or the manufacturer's web site. You may have changed the router's IP address from the default value, but then you will know what it is.
BROADCAST=xxx.xxx.xxx.255
The standard value for this is the router's IP address with the last octet changed to 255.
IP=xxx.xxx.xxx.yyy
This is the static IP address to be acquired from the router. Again, this is the router's IP address but with the last octet (yyy) changed to any number that is in the IP address range for clients that is set in the router. If you don't know that IP address range, then boot into the host system and enter the router's config utility. You will find it somewhere in there. Look for an IP start address and end address, or sometimes it's a start address and number of allowed clients. With that information, you can set a valid IP value.
There. The ifconfig.eth0 file is fixed and can be set aside. Onward to more common Ethernet problems.


The Kernel Driver

Fortunately, and unlike wireless devices, almost all wired Ethernet adapters "just work" in Linux. But the kernel has to be configured to build its driver. Some drivers are set by default, others are not. You may need to do that. Usually the host system used to build the LFS system is the best source of information about the Ethernet driver you need. That driver is usually easy to figure out by studying the host system's lspci -k output as someone above already mentioned. It will tell exactly which kernel driver module the host system is using to operate the Ethernet device. For that kernel driver to be built, its kernel config symbol (e.g., CONFIG_SOMETHING) needs to be set to y or m in your LFS kernel configuration. It's usually not obvious what a driver's kernel config symbol is. I usually find out the config symbol for a module at www.cateee.net. There may be some better way, but I just enter a Google search for the module and add site:cateee.net right after the module name. For my Ethernet driver module, as an example, I would enter in Google... tg3 site:cateee.net. And I would see the following and learn that my tg3 driver module's kernel config symbol is CONFIG_TIGON3...
http://cateee.net/lkddb/web-lkddb/TIGON3.html
Okay? Now you can find out your Ethernet kernel module and discover its kernel config symbol. Then see if it is set to y or m in your LFS kernel's config file by simply using grep on the config file in /boot of your LFS system for that config symbol, like this for my Ethernet module's config symbol...
Code:
$ grep 'CONFIG_TIGON3' /boot/config-4.1.5-2-CORE2 
CONFIG_TIGON3=m
So for example, my kernel Ethernet module in lspci is tg3, and its config symbol is CONFIG_TIGON3, and it is set to m. If yours is not set to y or m, then you need to recompile your kernel and make it so.


The Udev Rule

Usually, a udev rule magically appears in /etc/udev/rules.d/70-persistent-net.rules. See if one is there for your device. If not, then try running this command as root...
Code:
/lib/udev/init-net-rules.sh
It probably will create one.


Conclusion

These are some common Ethernet issues that I have seen around here and experienced myself. I think if you do the stuff above, good things will happen. No promises though.
 
Old 03-05-2016, 04:05 AM   #20
TheStr3ak5
Member
 
Registered: Feb 2016
Location: Zaragoza, Spain
Distribution: Xubuntu, Tails, etc.
Posts: 55

Original Poster
Rep: Reputation: 9
I will try that

Last edited by TheStr3ak5; 03-05-2016 at 04:11 AM.
 
Old 03-06-2016, 07:31 AM   #21
TheStr3ak5
Member
 
Registered: Feb 2016
Location: Zaragoza, Spain
Distribution: Xubuntu, Tails, etc.
Posts: 55

Original Poster
Rep: Reputation: 9
I doed all, but, I DONīT HAVE GATEWAY?!?. Windows cmd tells me who i havent gateway in the virtual machine.
There are any program who configures that automaticaly? I am truelly desesperated.
The rest of the thinks (kernel options, udev rule) are corrected and ok, but it still no working.
 
Old 03-06-2016, 07:46 AM   #22
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
hi

so dose ip addr show anything? and is the network setup on VM bridged with the device the host os is using?
 
Old 03-06-2016, 07:48 AM   #23
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,665

Rep: Reputation: Disabled
Yes, any DHCP client will configure it for you.
 
Old 03-06-2016, 07:52 AM   #24
TheStr3ak5
Member
 
Registered: Feb 2016
Location: Zaragoza, Spain
Distribution: Xubuntu, Tails, etc.
Posts: 55

Original Poster
Rep: Reputation: 9
ok i will try
 
Old 03-06-2016, 08:16 AM   #25
TheStr3ak5
Member
 
Registered: Feb 2016
Location: Zaragoza, Spain
Distribution: Xubuntu, Tails, etc.
Posts: 55

Original Poster
Rep: Reputation: 9
i instaled the first dhcp of the blfs book,i hope it will works
 
Old 03-06-2016, 10:43 AM   #26
TheStr3ak5
Member
 
Registered: Feb 2016
Location: Zaragoza, Spain
Distribution: Xubuntu, Tails, etc.
Posts: 55

Original Poster
Rep: Reputation: 9
I use the nat in the virtual machine settings,spiky0011
 
Old 03-06-2016, 11:01 AM   #27
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,041

Rep: Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348
if you need any help please describe what you have done, what's happened and what can we do for you.
 
Old 03-06-2016, 01:40 PM   #28
TheStr3ak5
Member
 
Registered: Feb 2016
Location: Zaragoza, Spain
Distribution: Xubuntu, Tails, etc.
Posts: 55

Original Poster
Rep: Reputation: 9
Ok instaling the 2 dhpc of the blfs 7.8 book it still no working.
Really,i am really desesperate.
Any ideas?
 
Old 03-06-2016, 01:53 PM   #29
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
have you confirmed that your connection is eth0 or wlan0, they can be assigned other names?

is the interface registered, up?

your dont give much info away

Last edited by spiky0011; 03-06-2016 at 01:55 PM.
 
Old 03-12-2016, 08:48 AM   #30
TheStr3ak5
Member
 
Registered: Feb 2016
Location: Zaragoza, Spain
Distribution: Xubuntu, Tails, etc.
Posts: 55

Original Poster
Rep: Reputation: 9
Y fixed it manually,thanks for the helo
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
resolv.conf c0mputerking Linux - Software 18 12-20-2007 02:03 AM
DNS Hosts.conf or resolv.conf problem mac_casey SUSE / openSUSE 0 03-26-2006 09:21 AM
Who changes /etc/resolv.conf? lmp Debian 4 11-29-2005 08:08 AM
configure jay's firewall to use dns in /etc/resolv.conf TheOneAndOnlySM Linux - Software 0 03-29-2004 07:27 PM
How to configure resolv.conf and_deva Linux - Software 1 07-02-2003 08:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 08:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration