[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.
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@intel.com] Sent: Monday, October 29, 2018 10:20 AM To: starlingx-discuss@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.
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@windriver.com] Sent: Monday, October 29, 2018 11:23 PM To: Sun, Austin austin.sun@intel.com; starlingx-discuss@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@intel.com] Sent: Monday, October 29, 2018 10:20 AM To: starlingx-discuss@lists.starlingx.iomailto:starlingx-discuss@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.
If the VM is able to get an IP address from your intranet IP address then at least you know that connectivity to your intranet is physically possible. You will need to do further debugging to understand which parts of your ping request are making it out (and back in). For example, is ARP resolving for the IP address you are trying to ping? If not, do you see the ARP request on your physical network? If ARP is resolving, then do you see the ICMP request on your physical network? etc... you need to break the problem down into its smallest parts to understand where exactly the problem is occurring.
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@intel.com] Sent: Tuesday, October 30, 2018 9:09 AM To: Legacy, Allain; starlingx-discuss@lists.starlingx.io Subject: RE: [Starlingx-discuss] How flat provision network access external network
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@windriver.com] Sent: Monday, October 29, 2018 11:23 PM To: Sun, Austin <austin.sun@intel.commailto:austin.sun@intel.com>; starlingx-discuss@lists.starlingx.iomailto:starlingx-discuss@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@intel.com] Sent: Monday, October 29, 2018 10:20 AM To: starlingx-discuss@lists.starlingx.iomailto:starlingx-discuss@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.
participants (2)
-
Legacy, Allain
-
Sun, Austin