본문 바로가기
Openstack/Openstack 기본 사용법

Openstack Neutron Port 생성 방법

by Miners1205 2024. 5. 22.
반응형

Openstack Neutron Port 생성 방법


  • Openstack Port Create CLI 명령

#!/bin/bash
#####################################################################################
TENANT_INFO=admin-openrc

### Input Information ###
NET_NAME={NETWORK_NAME}

### Input Information ###
SUBNET_NAME={SUBNET_NETWORK_NAME}

LB_VIP=192.168.10.101
LB_NAME='TEST LB VIP'
#####################################################################################

source /root/${TENANT_INFO}
#####################################################################################
### Openstack Port Create & LB Settings

### Neutron 명령일 경우(옛날 버전) ### 
neutron oprt-create ${NET_NAME} --fixed-ip ip_address={$LB_VIP} --name ${LB_NAME}

### Openstack 명령일 경우 ###
openstack port create --network ${NET_NAME} --fixed-ip subnet=${SUBNET_NAME},ip-address=${LB_VI{} ${LB_NAME}

 

반응형