150211 thegeezer wrote:
> i vaguely recall that openrc started it's own version of dhcp client
> http://wiki.gentoo.org/wiki/Network_management_using_DHCPCD/OpenRC_message
> https://groups.google.com/forum/#!topic/linux.gentoo.dev/D_sFyfaQl2Y
Yes, that says all you need is '+newnet' for Openrc
& it will use its own DHCP to connect to the I/net.
However, my netbook has '-newnet -netifrc' & still connects automatically !
Below are the 2 versions, which show no significant difference I can see.
So I still want to know why Netbook connects automatically
& would welcome any further advice, so I can bring the Desktop into line.
As to the earlier queston re re-plugging the I/net connection,
there seems to have been an unannounced change in default c 2013 .
IIRC in 2012, when I built the Desktop machine, for both machines
I had to shut down Dhcpcd via 'dhcpcd -k' & restart via 'dhcpcd'
before/after un/plugging the physical connection.
In /etc on the Desktop I have a file 'dhcpcd-dft.conf',
which is dated 120907, ie when I started installing Gentoo in it,
& which I renamed after creating the revised version I wanted :
that file ends with 2 lines :
# dhcpcd ebuild requested no zeroconf
noipv4ll
The comment is typically obscure to any normal user (wry smile).
Both machines' dhcpcd.conf files lack those lines today.
Desktop : dft runlevel
root:510 etc> cd runlevels/default/
root:511 default> ls -l
total 0
lrwxrwxrwx 1 root root 17 Dec 15 2013 cupsd -> /etc/init.d/cupsd
lrwxrwxrwx 1 root root 16 Sep 11 2012 dbus -> /etc/init.d/dbus
lrwxrwxrwx 1 root root 17 Jun 21 2012 local -> /etc/init.d/local
lrwxrwxrwx 1 root root 20 Jun 21 2012 netmount -> /etc/init.d/netmount
lrwxrwxrwx 1 root root 16 Sep 9 2012 ntpd -> /etc/init.d/ntpd
lrwxrwxrwx 1 root root 20 Sep 9 2012 sysklogd -> /etc/init.d/sysklogd
lrwxrwxrwx 1 root root 22 Sep 9 2012 vixie-cron -> /etc/init.d/vixie-cron
root:512 default>
Desktop : rc.log
rc default logging started at Wed Feb 11 10:42:56 2015
* Starting D-BUS system messagebus ...
[ ok ]
* sysklogd -> start: syslogd ...
[ ok ]
* sysklogd -> start: klogd ...
[ ok ]
* Starting cupsd ...
[ ok ]
* Mounting network filesystems ...
[ ok ]
* Starting ntpd ...
[ ok ]
* Starting vixie-cron ...
[ ok ]
* Starting local ...
[ ok ]
rc default logging stopped at Wed Feb 11 10:42:57 2015
Desktop : /etc/rc.conf (comments deleted)
#rc_parallel="NO"
rc_interactive="YES"
rc_shell=/sbin/sulogin
#rc_depend_strict="YES"
rc_hotplug="*"
rc_logger="YES"
#rc_log_path="/var/log/rc.log"
#rc_verbose=no
#rc_env_allow="VAR1 VAR2"
#rc_start_wait=100
#rc_nostop=""
#rc_crashed_stop=NO
rc_crashed_start=YES
#rc_nocolor=NO
unicode="YES"
#rc_fuser_timeout=60
#extra_net_fs_list=""
#SSD_NICELEVEL="-19"
#rc_ulimit="-u 30"
#rc_config="/etc/foo"
#rc_need="openvpn"
#rc_use="net.eth0"
#rc_after="clock"
#rc_before="local"
#rc_provide="!net"
#rc_foo_config="/etc/foo"
#rc_foo_need="openvpn"
#rc_foo_after="clock"
#rc_foo_bar_config="/etc/foo-bar"
#rc_foo_bar_need="openvpn"
#rc_foo_bar_after="clock"
#rc_net_tap0_provide="!net"
#rc_sys=""
rc_tty_number=12
#rc_controller_cgroups="YES"
# rc_cgroup_cpu="
# cpu.shares 512
# "
#rc_cgroup_blkio=""
#rc_cgroup_cpu=""
#rc_cgroup_cpuacct=""
#rc_cgroup_cpuset=""
#rc_cgroup_devices=""
#rc_cgroup_memory=""
#rc_cgroup_net_prio=""
# rc_cgroup_cleanup="NO"
Desktop : openrc
root:516 etc> eix ^openrc$
[I] sys-apps/openrc
Available versions : 0.12.4{tbz2} 0.13.8{tbz2} 0.13.9{tbz2} **9999
{audit debug ncurses +netifrc newnet pam prefix selinux static-libs
tools unicode ELIBC="glibc" KERNEL="FreeBSD linux"}
Installed versions : 0.13.9{tbz2} ( [2015-02-07 11:18:46] )
(ncurses unicode -debug -netifrc -newnet -pam -prefix -selinux
-static-libs -tools ELIBC="glibc" KERNEL="linux -FreeBSD")
Netbook : syslog : latest lines
# netbook started w/o conn'n
16:40:22 localhost kernel: REISERFS (device sda6): Using r5 hash to sort names
16:40:22 localhost dhcpcd[799]: version 6.4.7 starting
16:40:22 localhost dhcpcd[799]: dev: loaded udev
16:40:22 localhost dhcpcd[799]: no interfaces have a carrier
16:40:22 localhost dhcpcd[799]: forked to background, child pid 822
16:40:22 localhost kernel: atl1c 0000:01:00.0: Unable to allocate MSI interrupt
Error: -38
16:40:22 localhost kernel: IPv6: ADDRCONF(NETDEV_UP): enp1s0: link is not ready
16:40:22 localhost dhcpcd[822]: enp1s0: waiting for carrier
16:40:22 localhost dhcpcd[822]: enp1s0: carrier acquired
16:40:22 localhost dhcpcd[822]: DUID 00:01:00:01:03:c3:b8:97:00:26:18:79:64:16
16:40:22 localhost dhcpcd[822]: enp1s0: IAID 18:79:64:16
16:40:22 localhost dhcpcd[822]: enp1s0: carrier lost
16:40:23 localhost dhcpcd[822]: enp1s0: waiting for carrier
# plugged in
16:44:06 localhost dhcpcd[822]: enp1s0: carrier acquired
16:44:06 localhost kernel: atl1c 0000:01:00.0: atl1c: enp1s0 NIC Link is Up<100
Mbps Full Duplex>
16:44:06 localhost kernel: IPv6: ADDRCONF(NETDEV_CHANGE): enp1s0: link becomes
ready
16:44:06 localhost dhcpcd[822]: enp1s0: IAID 18:79:64:16
16:44:07 localhost dhcpcd[822]: enp1s0: rebinding lease of 192.168.1.3
16:44:07 localhost dhcpcd[822]: enp1s0: NAK: from 192.168.1.1
16:44:08 localhost dhcpcd[822]: enp1s0: soliciting a DHCP lease
16:44:09 localhost dhcpcd[822]: enp1s0: offered 192.168.1.3 from 192.168.1.1
16:44:14 localhost dhcpcd[822]: enp1s0: leased 192.168.1.3 for 86400 seconds
16:44:14 localhost dhcpcd[822]: enp1s0: adding route to 192.168.1.0/24
16:44:14 localhost dhcpcd[822]: enp1s0: adding default route via 192.168.1.1
# unplugged
16:45:37 localhost kernel: atl1c 0000:01:00.0: atl1c: enp1s0 NIC Link is Down
16:45:37 localhost dhcpcd[822]: enp1s0: carrier lost
16:45:37 localhost dhcpcd[822]: enp1s0: deleting route to 192.168.1.0/24
16:45:37 localhost dhcpcd[822]: enp1s0: deleting default route via 192.168.1.1
Netbook : dft runlevel
root:507 etc> cd runlevels/default/
root:508 default> ls -l
total 0
lrwxrwxrwx 1 root root 16 Dec 14 2012 dbus -> /etc/init.d/dbus
lrwxrwxrwx 1 root root 17 Aug 21 2011 local -> /etc/init.d/local
lrwxrwxrwx 1 root root 20 Aug 21 2011 netmount -> /etc/init.d/netmount
lrwxrwxrwx 1 root root 20 Nov 8 2009 sysklogd -> /etc/init.d/sysklogd
root:509 default>
Netbook : rc log
rc default logging started at Mon Dec 31 19:00:20 2001
* Starting D-BUS system messagebus ...
[ ok ]
* sysklogd -> start: syslogd ...
[ ok ]
* sysklogd -> start: klogd ...
[ ok ]
* Starting DHCP Client Daemon ...
[ ok ]
* Mounting network filesystems ...
[ ok ]
* Starting local ...
[ ok ]
rc default logging stopped at Mon Dec 31 19:00:23 2001
Netbook : /etc/rc.conf (comments deleted)
rc_parallel="NO"
rc_interactive="YES"
rc_shell=/sbin/sulogin
#rc_depend_strict="YES"
rc_hotplug="*"
rc_logger="YES"
#rc_log_path="/var/log/rc.log"
#rc_verbose=no
#rc_env_allow="VAR1 VAR2"
#rc_start_wait=100
#rc_nostop=""
#rc_crashed_stop=NO
rc_crashed_start=YES
#rc_nocolor=NO
unicode="YES"
#rc_fuser_timeout=60
#extra_net_fs_list=""
#SSD_NICELEVEL="-19"
#rc_ulimit="-u 30"
#rc_config="/etc/foo"
#rc_need="openvpn"
#rc_use="net.eth0"
#rc_after="clock"
#rc_before="local"
#rc_provide="!net"
#rc_foo_config="/etc/foo"
#rc_foo_need="openvpn"
#rc_foo_after="clock"
#rc_foo_bar_config="/etc/foo-bar"
#rc_foo_bar_need="openvpn"
#rc_foo_bar_after="clock"
#rc_net_tap0_provide="!net"
#rc_sys=""
rc_tty_number=12
#rc_controller_cgroups="YES"
# rc_cgroup_cpu="
# cpu.shares 512
# "
#rc_cgroup_blkio=""
#rc_cgroup_cpu=""
#rc_cgroup_cpuacct=""
#rc_cgroup_cpuset=""
#rc_cgroup_devices=""
#rc_cgroup_memory=""
#rc_cgroup_net_prio=""
# rc_cgroup_cleanup="NO"
Netbook : openrc
root:512 etc> eix ^openrc$
[I] sys-apps/openrc
Available versions : 0.12.4 0.13.8{tbz2} **9999
{audit debug ncurses +netifrc newnet pam prefix selinux static-libs
tools unicode ELIBC="glibc" KERNEL="FreeBSD linux"}
Installed versions : 0.13.8{tbz2} ( [2015-01-23 21:57:45] )
(ncurses unicode -debug -netifrc -newnet -pam -prefix -selinux
-static-libs -tools ELIBC="glibc" KERNEL="linux -FreeBSD")
Notes :
/etc/conf.d/net is the same on both machines : only commented lines.
'rc-status' : Netbook has "Dynamic runlevel: needed -- dhcpcd",
whereas Desktop has simply "Dynamic runlevel: needed".
--
========================,,============================================
SUPPORT ___________//___, Philip Webb
ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto
TRANSIT `-O----------O---' purslowatchassdotutorontodotca