关于ECS 无法使用VIP的问题 - SDN , openflow
发表于:2025-11-08 作者:千家信息网编辑
千家信息网最后更新 2025年11月08日,背景给ECS虚拟机配置VIP,无法通讯,原因?HOST A[root@pg11 ~]# ip addr show eth0 2: eth0: mtu 1500 qdisc mq state UP
千家信息网最后更新 2025年11月08日关于ECS 无法使用VIP的问题 - SDN , openflow
背景
给ECS虚拟机配置VIP,无法通讯,原因?
HOST A
[root@pg11 ~]# ip addr show eth0 2: eth0:mtu 1500 qdisc mq state UP qlen 1000 link/ether 00:16:3e:0a:5c:f1 brd ff:ff:ff:ff:ff:ff inet 172.17.20.29/20 brd 172.17.31.255 scope global dynamic eth0 valid_lft 313883835sec preferred_lft 313883835sec
HOST B
postgres@pg11-> ip addr show eth0 2: eth0:mtu 1500 qdisc mq state UP qlen 1000 link/ether 00:16:3e:12:2f:48 brd ff:ff:ff:ff:ff:ff inet 172.17.20.30/20 brd 172.17.31.255 scope global dynamic eth0 valid_lft 313883847sec preferred_lft 313883847sec
互相在同一个VPC(vswitch , hub)
相互可以访问
a ping b ping 172.17.20.29 PING 172.17.20.29 (172.17.20.29) 56(84) bytes of data. 64 bytes from 172.17.20.29: icmp_seq=1 ttl=64 time=0.156 ms 64 bytes from 172.17.20.29: icmp_seq=2 ttl=64 time=0.102 ms b ping a ping 172.17.20.30 PING 172.17.20.30 (172.17.20.30) 56(84) bytes of data. 64 bytes from 172.17.20.30: icmp_seq=1 ttl=64 time=0.166 ms 64 bytes from 172.17.20.30: icmp_seq=2 ttl=64 time=0.112 ms
配置VIP,无法跨机访问
host a
[root@pg11 ~]# ip addr add 172.17.20.39/20 brd + dev eth0 label eth0:1 [root@pg11 ~]# ifconfig eth0: flags=4163mtu 1500 inet 172.17.20.29 netmask 255.255.240.0 broadcast 172.17.31.255 ether 00:16:3e:0a:5c:f1 txqueuelen 1000 (Ethernet) RX packets 22221492822 bytes 33552649055304 (30.5 TiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 631860042 bytes 42907936724 (39.9 GiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 eth0:1: flags=4163 mtu 1500 inet 172.17.20.39 netmask 255.255.240.0 broadcast 172.17.31.255 ether 00:16:3e:0a:5c:f1 txqueuelen 1000 (Ethernet) lo: flags=73 mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 loop txqueuelen 1 (Local Loopback) RX packets 959417 bytes 111291935 (106.1 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 959417 bytes 111291935 (106.1 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 [root@pg11 ~]# ping 172.17.20.39 PING 172.17.20.39 (172.17.20.39) 56(84) bytes of data. 64 bytes from 172.17.20.39: icmp_seq=1 ttl=64 time=0.012 ms 64 bytes from 172.17.20.39: icmp_seq=2 ttl=64 time=0.008 ms
host b
[root@pg11 ~]# ping 172.17.20.39 PING 172.17.20.39 (172.17.20.39) 56(84) bytes of data.
无防火墙
[root@pg11 ~]# iptables -L -v -n Chain INPUT (policy ACCEPT 8 packets, 528 bytes) pkts bytes target prot opt in out source destination Chain FORWARD (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source destination Chain OUTPUT (policy ACCEPT 6 packets, 1000 bytes) pkts bytes target prot opt in out source destination
原因
宿主机通过openflow进行流控,未注册的vm+ip可以被拒绝。具体可参考SDN文档。
删除VIP
[root@pg11 ~]# ip addr del 172.17.20.39/20 brd + dev eth0 label eth0:1 [root@pg11 ~]# ifconfig eth0: flags=4163mtu 1500 inet 172.17.20.29 netmask 255.255.240.0 broadcast 172.17.31.255 ether 00:16:3e:0a:5c:f1 txqueuelen 1000 (Ethernet) RX packets 22221492889 bytes 33552649060975 (30.5 TiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 631860095 bytes 42907943783 (39.9 GiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73 mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 loop txqueuelen 1 (Local Loopback) RX packets 959424 bytes 111292619 (106.1 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 959424 bytes 111292619 (106.1 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
参考
《linux IP 命令使用举例》
A Virtual Switch Platform for Host SDN in the Public Cloud
https://www.microsoft.com/en-us/research/wp-content/uploads/2017/09/login_fall17_02_firestone.pdf
https://www.opennetworking.org/
https://www.cisco.com/c/en/us/about/press/internet-protocol-journal/back-issues/table-contents-59/161-sdn.html
https://en.wikipedia.org/wiki/OpenFlow
原文地址:https://github.com/digoal/blog/blob/master/201810/20181005_01.md
原因
参考
配置
原文
命令
地址
宿主
宿主机
文档
背景
通讯
防火墙
防火
问题
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
山东济南商中网络技术有限公司
海南微彩网络技术有限公司
2022年国产数据库排行榜
小学生课堂趣说网络安全
棋牌游戏系统软件开发
数据库管理技术和应用
安卓下应用什么软件开发
2022年冬奥会网络安全方案
通达oa更换服务器
数据库with as的作用
复仇下载软件开发
wex5获取数据库连接失败
软件开发公司招新人
微信支付服务器怎么用
广电总局 网络安全
服务器部署形式
山西ios软件开发价格合理
修改数据库使用命令是
完美世界选安卓还是互通服务器
靠谱的软件开发公司俄罗斯
ftp与计算机网络技术
服务器系统安全性如何设置
铁可以在水银中我服务器的
浙江项目软件开发销售
数据库管理事务流程图
水滴ipo 网络安全
域服务器的建立
传奇数据库未连接
肚痛健胃整肠丸药品广告数据库
分子生物学常用数据库