问题由于应用的环境要求,需在一块网卡上配置多个IP地址,AIX中可以实现吗?
(1)方法一:
使用命令ifconfig 即可.其语法为:
ifconfig network_interface second_ip_address netmask your_netmask alias
在ODM中未记录此定义,所以关机后该定义会丢失,若需要的话,可将该命令加在启动文件(/etc/rc.net)中.
第二个IP地址是 9.185.43.135 可用
# ifconfig en0 9.185.43.135 netmask 255.255.255.0 alias
当该IP地址不再需要时,可从系统中删除.
#ifconfig en0 9.185.43.135 netmask 255.255.255.0 delete
或从/etc/rc.net文件中删除。
(2)方法二:
smit tcpip
-->Further Configuration
-->Network Interfaces
-->Network Interfaces Selection
-->Configure Aliases
--> Add an IPV4 Network Alias 选择对应的网卡就可以添加IP
OR --> Remove an IPV4 Network Alias 删除IP
转载于:https://blog.51cto.com/sf1314/2162488