Openstack 之 网络设置静态IP地址
发布日期:2025-04-29 05:31:23 浏览次数:2 分类:精选文章

本文共 993 字,大约阅读时间需要 3 分钟。

Openstack Ocata?????????

?????Openstack Ocata????IP???????????????????????????????????

1. ??????

?Ocata???????????????????????????????????

ip addr show eth0

?????

3: eth0: 
mtu 1500 qdisc 0:0 qr 1000 at 0:0
link/ether xx:xx:xx:xx:xx:xx brd xx:xx:xx:xx:xx:xx
inet 192.168.1.101/24 brd 192.168.1.255 scope global eth0
inet6 ... ::1 scope host
inet6 ... ::254 scope global eth0

2. ??????

?????????

nano /etc/network/interfaces

???????

interface eth0
address 192.168.1.101/24
netmask 255.255.255.0
up

3. IP????

??ping?????????

ping 192.168.1.101

????

192.168.1.101 is alive

???????????ssh???

ssh cirros@192.168.1.101

4. ??????

?????????????????????????????

# ????IP
openstack port set --name cirros-1 --no-fixed-ip --fixed-ip ip-address=192.168.170.181 subnet=19b1397a-1150-495f-a423-fe0b104602d8 7e475b34-7ae8-41dd-be10-7079f973926c

5. ????

  • ????IP?????????????????
  • ???????????????
  • ????IP????????IP??????????

??????????????Openstack Ocata?????????????????????

上一篇:openstack 创建虚拟机的时候报错: Failed to allocate the network(s), not rescheduling.].
下一篇:OpenStack 上部署 Kubernetes 方案对比

发表评论

最新留言

感谢大佬
[***.8.128.20]2025年04月25日 06时45分06秒