When I posted "Stumped by ethernet (SOLVED), I reported that I could
connect to the internet via my new DSL using the network scripts. This
was not correct. I had done incomplete testing. To test the network
scripts I ran '/etc/rc.d/init.d/network restart,' received no error
messsages during the restart and was able to connect to the internet.
However, during a subsequent boot, the network scripts failed to
configure my NIC correctly.
I have discovered that when restarting the network either the route
tables are not flushed--I know this for sure--, or the assigned
addresses, possibly, are not deleted. Since the default gateway route
was already set, the scripts bypassed this and all was well. Of course,
on boot none of these conditions were true and the network did not start.
[A minor rant] The help pages for the ip utilities, used by the network
scripts, are pretty cryptic and non-informative for those, like me, who
know next to nothing about ip addressing and how connections work. [End
of rant]
I have a completely static ISP and, learned in all of this, I need a
point-to-point connection. I discovered an IP Utilities Command
Reference, which is a little less cryptic and non-informative :), at:
http://snafu.freedom.org/linux2.2/iproute-notes.html
From it, I learned that in my situation I needed to pass PEER as an
argument to 'ip addr add' in
/etc/sysconfig/network-devices/services/ipv4-static. Also the PREFIX
argument in this situation is not needed.
LFS 6.0 has the user create the file
/etc/sysconfig/network-devices/ifconfig.eth0/ipv4, which if one follows
the book exactly looks like this:
Begin ipv4
ONBOOT=
SERVICE=
IP=
GATEWAY=
PREFIX=
BROADCAST=
End ipv4
Of course, all the variables are explained. To make my system work, I
had to remove, I commented out, PREFIX= and add PEER=. Once I did this
everything worked fine.
I posted here because I started the other thread and wanted to inform
everyone that I had COMPLETELY, now, solved the problem. Since I have
seen no traffic on this issue here or in the LFS mailing list, I don't
know if there are others who have run into the same issue. Is this
worth posting on any other list associated with LFS or BLFS?
Once again, thanks to all who gave help and suggestions.
Dan
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page