设置列表
对齐方式
(0)
最佳答案
是不是主机物理网卡没有eth0,vswitch重新绑定物理网卡试试
参考案例:https://zhiliao.h3c.com/theme/details/127198
(1)
暂无评论
补充配置信息:
CVM:
网卡信息:
[root@cvknode1 ~]# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.12.175.165 netmask 255.255.252.0 broadcast 10.12.175.255
inet6 fe80::20c:29ff:fe2c:1b81 prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:2c:1b:81 txqueuelen 1000 (Ethernet)
RX packets 1470452 bytes 94684710 (90.2 MiB)
RX errors 0 dropped 601 overruns 0 frame 0
TX packets 18137 bytes 1693431 (1.6 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.12.175.109 netmask 255.255.252.0 broadcast 10.12.175.255
inet6 fe80::20c:29ff:fe2c:1b8b prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:2c:1b:8b txqueuelen 1000 (Ethernet)
RX packets 1475577 bytes 96163653 (91.7 MiB)
RX errors 0 dropped 3 overruns 0 frame 0
TX packets 13377 bytes 19456488 (18.5 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 489168 bytes 189574550 (180.7 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 489168 bytes 189574550 (180.7 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
vswitch0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.12.175.109 netmask 255.255.252.0 broadcast 10.12.175.255
inet6 fe80::20c:29ff:fe2c:1b8b prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:2c:1b:8b txqueuelen 1000 (Ethernet)
RX packets 1466187 bytes 74485632 (71.0 MiB)
RX errors 0 dropped 40 overruns 0 frame 0
TX packets 13351 bytes 19455258 (18.5 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
vswitch0 信息
[root@cvknode1 ~]# ovs-vsctl show
d70c9537-c683-4419-b711-0373b0c414ab
Bridge "vswitch0"
Port "eth1"
Interface "eth1"
Port "vswitch0"
Interface "vswitch0"
type: internal
ovs_version: "2.9.1"
[root@cvknode1 ~]#
SSH测试正常
[root@cvknode1 ~]# ssh 10.12.174.43
Authorized users only. All activity may be monitored and reported
root@10.12.174.43"s password:
Last login: Thu May 27 11:16:21 2021 from 10.12.175.165
| | --- |
|---| --| | * |--| | | \/
| | --- |___ | | | |__| /\ Instance (H3Linux Release 1.1.0)
[root@cvk1 ~]#
CVK配置信息
网卡信息
[root@cvk1 ~]# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::20c:29ff:fefe:750b prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:fe:75:0b txqueuelen 1000 (Ethernet)
RX packets 1517839 bytes 97774805 (93.2 MiB)
RX errors 0 dropped 5 overruns 0 frame 0
TX packets 10425 bytes 1150626 (1.0 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::20c:29ff:fefe:7515 prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:fe:75:15 txqueuelen 1000 (Ethernet)
RX packets 1502211 bytes 96178432 (91.7 MiB)
RX errors 0 dropped 627 overruns 0 frame 0
TX packets 36 bytes 3096 (3.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 9320 bytes 903410 (882.2 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 9320 bytes 903410 (882.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
vswitch0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.12.174.43 netmask 255.255.252.0 broadcast 10.12.175.255
inet6 fe80::20c:29ff:fefe:750b prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:fe:75:0b txqueuelen 1000 (Ethernet)
RX packets 1508506 bytes 75493400 (71.9 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 10427 bytes 1152058 (1.0 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Vswitch信息
[root@cvk1 ~]# ovs-vsctl show
f2df0f84-d1e7-4f8a-9bcd-aae9ba4c67da
Bridge "vswitch0"
Port "vswitch0"
Interface "vswitch0"
type: internal
Port "eth0"
Interface "eth0"
ovs_version: "2.9.1"
SSH 端口正常
[root@cvk1 ~]# ssh 10.12.175.109
Authorized users only. All activity may be monitored and reported
root@10.12.175.109"s password:
Last login: Thu May 27 14:21:45 2021 from 10.12.164.136
| | --- |
|---| --| | * |--| | | \/
| | --- |___ | | | |__| /\ Instance (H3Linux Release 1.1.0)
[root@cvknode1 ~]#
可以访问CVM的 8080 8081端口
[root@cvk1 ~]# curl https://10.12.175.109:8080
curl: (35) SSL received a record that exceeded the maximum permissible length.
[root@cvk1 ~]# curl https://10.12.175.109:8081
curl: (60) Issuer certificate is invalid.
More details here: http://curl.haxx.se/docs/sslcerts.html
curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn"t adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you"d like to turn off curl"s verification of the certificate, use
the -k (or --insecure) option.
[root@cvk1 ~]#
网络可能确实有点问题
CVM上的arp -a
[root@cvknode1 ~]# arp -a gateway (10.12.172.1) at 38:97:d6:30:c7:ee [ether] on vswitch0 ? (10.12.174.43) at <incomplete> on eth1 gateway (10.12.172.1) at 38:97:d6:30:c7:ee [ether] on eth1 [root@cvknode1 ~]#
CVK的arp -a
[root@cvk1 ~]# arp -a ? (10.12.175.109) at <incomplete> on eth0 gateway (10.12.172.1) at 38:97:d6:30:c7:ee [ether] on vswitch0 [root@cvk1 ~]# ifconfig eth0 eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 10.12.174.43 netmask 255.255.252.0 broadcast 10.12.175.255 inet6 fe80::20c:29ff:fefe:750b prefixlen 64 scopeid 0x20<link> ether 00:0c:29:fe:75:0b txqueuelen 1000 (Ethernet) RX packets 61034 bytes 3923288 (3.7 MiB) RX errors 0 dropped 5 overruns 0 frame 0 TX packets 214 bytes 28368 (27.7 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
(0)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论