NIC confusion

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
NobodyParticular
Posts: 5
Joined: 17. Feb 2010, 18:24

NIC confusion

Post by NobodyParticular »

Had some difficulties with online access. After initial installation everything worked as expected via eth0. Some weeks later couldn't get connected. Apparently, the onboard NIC was now being detected as eth1. I've seen this behaviour before, mainly with Mandriva and don't understand it. Had to re-assign addresses to eth1 at a root console, but there were further nuisances. Couldn't login as root, su - console refused to load mousepad, had to edit resolve.conf via <mc>. Too much grief, not enough understanding! Root login is a sine qua non for these kinds of fixes - most other good distros permit it.
User avatar
JRD
Salix Warrior
Posts: 950
Joined: 7. Jun 2009, 22:52
Location: Lyon, France

Re: NIC confusion

Post by JRD »

Hi !
About eth0/eth1, I think a udev rule could be tricked to always assign to eth0, unfortunalty, I don't know how, but others should probably know.
NobodyParticular wrote:Couldn't login as root
Only graphically and this is normal. If you still need to log in graphically, just edit gdm config (there is a graphical application in the system menu for that).
NobodyParticular wrote:su - console refused to load mousepad
This is completely normal. "su -" will loose the X11 authentification. Try to use "su" instead.
NobodyParticular wrote:had to edit resolve.conf via <mc>
You should probably configure all this through wicd client. If you're in DHCP and resolv.conv is not filled correctly, this is a problem with your DHCP server.
NobodyParticular wrote:Root login is a sine qua non for these kinds of fixes - most other good distros permit it.
You can log as root, of course ! Try "su", "gksu", a true Linux Console "CTRL+ALT+F2" for example....
Image
NobodyParticular
Posts: 5
Joined: 17. Feb 2010, 18:24

Re: NIC confusion

Post by NobodyParticular »

Thanks for all that good advice. Will work on it! Look forward to some further erudition concerning the eth0/1 issue. Have router split static: x.y.z.2 - x.y.z.100 (assignment locally) and DHCP: x.y.z.101 - x.y.z.254 (guests!) - works well with all other distros including Windoze. Maybe this is causing the confusion?
User avatar
JRD
Salix Warrior
Posts: 950
Joined: 7. Jun 2009, 22:52
Location: Lyon, France

Re: NIC confusion

Post by JRD »

Found :

Do (in root):

Code: Select all

ifconfig | grep ^eth
Note the MAC Address (HWaddr)

Edit the file /etc/udev/rules.d/70-persistent-net.rules
Add the line :

Code: Select all

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="you_mac_address", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
You're done !
Image
NobodyParticular
Posts: 5
Joined: 17. Feb 2010, 18:24

Re: NIC confusion

Post by NobodyParticular »

Genius is alive in Lyon - thanks a bundle.
Post Reply