如果你的机器上有两块网卡rtls0和rtls1,那么只需要配置下面三个文件重启后就可以了。
# cat /etc/hostname.ipmp2
ipmp group g1
10.13.26.106 netmask + broadcast + up
# cat /etc/hostname.rtls0
group g1
# cat /etc/hostname.rtls1
group g1
# ifconfig -a
lo0: flags=2001000849 mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
lo0:1: flags=2001000849 mtu 8232 index 1
zone publiczone
inet 127.0.0.1 netmask ff000000
ipmp2: flags=8001000843 mtu 1500 index 2
inet 10.13.26.106 netmask ffffff00 broadcast 10.13.26.255
groupname g1
rtls0: flags=1000843 mtu 1500 index 4
inet 0.0.0.0 netmask ff000000 broadcast 0.255.255.255
groupname g1
ether 0:19:e0:2f:64:1e
rtls1: flags=1000843 mtu 1500 index 5
inet 0.0.0.0 netmask ff000000 broadcast 0.255.255.255
groupname g1
ether 0:e0:4d:1f:ca:76
lo0: flags=2002000849 mtu 8252 index 1
inet6 ::1/128
lo0:1: flags=2002000849 mtu 8252 index 1
zone publiczone
inet6 ::1/128
拔掉任何一根网线,IP照样通。就这么简单。
阅读(1350) | 评论(0) | 转发(0) |