标签:docker network systemctl bridge brctl
1,物理机配置,eth0,eth1 配置bonding,bonding 作为bridge 物理网卡,在生成bond0 作为物理机管理口
2,虚拟机配置,eth1 作为bridge 虚拟网卡br500, eth0 配置正常网卡IP
3, 因eth0 为WEB 段, eth1 为DB 段,需颠倒配置,重启网卡,出现以下问题
4,相关错误日志:
an 3 14:46:41 localhost kernel: device vnet0 entered promiscuous mode Jan 3 14:46:41 localhost kernel: br100: port 2(vnet0) entering forwarding state Jan 3 14:46:41 localhost kernel: device vnet1 entered promiscuous mode Jan 3 14:46:41 localhost kernel: br101: port 2(vnet1) entering forwarding state Jan 3 14:46:56 localhost kernel: __ratelimit: 23 callbacks suppressed Jan 3 14:46:56 localhost kernel: kvm: 27962: cpu0 unhandled wrmsr: 0x391 data 2000000f Jan 3 14:46:56 localhost kernel: kvm: 27962: cpu2 unhandled wrmsr: 0x391 data 2000000f Jan 3 14:46:56 localhost kernel: br100: port 2(vnet0) entering forwarding state Jan 3 14:46:56 localhost kernel: br101: port 2(vnet1) entering forwarding state Jan 3 14:50:02 localhost kernel: __ratelimit: 91391 callbacks suppressed Jan 3 14:50:02 localhost kernel: vnet0: received packet with own address as source address Jan 3 14:50:02 localhost kernel: vnet0: received packet with own address as source address Jan 3 14:50:02 localhost kernel: vnet0: received packet with own address as source address Jan 3 14:50:02 localhost kernel: vnet0: received packet with own address as source address Jan 3 14:50:02 localhost kernel: vnet0: received packet with own address as source address Jan 3 14:50:02 localhost kernel: vnet0: received packet with own address as source address Jan 3 14:50:02 localhost kernel: vnet0: received packet with own address as source address Jan 3 14:50:02 localhost kernel: vnet0: received packet with own address as source address Jan 3 14:50:02 localhost kernel: vnet0: received packet with own address as source address Jan 3 14:50:02 localhost kernel: vnet0: received packet with own address as source address
解决办法: 1,在重启网卡之前,需要删除老的bridge 配置 ifconfig br500 down brctl delbr br500 ifdown eth1 systemctl stop network.service systemctl start network.service 2, 直接重启云主机
本文出自 “欢迎评论,欢迎点赞” 博客,请务必保留此出处http://swq499809608.blog.51cto.com/797714/1598870
云主机配置Docker Bridge,在重新颠倒配置,重启网卡,导致物理网卡不正常工作
标签:docker network systemctl bridge brctl
原文地址:http://swq499809608.blog.51cto.com/797714/1598870