I'm trying to figure out, how to add a virtual ether interface, e.g. eth0:1.
When I add a line like:
eth0:1="eth0:1 192.168.0.105 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(lo eth0) to INTERFACES=(lo eth0 eth0:1) in rc.conf
I got Errors and the interface doesn't show up.
eth0 is initialized by using dhcp.
Has anybody a solution for it?
Thanks for help, Oli.
Last edited by Athanagor (2007-06-22 13:23:33)
Something like this should work:
lo="lo 127.0.0.1" eth0="dhcp" eth01="eth0:1 192.168.0.105" INTERFACES=(lo eth0 eth01)
Thanks to Smoon!
I've just tested it and of course it runs.
I thought, that the variablename must be a valid interface-name.
Now I know better.
Again, thanks Smoon.
Problem solved, Oli.