Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

做了bonding的宿主机,获取网卡IP有误 #607

Closed
beef9999 opened this issue Jun 24, 2019 · 3 comments
Closed

做了bonding的宿主机,获取网卡IP有误 #607

beef9999 opened this issue Jun 24, 2019 · 3 comments

Comments

@beef9999
Copy link

beef9999 commented Jun 24, 2019

4: eth0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond0 state UP qlen 1000
    link/ether 24:6e:96:39:b8:68 brd ff:ff:ff:ff:ff:ff
5: eth1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond0 state UP qlen 1000
    link/ether 24:6e:96:39:b8:68 brd ff:ff:ff:ff:ff:ff
6: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
    link/ether 24:6e:96:39:b8:68 brd ff:ff:ff:ff:ff:ff
    inet 10.4.252.30/24 brd 10.4.252.255 scope global bond0
       valid_lft forever preferred_lft forever

解决办法:easzup: function start_kubeasz_docker()
把eth0和eth1过滤掉

host_ip=$(ip a|grep "$host_if"|grep -v "master $host_if"|awk 'NR==2{print $2}'|cut -d'/' -f1)
@gjmzj
Copy link
Collaborator

gjmzj commented Jun 24, 2019

感谢反馈,可以使用建议的解决办法:👍
也可以用如下脚本替换

host_ip=$(ip a|grep "$host_if$"|awk '{print $2}'|cut -d'/' -f1)

@gjmzj gjmzj added the solved label Jun 24, 2019
@github-actions
Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Feb 19, 2023
@github-actions
Copy link

This issue was closed because it has been inactive for 14 days since being marked as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants