Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
New baselayout changed iface numbers and sshd won't start
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
sl70
Guru
Guru


Joined: 18 Jun 2002
Posts: 455
Location: Saitama, JP

PostPosted: Sat Oct 08, 2011 8:18 pm    Post subject: New baselayout changed iface numbers and sshd won't start Reply with quote

I think this gets into Gentoo arcania that is beyond me. After I upgraded baselayout and added openrc, my network interface numbers changed for some inexplicable reason. Now the wired interface is eth3 and wireless is eth4. It works fine like this so I don't mind, but I just realized that sshd is not starting up. When I do /etc/init.d/sshd start it complains that it can't find eth1 (which is what the wired interface used to be).

I would be happy to reassign the network interfaces to eth0 and eth1 as before, but I can't see how to do this. udev rules? Or, if I can just get sshd to use eth3, I would be satisfied.

TIA.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23093

PostPosted: Sat Oct 08, 2011 10:44 pm    Post subject: Reply with quote

Did you do anything that would have changed the MAC addresses of the interfaces? If so, udev would have gone to new names since that the old names are reserved for the old MAC addresses. Delete the persistent net rules and reboot.
Back to top
View user's profile Send private message
solamour
l33t
l33t


Joined: 21 Dec 2004
Posts: 726
Location: San Diego, CA

PostPosted: Sat Oct 08, 2011 11:21 pm    Post subject: Reply with quote

The udev rules for network interfaces are specified in the following file.
Code:
/etc/udev/rules.d/70-persistent-net.rules

__
sol
Back to top
View user's profile Send private message
sl70
Guru
Guru


Joined: 18 Jun 2002
Posts: 455
Location: Saitama, JP

PostPosted: Sat Oct 08, 2011 11:29 pm    Post subject: Reply with quote

@Hu: Right. I took the hard drive out of an old computer, and put it in a new one (and then upgraded baselayout and openrc) so of course the MAC addresses will be different. Thanks for the info. I appreciate it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum