[Starlingx-discuss] How flat provision network access external network

Sun, Austin austin.sun at intel.com
Tue Oct 30 13:09:14 UTC 2018


Hi Allain:
     Sorry , I did not state clearly.
     In current my env, There is one compute node with 2 NIC,   eno2 is used for Management network,  eno1 is used for Data network and is connected  to company intranet.
"VM access external network " means "VM can access and be accessed in intranet".
VM can get intranet IP , but can not ping other computer in intranet.

1.       You start by stating that you wanted to use an "external network", but the network create command you used lacks the "--external" option which means you only created a regular tenant network.
               [Austin] I tried with "-external" parameters before, it is same result as no "-external" parameter , so I did not list this parameter.

2.       You did not add a "subnet" to the network so the VM will not be assigned an IP address
               [Austin] Because there is DHCP in intranet , subnet is not created for data network.

3.       The server create command listed in your email has a syntax error which would cause it to not run at all (extra space after the net-id=).

[Austin] Thanks you. This is typo.

Thanks.
BR
Austin Sun.



From: Legacy, Allain [mailto:Allain.Legacy at windriver.com]
Sent: Monday, October 29, 2018 11:23 PM
To: Sun, Austin <austin.sun at intel.com>; starlingx-discuss at lists.starlingx.io
Subject: RE: [Starlingx-discuss] How flat provision network access external network

Your question is not clear enough for us to determine what you were trying to do, what you expected to happen and what exactly didn't work.


1.       You start by stating that you wanted to use an "external network", but the network create command you used lacks the "--external" option which means you only created a regular tenant network.

2.       You did not add a "subnet" to the network so the VM will not be assigned an IP address

3.       The server create command listed in your email has a syntax error which would cause it to not run at all (extra space after the net-id=).



Regards,
Allain

Allain Legacy, Software Developer, Wind River
direct 613.270.2279  fax 613.492.7870 skype allain.legacy
350 Terry Fox Drive, Suite 200, Ottawa, Ontario, K2K 2W5


[WIND]<http://www.windriver.com/>

From: Sun, Austin [mailto:austin.sun at intel.com]
Sent: Monday, October 29, 2018 10:20 AM
To: starlingx-discuss at lists.starlingx.io<mailto:starlingx-discuss at lists.starlingx.io>
Subject: [Starlingx-discuss] How flat provision network access external network

Hi All:
      In my set up ,  compute-0 eno1 is connected external network as data network.  Is it possible VM on compute-0 can access external network directly ?
I tried below commands , but it did not work. :(

openstack providernet create providernet.a --type flat
openstack network create ext_net --provider-network-type flat --provider-physical-network providernet.a
system host-if-modify -p providernet.a -c data compute-0 eno1
openstack server create --flavor vm1.flavor --image cirros --nic net-id= ext_net vm1.tiny


Thanks.
BR
Austin Sun.





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.starlingx.io/pipermail/starlingx-discuss/attachments/20181030/81e61669/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 1807 bytes
Desc: image001.png
URL: <http://lists.starlingx.io/pipermail/starlingx-discuss/attachments/20181030/81e61669/attachment-0001.png>


More information about the Starlingx-discuss mailing list