Quote:
Originally Posted by bhushanj_a1
2. ip addr add 10.0.0.2/24 broadcast 10.0.0.255 dev eth1
On success, one can not see the alias getting added in the list of the interfaces. But, returns 0 and on failure returns 2.
|
Try this command
Code:
ip addr add 10.0.0.2/24 broadcast 10.0.0.255 label eth1:1 dev eth1
With it the pseudo interface will also show up with the
ifconfig command
I guess the both commands work similar when setting up the interface, but differ in the way they list them. I can't find the associated /proc entry to see how the two tools differ in their display format.
What I'm thinking about right now if the names of the interace have any further meaning beside just beeing names. Don't know if a command like iptables -A INPUT -i eth1:1 would work...