Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Help: Cannot start sshd, and network cannot auto start
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
enthalpy
n00b
n00b


Joined: 23 Oct 2013
Posts: 2

PostPosted: Wed Oct 23, 2013 1:39 pm    Post subject: Help: Cannot start sshd, and network cannot auto start Reply with quote

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
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Wed Oct 23, 2013 4:10 pm    Post subject: Reply with quote

See this Mailing List Archive
_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
enthalpy
n00b
n00b


Joined: 23 Oct 2013
Posts: 2

PostPosted: Thu Oct 24, 2013 3:04 am    Post subject: Reply with quote

eyoung100 wrote:
See this Mailing List Archive

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
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Thu Oct 24, 2013 8:23 pm    Post subject: Reply with quote

See this Wiki: Udev upgrade. Of particular note the Predictable Naming Rules, which contains:
Code:
the kernel commandline contains net.ifnames=0

_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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