Gbase 8a中使用ipv6地址登录集群及用户名白名单使用方法

1.分别给客户端和服务端所在的机器配置 jpv6 地址,ping6确认能互通,客户端执行 gccli后写服务端 ipv6 地址,登陆成功

如,用node-3 客户端登录 node-0 上的集群。

node-0:2001.a0a:b32

node-3:2001. a0a:c7b

[root@node-3 gbase]# ping6 2001::a0a:b32

PING 200::.a0a:b32(2001::a0a:b32) 56 data bytes

64 bytes from 2001::a0a:b32: icmp_seq=1 ttl=64 time =4.34 ms

64 bytes from 2001::a0a:b32: icmp_seq=2 ttl=64 time=0.228 ms

 

[root@node-0 ~J# ping6 2001::a0a:c7b

PING 2001::a0a:c7b(2001::a0a:c7b) 56 data bytes

64 bytes from 2001::a0a:c7b: imp_seq=1 ttl=64 time=4.07 ms

64 bytes from 2001::a0a:c7b: imp seq=2 ttl=64 time=0.220 ms

 

[gbase@gaoxinyu-node-3 -]$ gccli -uroot -h2001::a0a:b32

GBase client 9.5.2.47.3286616. Copyright (c) 2004-2023, GBase. All Right § Reserved.

 

gbase>\q

 

2,用户白名单含义是,create user usemame hosts ‘ip1,ip2,…’,使用该用户登录时只允许用 hosts 列表中’ip1,ip2,…‘的机器登录集群,其它 ip 的机器登录会在执行 gccli -uusername -ppasswd -hcoor ip 后报错 Host xxx is not alowed to connect to this GBase server。缺省实际上是默认为hosts %,也就是所有 ip 的机器都能登陆。

 

 

如果用户白名单用的是 ipv6 格式,在服务端集群创建用户需要注意,create user username hosts ‘ipv6 list’中,ipv6 的格式为 ifconfig中显示的压缩格式时,才能正常连接,其他格式报错

原创文章,作者:kirin,如若转载,请注明出处:https://blog.ytso.com/tech/bigdata/317933.html

(0)
上一篇 2天前
下一篇 2天前

相关推荐

发表回复

登录后才能评论