You are not logged in.
Currently rc.conf contains just
interface=eth0
I'd want to spoof MAC address the same way I do it in my network script
ifconfig eth0 hw ether XX:XX:XX:XX:XX:XX
during boot process also. Where to insert/add the command?
Last edited by student975 (2011-07-11 04:56:23)
"I exist" is the best myth I know..
Offline
Did you try this:
Offline
Did you try this:
Yes, it works. I have thought there is a way to keep rc.multi file intact.
Last edited by student975 (2011-07-10 18:32:13)
"I exist" is the best myth I know..
Offline
There is - use netcfg instead.
Editing any of the base system initscripts is a bad idea, as the changes will be overwritten in the next upgrade.
Offline
There is - use netcfg instead.
I'm not sure I want to use netcfg. rc.multi declares hooks. Unfortunately I have no idea how to catch them.
"I exist" is the best myth I know..
Offline
Right, initscript hooks - I always forget about them.
Go to line 315 of /etc/rc.d/functions, it's explained there.
Offline
Go to line 315 of /etc/rc.d/functions, it's explained there.
Thanks! - the issue is resoved.
"I exist" is the best myth I know..
Offline
I know the issue is declared as solved, but what did the trick for me is this:
In the rc.conf file I wrote:
interface="eth0 address 00:11:22:33:44:55"
address=
netmask=
broadcast=
gateway=
I did use netcfg to connect, but netcfg does not seem to spoof "pre-up" MAC addresses at boot, so I am pretty sure that the line interface="eth0 address 00:11:22:33:44:55" made automated connection possible.
The contents of my net profile file for netcfg were as follows:
CONNECTION='ethernet'
DESCRIPTION='DOM'
INTERFACE='eth0'
IP='dhcp'
PRE_UP="ifconfig eth0 hw ether 00:11:22:33:44:55" #this line probably not necessary, at least not at boot
-----------------------------------
Before I used the following line in the rc.conf file:
eth0="eth0 192.168.XXX.YYY netmask 255.255.255.0 broadcast 192.168.XXX.255 hw ether 00:11:22:33:44:55"
-----------------------------------
Hope this helps if not you (because you have solved the problem), then all those who look for an easy solution.
Offline