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

浙公網安備 33010602011771號