Usually, it's plugged into the office and uses DHCP.
However, occasionally I need to be in a lab environment where DHCP is not available, for reasons I won't go into. I have to setup a fixed IP address, whilst in the lab environment.
I had thought I would just setup an /etc/init.d/net.thelab symlink and update /etc/conf.d/net to reflect the required IP address, netmask and gateway.
Then, I setup a runlevel for thelab which turned of net.eth0 and started net.thelab.
However, this does not work, as the device /dev/thelab does not exist so when I try /etc/init.d/net.thelab start, it fails with a missing device.
Now I could manually create a symlink of /dev/thelab to /dev/eth0 but that seems all too much of a hack.
How should I proceed? Maybe a udev rule?
Any suggestions would be gratefully received

