No. You can do this using the following command:
# ip address add dev eth0 192.168.10.1/24 broadcast +
# ip address add dev eth0 192.168.20.1/24 broadcast +
Show the associated IPs (ifconfig won't show this):Why ifconfig doesn't show this ip?
$ ip address show eth0
IPs are locally reachable. Please test the reachability of this
IP(s) from an another machine and share the result.
In this process, I learned that, we can create alias interface with
any name (10 chars max):
# ifconfig eth0:abcdefghij 192.168.30.1 up
# ifconfig eth0:1234567890 192.168.40.1 up