[root@controller ~]# nova network-create --fixed-range-v4 10.0.1.0/24 --enable-dhcp 'T' --dhcp-server 10.0.1.1 --allowed-start 10.0.1.80 --allowed-end 10.0.1.90 demo-dhcp-net2
[root@controller ~]#
[root@controller ~]#
[root@controller ~]#
[root@controller ~]#
[root@controller ~]#
[root@controller ~]# nova net-list
+--------------------------------------+----------------+-------------+
| ID | Label | CIDR |
+--------------------------------------+----------------+-------------+
| 8aba2354-0fc7-4f41-a8a4-7208f0b8e75a | demo-dhcp-net2 | 10.0.1.0/24 |
+--------------------------------------+----------------+-------------+
[root@controller ~]# ping 10.0.1.81
PING 10.0.1.81 (10.0.1.81) 56(84) bytes of data.
64 bytes from 10.0.1.81: icmp_seq=1 ttl=64 time=11.0 ms
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。