AIX中为单网卡配置多IP地址

有两种方法:命令行或smit菜单

方法1:命令行
#先看一下正在用的网卡名
ifconfig -a

#增加第二个IP,比如正在用的网卡是 en8
ifconfig en8 100.1.1.1 netmask 255.255.255.0 alias
#删除
ifconfig en8 100.1.1.1 netmask 255.255.255.0 delete

方法2:smit
smit tcpip
-->Further Configuration
-->Network Interfaces
-->Network Interface Selection
-->Configure Aliases
-->Add an IPV4 Network Alias
OR
-->Remove an IPV4 Network Alias

注:做了双网卡绑定要选绑定后的网卡,别选错了。

添加路由:
route add -net 192.168.20.0 -netmask 255.255.255.0 100.1.1.1
删除路由:
route delete -net 192.168.20.0 -netmask 255.255.255.0 100.1.1.1

 

posted @ 2025-07-28 17:50  莫让年华付水流  阅读(44)  评论(0)    收藏  举报