我正在尝试在openstack中创建一个实例和一个路由器相互连接的虚拟网络。所以这意味着这个虚拟网络在我的家庭网络内。我的家庭网络是 10.0.0.0/24,它的网关是 10.0.0.138。Openstack 在我家庭网络中的虚拟机上的 10.0.0.63 上运行。虚拟路由器的外部接口 ip 为 10.0.0.253 但 ping 不成功,为什么会这样?:
C:\Users\daisk>tracert 10.0.0.253
Tracing route to 10.0.0.253 over a maximum of 30 hops
1 DESKTOP-xxxxxxx.gateway [10.0.0.12] reports: Destination host unreachable.
Trace complete.
为什么我的ip在这里无法访问?
我最终希望能够从互联网访问我的家庭网络内的虚拟网络内的虚拟实例。
我正在尝试根据自己的情况进行调整:https ://www.youtube.com/watch?v=yqFpyubsYfE
running: 'ip a' 给出了这个:
$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1700 qdisc fq_codel state UP group default qlen 1000
link/ether 08:00:27:f0:19:9b brd ff:ff:ff:ff:ff:ff
inet 10.0.0.63/24 brd 10.0.0.255 scope global dynamic noprefixroute enp0s3
valid_lft 85977sec preferred_lft 85977sec
inet6 fe80::5fb4:dc85:6a52:bb09/64 scope link noprefixroute
valid_lft forever preferred_lft forever
3: ovs-system: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether ee:d3:37:d8:18:d5 brd ff:ff:ff:ff:ff:ff
4: br-ex: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 92:0a:7c:98:42:4e brd ff:ff:ff:ff:ff:ff
5: br-tun: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 86:f9:07:a3:f7:47 brd ff:ff:ff:ff:ff:ff
18: br-int: <BROADCAST,MULTICAST> mtu 1450 qdisc noop state DOWN group default qlen 1000
link/ether c6:4b:cc:53:9a:4e brd ff:ff:ff:ff:ff:ff
20: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether 52:54:00:bf:ad:fb brd ff:ff:ff:ff:ff:ff
inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
valid_lft forever preferred_lft forever
21: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc fq_codel master virbr0 state DOWN group default qlen 1000
link/ether 52:54:00:bf:ad:fb brd ff:ff:ff:ff:ff:ff
49: tap459b4a9f-12: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc fq_codel master ovs-system state UNKNOWN group default qlen 1000
link/ether fe:16:3e:f9:20:f0 brd ff:ff:ff:ff:ff:ff
inet6 fe80::fc16:3eff:fef9:20f0/64 scope link
valid_lft forever preferred_lft forever