Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
net.eth1 will not start on boot
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
5thd.jkcwong
n00b
n00b


Joined: 21 Jun 2012
Posts: 20

PostPosted: Thu Oct 18, 2012 7:16 am    Post subject: net.eth1 will not start on boot Reply with quote

hello all,

not sure why, but net.eth1 will not start on boot. manually starting it, works fine.

Code:

15:13:59 # rc-config list default
Init scripts to be started by runlevel default
  dcron
  htpdate
  local
  net.eth0
  net.eth1
  netmount
  snmpd
  sshd
  syslog-ng
  udev-postmount
15:14:07 #


and the config file look very simple:

Code:

config_eth0="10.1.1.1 netmask 255.255.255.0 broadcast 10.1.1.255"
config_eth1="192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.255"
routes_eth1="default via 192.168.1.254 dev eth1"


any idea please?


Last edited by 5thd.jkcwong on Thu Oct 25, 2012 6:57 am; edited 2 times in total
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6657
Location: Goose Creek SC

PostPosted: Thu Oct 18, 2012 5:00 pm    Post subject: Reply with quote

Code:
/etc/init.d/net.eth1 restart
dmesg | tail
anything interesting?
reboot and look at the screen--any mention of eth1?
Code:
grep -i rc_parallel /etc/rc.conf
if you get rc_parallel="YES" you may want to switch to NO
_________________
Defund the FCC.
Back to top
View user's profile Send private message
5thd.jkcwong
n00b
n00b


Joined: 21 Jun 2012
Posts: 20

PostPosted: Thu Oct 18, 2012 11:05 pm    Post subject: Reply with quote

thx for replying.

tried:
Code:

07:01:58 # ./net.eth1 restart
 * Stopping syslog-ng ...                                                                                                                                                                                                                                             [ ok ]
 * Stopping sshd ...                                                                                                                                                                                                                                                  [ ok ]
 * Stopping snmpd ...                                                                                                                                                                                                                                                 [ ok ]
 * Unmounting network filesystems ...                                                                                                                                                                                                                                 [ ok ]
 * Stopping htpdate ...                                                                                                                                                                                                                                               [ ok ]
 * Bringing down interface eth1
 * Bringing up interface eth1
 *   192.168.1.1 ...                                                                                                                                                                                                                                               [ ok ]
 *   Adding routes
 *     default via 192.168.1.254 dev eth1 ...                                                                                                                                                                                                                        [ ok ]
07:02:06 #  * Starting syslog-ng ...
 * Mounting network filesystems ...                                                                                                                                                                                                                                   [ ok ]
 * Starting sshd ...
 * Starting snmpd ...                                                                                                                                                                                                                                                 [ ok ]
 * Starting htpdate ...   


output:
Code:

[   62.670662] eth1: intr type 3, mode 0, 2 vectors allocated
[   62.670977] eth1: NIC Link is Up 10000 Mbps
[   97.865887] eth0: intr type 3, mode 0, 2 vectors allocated
[   97.866296] eth0: NIC Link is Up 10000 Mbps
[  257.180248] eth1: intr type 3, mode 0, 2 vectors allocated
[  257.180541] eth1: NIC Link is Up 10000 Mbps
[47550.650211] eth1: intr type 3, mode 0, 2 vectors allocated
[47550.650561] eth1: NIC Link is Up 10000 Mbps
[47799.086602] eth1: intr type 3, mode 0, 2 vectors allocated
[47799.086924] eth1: NIC Link is Up 10000 Mbps


cant find rc-parallel from /etc/rc.conf

but when i last reboot, i tried interactive mode... and it didnt even try starting net.eth1 at all....
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6657
Location: Goose Creek SC

PostPosted: Thu Oct 18, 2012 11:53 pm    Post subject: Reply with quote

not rc-parallel but rc_parallel. underscore not hyphen
Code:
rc-update show

is net.lo in boot runlevel?
worst case;
Code:
nano /etc/local.d/eth1.start
edit to
Quote:
#!/bin/bash
/etc/init.d/net.eth1 restart
make executable
Code:
chmod a+x /etc/local.d/eth1.start

_________________
Defund the FCC.


Last edited by DONAHUE on Thu Oct 25, 2012 7:36 am; edited 1 time in total
Back to top
View user's profile Send private message
Jaglover
Advocate
Advocate


Joined: 29 May 2005
Posts: 4683
Location: Saint Amant, Acadiana

PostPosted: Thu Oct 18, 2012 11:56 pm    Post subject: Reply with quote

Is net.eth1 linked to net.lo.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
5thd.jkcwong
n00b
n00b


Joined: 21 Jun 2012
Posts: 20

PostPosted: Fri Oct 19, 2012 12:20 am    Post subject: Reply with quote

yup. net.eth1 is ln to net.lo.
Back to top
View user's profile Send private message
5thd.jkcwong
n00b
n00b


Joined: 21 Jun 2012
Posts: 20

PostPosted: Fri Oct 19, 2012 12:25 am    Post subject: Reply with quote

i just removed htpdate from /etc/runlevels/default and net.eth1 is now working!!!
Back to top
View user's profile Send private message
5thd.jkcwong
n00b
n00b


Joined: 21 Jun 2012
Posts: 20

PostPosted: Thu Oct 25, 2012 6:58 am    Post subject: Reply with quote

just install another machine.... same thing. tried remove htpdate from /etc/runlevels/default, and won't work.
Back to top
View user's profile Send private message
5thd.jkcwong
n00b
n00b


Joined: 21 Jun 2012
Posts: 20

PostPosted: Tue Nov 20, 2012 6:26 am    Post subject: Reply with quote

it is resolved now.

MY BAD... the use flags....
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