View previous topic :: View next topic |
Author |
Message |
5thd.jkcwong n00b
Joined: 21 Jun 2012 Posts: 20
|
Posted: Thu Oct 18, 2012 7:16 am Post subject: net.eth1 will not start on boot |
|
|
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 |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Thu Oct 18, 2012 5:00 pm Post subject: |
|
|
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 |
|
|
5thd.jkcwong n00b
Joined: 21 Jun 2012 Posts: 20
|
Posted: Thu Oct 18, 2012 11:05 pm Post subject: |
|
|
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 |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Thu Oct 18, 2012 11:53 pm Post subject: |
|
|
not rc-parallel but rc_parallel. underscore not hyphen
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 |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
5thd.jkcwong n00b
Joined: 21 Jun 2012 Posts: 20
|
Posted: Fri Oct 19, 2012 12:20 am Post subject: |
|
|
yup. net.eth1 is ln to net.lo. |
|
Back to top |
|
|
5thd.jkcwong n00b
Joined: 21 Jun 2012 Posts: 20
|
Posted: Fri Oct 19, 2012 12:25 am Post subject: |
|
|
i just removed htpdate from /etc/runlevels/default and net.eth1 is now working!!! |
|
Back to top |
|
|
5thd.jkcwong n00b
Joined: 21 Jun 2012 Posts: 20
|
Posted: Thu Oct 25, 2012 6:58 am Post subject: |
|
|
just install another machine.... same thing. tried remove htpdate from /etc/runlevels/default, and won't work. |
|
Back to top |
|
|
5thd.jkcwong n00b
Joined: 21 Jun 2012 Posts: 20
|
Posted: Tue Nov 20, 2012 6:26 am Post subject: |
|
|
it is resolved now.
MY BAD... the use flags.... |
|
Back to top |
|
|
|