Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 10708 - net.eth0 does not allow use of both ifconfig and dhcpcd
Summary: net.eth0 does not allow use of both ifconfig and dhcpcd
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High enhancement
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-13 18:45 UTC by Renfield
Modified: 2003-09-06 16:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Renfield 2002-11-13 18:45:16 UTC
My current situation requires that I configure my network connection with two
commands:

ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx
dhcpcd

Putting in the MAC address for xx:xx... that my cable company expects me to use
(they don't want more than one machine connecting unless I pay for it).

I am unable to put anything into the $iface_eth0 variable in /etc/conf.d/net
that would satisfy my need for the two commands to be run via the net.eth0 script.

I've tried the hack
hw ether xx:xx:xx:xx:xx:xx; dhcpcd
but the script escapes anything before it's run so that I can't have two
commands run when the network is brought up.

So, basically the net.eth0 script needs to be enhanced to allow for users who
need to run more than one command in order to get their network up.
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2002-11-13 22:36:53 UTC
net.eth? is supposed to be generic.  If you need specific routing, or other
commands, then just edit it to suite...  This is why we have CONFIG_PROTECT ..
Comment 2 Daniel Robbins (RETIRED) gentoo-dev 2003-09-06 16:48:21 UTC
azarah posted a solution, and it should work. closing bug.