View previous topic :: View next topic |
Author |
Message |
enthalpy n00b
Joined: 23 Oct 2013 Posts: 2
|
Posted: Wed Oct 23, 2013 1:39 pm Post subject: Help: Cannot start sshd, and network cannot auto start |
|
|
Hi, I am a very newbie for gentoo.
I have just installed a fresh-new gentoo in my vmware workstation. According to the help of online handbook, I have set the network and my gentoo in vmware workstatin can access the internet and install software by the command ' emerge softwarename'. I want to access gentoo from my host system through ssh, so I installed ssh but find ssh cannot start.
Code: | # /etc/init.d/sshd start
* ERROR: cannot start sshd as net.eth0 would not start
|
I rebooted gentoo, login in it, and found gentoo's network was down. This is ifconfig -a output:
Code: | # ifconfig -a
eno16777736: flags=4098<BROADCAST,MULTICAST> mtu 1500
ether 00:0c:29:d5:3f:8a txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
loop txqueuelen 0 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 |
I typed command /etc/init.d/net.eno16777736 start , the network was bring up and I found gentoo could access internet now. But sshd still doesn't work and throws the message * ERROR: cannot start sshd as net.eth0 would not start when run /etc/init.d/sshd start . My gentoo really has no eth0, but it has eno16777736. Why?
I want to know:
1. Why my network is eno16777736, not eth0? How to change it?
2. Why my network cannot bring up automaticly? How to bring it up on boot? I don't want to do it manually every time.
3. How to let sshd work?
Here are some outputs of some commands in my gentoo:
Code: | # uname -a
Linux Enthalpy 3.10.7-gentoo-r1 #1 SMP Wed Oct 23 13:24:23 CST 2013 x86_64 Pentium(R) Dual-Core CPU E6700 @ 3.20GHz GenuineIntel GNU/Linux
# cat /etc/conf.d/net
config_eno16777736="192.168.1.160/24"
routes_eno16777736="default via 192.168.1.1"
# rc-update -v show
bootmisc | boot
busybox-ntpd |
busybox-watchdog |
consolefont |
crypto-loop |
devfs | sysinit
dmesg | sysinit
fsck | boot
gpm |
hostname | boot
hwclock | boot
keymaps | boot
killprocs | shutdown
local | default
localmount | boot
modules | boot
mount-ro | shutdown
mtab | boot
net.eno16777736 | default
net.lo | boot
netmount | default
nscd |
numlock |
pciparm |
procfs | boot
pydoc-2.7 |
pydoc-3.2 |
root | boot
rsyncd |
savecache | shutdown
sshd | default
swap | boot
swapfiles | boot
swclock |
sysctl | boot
sysfs | sysinit
syslog-ng | default
termencoding | boot
tmpfiles.setup | boot
udev | sysinit
udev-mount | sysinit
urandom | boot
vixie-cron | default
|
Thank you for your kind help! |
|
Back to top |
|
|
eyoung100 Veteran
Joined: 23 Jan 2004 Posts: 1428
|
|
Back to top |
|
|
enthalpy n00b
Joined: 23 Oct 2013 Posts: 2
|
Posted: Thu Oct 24, 2013 3:04 am Post subject: |
|
|
OK.
by running /lib/rc/bin/rc-depend -u , sshd can start now. And after rebooting, both network and sshd start automaticly. Thank you!
But still don't know how to change network interface from "eno16777736" to "eth0". |
|
Back to top |
|
|
eyoung100 Veteran
Joined: 23 Jan 2004 Posts: 1428
|
|
Back to top |
|
|
|