- 论坛徽章:
- 0
|
solaris10有
给个例子你
sun v880 双网卡切换配置
假如现在是用eri0和qfe0,并且应用的IP是192.168.0.1
现在要配成IPMP 的standby方式:#eeprom local-mac-address?=true
#init 6(重启) 如果local-mac-address?值是true,则不用这俩步。先用:#eeprom local-mac-address?看一下
#ifconfig eri0 plumb 192.168.0.2 group LBS1 deprecated -failover netmask + broadcast + up
#ifconfig eri0 addif 192.168.0.1 netmask + broadcast + up
#ifconfig qfe0 plumb 192.168.0.3 group LBS1 netmask + broadcast + deprecated -failover standby up
这些操作都是临时生效,要使长期生效,修改/etc/hostname.eri0和/etc/hostname.qfe0,建议先用上面的方式试一下
下面就用配置文件的方式来配置IPMP,假设如下:
multipathing test IP 10.170.1.81 测试地址1
multipathing test IP 10.170.1.82 测试地址1
Logical IP 10.170.1.80 逻辑地址,这是我们访问的地址
Group Name mswitch 这个名字,随便取的
Network Card ce0,ce1
1、首先更改hosts文件
#vi /etc/hosts
10.170.1.80 host1 loghost
10.170.1.81 host1-1
10.170.1.82 host1-2
2、然后创建文件hostname.ce0 , hostname.ce1
#vi /etc/hostname.ce0
host1 group mswitch up
addif host1-1 -failover deprecated up
#vi /etc/hostname.ce1
host1-2 group mswitch -failover deprecated up
3、重新启动计算机,就可以了
#reboot
4、after reboot , you can use ifconfig -a to view the configure information.
#ifconfig -a
做做测试,看看会不会failover! |
|