View previous topic :: View next topic |
Author |
Message |
sl70 Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Simpsons/simpsons_snowball.gif)
Joined: 18 Jun 2002 Posts: 455 Location: Saitama, JP
|
Posted: Sat Oct 08, 2011 8:18 pm Post subject: New baselayout changed iface numbers and sshd won't start |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Hu Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
Joined: 06 Mar 2007 Posts: 23093
|
Posted: Sat Oct 08, 2011 10:44 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
solamour l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1195961791674d58f9894e9.png)
Joined: 21 Dec 2004 Posts: 726 Location: San Diego, CA
|
Posted: Sat Oct 08, 2011 11:21 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
sl70 Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Simpsons/simpsons_snowball.gif)
Joined: 18 Jun 2002 Posts: 455 Location: Saitama, JP
|
Posted: Sat Oct 08, 2011 11:29 pm Post subject: |
|
|
@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 |
|
![](templates/gentoo/images/spacer.gif) |
|