老师,您好。
我用两台阿里云机器来做这个Overlay网络实验的,但是我发现阿里云eth0接口,它的IP地址和实际的公网IP地址是不一样的,那么我etcd命令应该怎么运行呢?
nohup ./etcd --name docker-node1 --initial-advertise-peer-urls http://192.168.205.10:2380 \
--listen-peer-urls http://192.168.205.10:2380 \
--listen-client-urls http://192.168.205.10:2379,http://127.0.0.1:2379 \
--advertise-client-urls http://192.168.205.10:2379 \
--initial-cluster-token etcd-cluster \
--initial-cluster docker-node1=http://192.168.205.10:2380,docker-node2=http://192.168.205.11:2380 \
--initial-cluster-state new&
我尝试将上面这个命令的192.168.205.10更改为eth0的地址,但是不行后续运行etcdctl会报错client: etcd cluster is unavailable or misconfigured
,如果更改为公网地址也不行会报错bind: cannot assign requested address