[NTLUG:Discuss] Ubuntu-8.10 [udev] handling of NICs
terry
trryhend at gmail.com
Sat Feb 28 17:58:58 CST 2009
I wrote the original post below in a hurry, but did it for a couple reasons,
(other than to get advise and enlightenment from the list).
I wanted to document what I was doing, and re-think and determine if I was
doing the right or most logical things.
What had actually happened was this:
She called and told me that firefox was in offline mode and after quizzing
her on a few other things, I determined that she was indeed no longer
connected to the internet and that something in the network settings had
gone haywire.
So, I went over there and quickly did:
ifconfig eth0 192.xxx.xxx.x
route add default gw 192.xxx.xxx.x
and added nameserver lines to /etc/resolv.conf
And that got it connected again.
(I had actually replaced the NIC earlier on, couple months ago, so there is
probably not a problem with that, except that I should have disabled the
on-board one - I should go back and do it because it no longer works, so,
some advise on that would be good.)
Now the other question I have, is why did the network settings get lost all
of a sudden - and the only thing I can think of is that an update could have
done it.
Last time I worked with her system, I found that she was a bit behind on
updates, and so I set to auto-update. Now I am thinking that some updates
that just came down the pike may have done all this. BUT... another thing I
noticed is that firefox no longer seems to have her bookmarks as they were
before. It's as if it were a fresh install. The network settings were all
default [dhcp], and firefox looked as if it were freshly installed.
So, I wonder what Ubuntu 8.10 update may have done all this?
Or, if it wasn't a Ubuntu update, what could my friend have done to it?
I really don't think she did anything, because she is not very adventurous
and mostly only uses firefox to browse the internet and check and respond
to her emails and uses OO to create and print documents.
But, maybe someone else on the list has run into such a problem... ?
On Sat, Feb 28, 2009 at 10:47 AM, terry <trryhend at gmail.com> wrote:
> I've added another NIC to a Ubuntu 8.10 machine because the on-board
> NIC died and was wanting to make sure network settings will stay as I
> have set them, (in spite of the network-manager and udev etc...).
> (Needs to be static IP.)
>
> I see the following lines in /etc/udev/rules.d/70-persistent-net.rules
> =================================
> # PCI device 0x10de:0x00df (forcedeth)
> SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
> ATTR{address}=="00:30:1b:ba:28:f0", ATTR{type}=="1", KERNEL=="eth*",
> NAME="eth0"
>
> # PCI device 0x1186:0x1300 (8139too)
> SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
> ATTR{address}=="00:50:ba:4d:60:d2", ATTR{type}=="1", KERNEL=="eth*",
> NAME="eth1"
> =================================
> Question #1) Does the above config file assure me that the NICs won't
> trade places?
>
> Question #2) Since this computer will always use static IP, would it
> be a good idea to un-install network-manager? Or, is that not really
> necessary?
>
> I edited /etc/network/interfaces and added lines:
> ============================
> auto eth1
> iface eth1 inet static
> address 192.xxx.xxx.xxx
> netmask 255.255.255.0
> network 192.xxx.xxx.0
> broadcast 192.xxx.xxx.255
> gateway 192.xxx.xxx.1
> ======================
> And I now see that when you "Edit connections" in the network manager,
> you only see "Auto eth0" That is probably a good thing, [in this
> case], (that editing eth1 is no longer an option), but just wondering
> if something else should be done to keep it reliable. (This computer
> belongs to a friend that is not very computer savvy and I'm trying to
> keep it working reliably for her.)
>
> I also added
> /sbin/route add default gw 10.182.110.1
> to /etc/rc.local so that the default gw will stay correct after
> reboot. (Probably not the best way, but... it is all I could think of
> in a hurry. ?)
>
> (Things seem to have changed since I last dealt with this sort of issue.)
>
> Thanks in advance for any enlightenment / advice on this issue. (I'm
> pretty sure there are better / easier ways to do what I've just done.)
>
>
>
>
>
>
> --
> <><
>
--
<><
More information about the Discuss
mailing list