Linux IP 别名

Linux IP 别名

别名 IP 地址必须在同一个网络上吗?

例如,如果我的 eth0 为 10.10.10.1,我可以设置一个别名 (eth0:1),其 IP 地址为 10.10.11.1 吗?

答案1

是的你可以!

ifconfig eth0:1 10.10.11.1 netmask 255.255.255.0 up

相关内容