Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Init script for network device states failure; works anyway.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Black Knight
n00b
n00b


Joined: 13 Dec 2015
Posts: 18

PostPosted: Sat Mar 19, 2016 4:53 am    Post subject: Init script for network device states failure; works anyway. Reply with quote

I'm trying to randomize the MAC address on one of my network devices (an ethernet card) using the
Code:
mac_eth0="random-samekind"
option in /etc/conf.d/net. When I try to restart the service with
Code:
sudo /etc/init.d/net.eth0 restart -vvv

I get
Code:
 * Bringing up interface eth0
 *   Skipping module adsl due to missing program: /usr/sbin/adsl-start /usr/sbin/pppoe-start
 *   Skipping module br2684ctl due to missing program: br2684ctl
 *   Skipping module bridge due to missing program: brctl
 *   Skipping module clip due to missing program: /usr/sbin/atmsigd
 *   Skipping module ethtool due to missing program: ethtool
 *   Skipping module netplugd due to missing program: /sbin/netplugd
 *   Skipping module ipppd due to missing program: /usr/sbin/ipppd
 *   Skipping module firewalld due to missing program: firewall-cmd
 *   Skipping module pppd due to missing program: /usr/sbin/pppd
 *   Skipping module dhclient due to missing program: /sbin/dhclient
 *   Skipping module pump due to missing program: /sbin/pump
 *   Loaded modules: apipa arping bonding tuntap ccwgroup macvlan macchanger macnet ifplugd wpa_supplicant ssidnet iproute2 system vlan dhcpcd ip6rd ip6to4
 *   Changing MAC address of eth0 ...
 *   Failed to set MAC address                                                                             [ !! ]
 * ERROR: net.eth0 failed to start

Nevertheless, the eth0 comes back up, has a randomized MAC, and works correctly (provided I get a new DHCP lease or restart the dhcpcd daemon).
I'm curious what's responsible for the error message, and whether it is actually indicative of a problem here given that the interface seems to behave as expected. The contents of my /etc/conf.d/net are:
Code:
config_eth0="dhcp"
mac_eth0="random-samekind"

and output of rc-update show:
Code:
                acpid |      default                 
               binfmt | boot                         
             bootmisc | boot                         
                devfs |                       sysinit
               dhcpcd |      default                 
                dmesg |                       sysinit
                 fsck | boot                         
             hostname | boot                         
              hwclock | boot                         
            ip6tables |      default                 
             iptables |      default                 
              keymaps | boot                         
            killprocs |              shutdown       
    kmod-static-nodes |                       sysinit
                local |      default                 
           localmount | boot                         
             loopback | boot                         
              modules | boot                         
             mount-ro |              shutdown       
                 mtab | boot                         
             net.eth0 |      default                 
             netmount |      default                 
               procfs | boot                         
                 root | boot                         
            savecache |              shutdown       
                 swap | boot                         
            swapfiles | boot                         
               sysctl | boot                         
                sysfs |                       sysinit
         termencoding | boot                         
         tmpfiles.dev |                       sysinit
       tmpfiles.setup | boot                         
                 udev |                       sysinit
              urandom | boot                         
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Sat Mar 19, 2016 4:24 pm    Post subject: Reply with quote

Black Knight ... you didn't mention what version of macchanger, or netifrc, but it's probably bug #540728.

HTH & best ... khay
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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