文档详情

Solaris10IPMP配置.doc

发布:2018-05-06约2.5千字共3页下载文档
文本预览下载声明
Solaris 10 IPMP配置Solaris 10使用IPMP实现网卡负载,网卡负载就是需要两张网卡共用一个IP地址实现网卡灾备功能。Solaris 10 IPMP需要修改/etc/hosts、/etc/hostname.ce0、/etc/hostname.ce1、 /etc/defaultrouter四个文件,三个文件的具体配置如下: 1、/etc/hosts 192.168.254.101?? v490101??#负载IP地址(既对外IP地址) ?##############configure for ipmp########## ?192.168.254.201?v490101-test1? #(负载测试ip地址1) ?192.168.254.202?v490101-test2? #(负载测试ip地址2) ?####################################### ? 2、/etc/hostname.ce0 ?####################################### ?V490101 netmask + broadcast + group fzu1 up addif v490101-test1 netmask + broadcast + deprecated -failover up #V490101:负载IP地址的计算机名; #fzu1:IPMP的组名; #v490101-test1?:引用负载测试ip地址1 ?####################################### ? 3、/etc/hostname.ce1 ?####################################### ?v490101-test2 netmask + broadcast + group fzu1 deprecated -failover up #v490101-test12:引用负载测试ip地址2 #fzu1:IPMP的组名 ?####################################### 4、/etc/defaultrouter ?####################################### ?192.168.254.254 #默认网关,IPMP会通过ping网关来检测主网卡是否正常,ping不通网关会进行切换网卡 ####################################### 备注:/etc/hostname.ce0和/etc/hostname.ce1是网卡的配置文件,本文是在Sun V490的网卡配置,如果是其他机器的请根据相应的网卡配置文件配置。Solaris IPMP 配置IPMP(IPNetwork Multipathing)是Solaris产品中的一个主要特性,其目的在于:一、增加网络的吞吐量,可方便快捷的将几个网络接口绑定在一起使用,从而起到增加带宽的作用。二、实现网络接口的有效性,通过IPMP,可以做到网络接口的冗余使用,即使宕掉一块网卡,其他的网卡均能有效运行,并且坏掉的网卡上的业务IP不会丢失,将平滑转移到其他网卡上。 配置方法: 1、配置/etc/hosts # # Internet host table # 127.0.0.1?localhost? 10.4.128.226?s10?loghost?? # Primary Interface Address #Modifications made for IPMP 10.4.128.228?s102????? # Second Interface Address 10.4.128.230?s103????? # Third Interface Address 10.4.128.225?test1???? # Primary Test Address 10.4.128.227?test2???? # Second Test Address 10.4.128.232?test3???? # Third Test Address 可能你会有疑问,为什么需要这么多的IP地址,其实很简单,每个网卡必须都有一个IP地址,所以三个网卡就是三个IP地址,那么你必须赋予一个接口一个测试地址.这个地址必须是可以路由的地址,用来监控每个接口的状态,错误检测以及恢复,如此算来,一个是6个地址。 2、配置MAC地址,以免冲突 你需要在eeprom里修改local-mac-address?的值为true 具体命令如下: # eeprom local-mac-address?=true 3、配置网卡地址 这时候你需要配置hostname.xxx,xxx是
显示全部
相似文档