4.2. 创建 Overcloud 公共网络
此场景将节点接口配置为使用外部网络。但是,您仍需要在 Overcloud 上创建此网络,以便我们可以提供网络访问。
neutron net-create public --router:external --provider:physical_network datacentre --provider:network_type vlan --provider:segmentation_id 100 neutron subnet-create public 2001:db8:0:2::/64 --ip-version 6 --gateway 2001:db8::1 --allocation-pool start=2001:db8:0:2::2,end=2001:db8:0:2::ffff --ip-version 6 --ipv6_address_mode=slaac --ipv6_ra_mode=slaac
$ neutron net-create public --router:external --provider:physical_network datacentre --provider:network_type vlan --provider:segmentation_id 100
$ neutron subnet-create public 2001:db8:0:2::/64 --ip-version 6 --gateway 2001:db8::1 --allocation-pool start=2001:db8:0:2::2,end=2001:db8:0:2::ffff --ip-version 6 --ipv6_address_mode=slaac --ipv6_ra_mode=slaac
这会创建一个名为 public 的网络,为我们的实例提供超过 65000 IPv6 地址的分配池。
创建路由器,将实例流量路由到外部网络。
neutron router-create public-router neutron router-gateway-set public-router public
neutron router-create public-router
neutron router-gateway-set public-router public