ipv6部署
1.以ipv6的形式相互ping通要安装集群的各个节点
①IPV4如何转化为IPV6:
192.168.103.74 10进制转化为16进制分别对应C0 A8 67 4A
所以也可以写成:2001:c0a8:674a/64
②将ipv6添加到网卡,如: ifconfig ens6 inet6 add 2001:c0a8:674a/64
注意:命令中的网卡名要写ip所在的网卡名。
一般执行ipconfig会发现有多个网卡,如下就有ens6、 etn0、 lo这三个网卡名, 但是最终要选择ens6,因为节点ip10.10.14.88在这个网卡上:
[root@xxx-node-0 ~]# ifconfig
ens6: flags=4163 <UP,BROADCAST,RUNNING,MULTICAST>mtu 1 500
inet 10.10.14.88 netmask 255.255.0.0 broadcast 10.10.255.255
inet6 fe80::f816:3eff:fe50:65fb prefixlen 64 scopeid 0x20<link>
ether fa:16:3e:50:65:fb txqueuelen 1000 (Ethernet)
RX packets 305479762 bytes 74199889074 (69.1 GiB)
RX errors 0 dropped 588179 overrunsO frame 0
TX packets 358816987 bytes 195161791087 (181.7 GiB)
TX errors 0 dropped 0 overruns 0 carrier0 ollsions 0
eth0: flags=4163 <UP,BROADRUNNING,MULTICAST> mtu 1450
inet 10.40.3.240 netmask 255.255.0.broadcast 10.40.255.255
inet6 fe0:f:36ff25:7928 prefixlen 64 scopeid 0x20<link>
inet6 2001:.a0a:e58 prefixlen 64 scopeid 0x0<globa!>)
inet6 2001:db8a:8620:9530::3a8 prefixlen 128copeid 0x0<global>
ether f:163e:25:7d:28 txqueuelen 1000 (Ethernet)
RX packets 128395 bytes 28902047 (27.5 MiB)
RX errors 0 droppedd 0 overruns 0 frame 0
TX packets 4222 bytes 46630 (436.1 KiB)
TX errors 0 dropped 0 overruns0 crrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu65536inet 127.0.0.1 netmask 255.0.0.0
inet6 :1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (L ocal Loopback)
RX packets 154041143 bytes 98077452654 (91.3 GiB)RX errors 0 dropped 0 overruns 0 frame 0
TX packets 154041143 bytes 98077452654 (91.3 GiB)TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
③要安装集群的节点要相互ping通
ping命令: ping6 2001::c0a8:674a
注意: 节点要相互ping通, 单方向ping通是不行的
2.将demo.options中的ip都写成ipv6的形式并执行安装
主机名部署
1.配置/etc/hosts,将要安装集群的节点主机名都加进去,且每个节点都要配置。
[gbase@xxx-workstation-0 test1000]$ cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
localhost localhost.localdomain localhost6 localhost6.localdomain6
10.10.2.132 xxx-workstation-0
10.10.0.61 xx-workstation-1
10.10.2.72 xxx-workstation-2
10.10.1.25 xxx-workstation-3
2.将demo.options中的ip都写成主机名的形式并执行安装
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。