[openstack-community] Ovn chassis error possibly networking config error.
Dees
motosingh at yahoo.co.uk
Tue Mar 2 22:00:17 UTC 2021
Hi All,
I got around that problem too.
I have a new problem now as I need to assign two external networks to VM with provider segment as vlan. Any guidance please?
So I tried this it doesn't work, not sure why.
openstack network create Pub_Net --external --share --default \ --provider-network-type vlan --provider-segment 200 --provider-physical-network physnet1
openstack subnet create Pub_Subnet --allocation-pool start=10.141.40.10,end=10.141.40.20 \ --subnet-range 10.141.40.0/26 --no-dhcp --gateway 10.141.40.1 \ --network Pub_Net
NET_ID1=$(openstack network list | grep -w Pub_Net| awk '{ print $2 }')
openstack server create --image 'focal_x86_64' --flavor m1.micro \ --key-name User1-key --security-group Allow_SSHPing --nic net-id=$NET_ID1 \ focal-1
But which router and floating IP it works but as I need two public networks with only one floating IP allowed is an issue.-----------------------------------------------------------------------------------------------------------------------------------------------
openstack network create Pub_Net --external --share --default \ --provider-network-type vlan --provider-segment 200 --provider-physical-network physnet1
openstack subnet create Pub_Subnet --allocation-pool start=10.141.40.10,end=10.141.40.20 \ --subnet-range 10.141.40.0/26 --no-dhcp --gateway 10.141.40.1 \ --network Pub_Net
openstack network create Network1 --internalopenstack subnet create Subnet1 \ --allocation-pool start=192.168.0.10,end=192.168.0.199 \ --subnet-range 192.168.0.0/24 \ --gateway 192.168.0.1 --dns-nameserver 10.0.0.3 \ --network Network1
openstack router create Router1openstack router add subnet Router1 Subnet1openstack router set Router1 --external-gateway Pub_Net
NET_ID1=$(openstack network list | grep Network1 | awk '{ print $2 }')
openstack server create --image 'focal_x86_64' --flavor m1.micro \ --key-name User1-key --security-group Allow_SSHPing --nic net-id=$NET_ID1 \ focal-1
FLOATING_IP=$(openstack floating ip create -f value -c floating_ip_address Pub_Net)
openstack server add floating ip focal-1 $FLOATING_IP
Kind regards,Deepesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20210302/06f44427/attachment.html>
More information about the openstack-discuss
mailing list