[Open Stack] [Network Node] โ‘จ-โ‘ก Neutron - Network ์„œ๋น„์Šค ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ

2023. 10. 2. 06:00ใ†System ์ž‘์—…์‹ค/Cloud

728x90
๋ฐ˜์‘ํ˜•

 

 

 

 

 

 

 

 

 

OpenStack for Architects - Second Edition Paperback

COUPANG

www.coupang.com

"์ด ํฌ์ŠคํŒ…์€ ์ฟ ํŒก ํŒŒํŠธ๋„ˆ์Šค ํ™œ๋™์˜ ์ผํ™˜์œผ๋กœ, ์ด์— ๋”ฐ๋ฅธ ์ผ์ •์•ก์˜ ์ˆ˜์ˆ˜๋ฃŒ๋ฅผ ์ œ๊ณต๋ฐ›์Šต๋‹ˆ๋‹ค."

 

 




๐Ÿ—‚ ๋ชฉ์ฐจ

1. [Hyper-V] [Open Stack] Open Stack์ด๋ž€?
2. [Hyper-V] [Open Stack] [Controller Node] Hyper-V ๊ตฌ์„ฑ ๋ฐ Ubuntu 22.04.3 LTS Server ์„ค์น˜
3. [Hyper-V] [Open Stack] [Controller Node] โ‘  ์˜คํ”ˆ์Šคํƒ ํŒจํ‚ค์ง€ ์„ค์น˜
4. [Hyper-V] [Open Stack] [Controller Node] โ‘ก NTP Server ๊ตฌ์„ฑ
5. [Hyper-V] [Open Stack] [Controller Node] โ‘ข RabbitMQ - Message Queue ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ
6. [Hyper-V] [Open Stack] [Controller Node] โ‘ฃ Memcached ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ
7. [Hyper-V] [Open Stack] [Controller Node] โ‘ค Etcd ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ
8. [Hyper-V] [Open Stack] [Controller Node] โ‘ฅ Keystone - Identity ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ
9. [Hyper-V] [Open Stack] [Controller Node] โ‘ฆ Image Service - Glance ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ  
10. [Hyper-V] [Open Stack] [Controller Node] โ‘ง Compute Service - Nova ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ
11. [Hyper-V] [Open Stack] [Contoller Node] โ‘จ Neutron - Network ์„œ๋น„์Šค ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ
12. [Hyper-V] [Open Stack] [Controller Node] โ‘ โ“ช Horizon - Dashboard ์„œ๋น„์Šค ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ

11. [Hyper-V] [Open Stack] [Compute Node] ์ค€๋น„์ค‘

 

 

 

 

๐Ÿš€ Network ์„œ๋น„์Šค ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ

    ๐Ÿ”ฝ ๊ตฌ์„ฑ ์š”์†Œ ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ

       ๐Ÿ“ฆ ๊ตฌ์„ฑ ์š”์†Œ ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ - Network Node

์ด๋ฒˆ์—๋Š” ๋„คํŠธ์›Œํฌ ๋…ธ๋“œ๋ฅผ ๊ตฌ์„ฑํ•ด ๋ณผ๊ฒŒ์š”.

์ตœ์ดˆ ์˜คํ”ˆ์Šคํƒ Zed ํŒจํ‚ค์ง€๋ฅผ ๋‚ด๋ ค ๋ฐ›์•„์ค„๊ฒŒ์š”. ์ž์„ธํ•œ ๋‚ด์šฉ์€ ์ด ๊ณณ์„ ์ฐธ๊ณ ํ•ด ์ฃผ์„ธ์š”!

 

[Hyper-V] [Open Stack] [Controller Node] โ‘  ์˜คํ”ˆ์Šคํƒ ํŒจํ‚ค์ง€ ์„ค์น˜

OpenStack for Architects - Second Edition Paperback COUPANG www.coupang.com "์ด ํฌ์ŠคํŒ…์€ ์ฟ ํŒก ํŒŒํŠธ๋„ˆ์Šค ํ™œ๋™์˜ ์ผํ™˜์œผ๋กœ, ์ด์— ๋”ฐ๋ฅธ ์ผ์ •์•ก์˜ ์ˆ˜์ˆ˜๋ฃŒ๋ฅผ ์ œ๊ณต๋ฐ›์Šต๋‹ˆ๋‹ค." ๐Ÿ—‚ ๋ชฉ์ฐจ 1. [Hyper-V] [Open Stack] Open Stack์ด๋ž€? 2

junyharang.tistory.com

 

apt -y install software-properties-common

 

add-apt-repository cloud-archive:zed

 

apt-get update && apt-get upgrade -y

 

 

์ด์ œ ํ•„์š” ํŒจํ‚ค์ง€๋ฅผ ์„ค์น˜ํ•ด ๋ณผ๊ฒŒ์š”.

apt install -y neutron-plugin-ml2 neutron-linuxbridge-agent neutron-l3-agent neutron-dhcp-agent neutron-metadata-agent python3-neutronclient

 

 

 

vim /etc/neutron/neutron.conf [DEFAULT]

728x90
[DEFAULT]
core_plugin = ml2
service_plugins = router
auth_strategy = keystone
state_path = /var/lib/neutron
allow_overlapping_ips = True
# RabbitMQ connection info
transport_url = rabbit://openstack:password@192.168.20.3

 

 

 

vim /etc/neutron/neutron.conf [agent]

[agent]
root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf

 

 

vim /etc/neutron/neutron.conf [keystone_authtoken]

 

[keystone_authtoken]
www_authenticate_uri = http://192.168.20.3:5000
auth_url = http://192.168.20.3:5000
memcached_servers = 192.168.20.3:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = neutron
password = servicepassword
# if using self-signed certs on Apache2 Keystone, turn to [true]
insecure = false

 

 

vim /etc/neutron/neutron.conf [oslo_concurrency]

[oslo_concurrency]
lock_path = $state_path/lock

 

์—ฌ๊ธฐ๊นŒ์ง€ ์ž…๋ ฅ ๋˜์—ˆ๋‹ค๋ฉด ์ €์žฅํ•˜๊ณ , ๋‚˜์˜ต๋‹ˆ๋‹ค.

 

 

touch /etc/neutron/fwaas_driver.ini; chmod 640 /etc/neutron/{neutron.conf,fwaas_driver.ini}; chgrp neutron /etc/neutron/{neutron.conf,fwaas_driver.ini}

๋ฐ˜์‘ํ˜•

 

vim /etc/neutron/l3_agent.ini

interface_driver = linuxbridge

 

์œ„ ๋‚ด์šฉ์„ ์ถ”๊ฐ€ํ•˜๊ณ , ์ €์žฅํ•˜๊ณ  ๋‚˜์˜ต๋‹ˆ๋‹ค.

 

 

vim /etc/neutron/dhcp_agent.ini

interface_driver = linuxbridge

 

 

vim /etc/neutron/dhcp_agent.ini


์œ„์˜ 43๋ฒˆ์งธ ์ค„ ์ฃผ์„์„ ํ•ด์ œํ•ด ์ฃผ์„ธ์š”.

 

vim /etc/neutron/dhcp_agent.ini


52๋ฒˆ์งธ ์ค„ ์—ญ์‹œ ์ฃผ์„ ํ•ด์ œ ํ•˜๊ณ , true๋กœ ๋ฐ”๊ฟ”์ค๋‹ˆ๋‹ค.

์œ„ ๋‚ด์šฉ์„ ์ถ”๊ฐ€ํ•˜๊ณ , ์ €์žฅํ•˜๊ณ  ๋‚˜์˜ต๋‹ˆ๋‹ค.

 

 

vim /etc/neutron/metadata_agent.ini [DEFAULT]

 

์œ„์™€ ๊ฐ™์ด ์ž…๋ ฅํ•˜๊ณ , ์ €์žฅํ•˜๊ณ  ๋‚˜์˜ต๋‹ˆ๋‹ค.

 

 

vim /etc/neutron/plugins/ml2/ml2_conf.ini [ml2]


์œ„์™€ ๊ฐ™์ด ์ž…๋ ฅํ•˜๊ณ , ์ €์žฅํ•˜๊ณ  ๋‚˜์˜ต๋‹ˆ๋‹ค.


 

 

vim /etc/neutron/plugins/ml2/linuxbridge_agent.ini [securitygroup]

 

 

vim /etc/neutron/plugins/ml2/linuxbridge_agent.ini 284๋ฒˆ์งธ ์ค„


์œ„์™€ ๊ฐ™์ด local_ip์—๋Š” ๋„คํŠธ์›Œํฌ ๋…ธ๋“œ์˜ Ip๋ฅผ ์ž…๋ ฅํ•ด ์ฃผ์—ˆ์–ด์š”.

์—ฌ๊ธฐ๊นŒ์ง€ ์ž…๋ ฅ ๋˜์—ˆ๋‹ค๋ฉด ์ €์žฅํ•˜๊ณ , ๋‚˜์˜ต๋‹ˆ๋‹ค.

 

 

ln -s /etc/neutron/plugins/ml2/ml2_conf.ini /etc/neutron/plugin.ini; systemctl restart neutron-l3-agent neutron-dhcp-agent neutron-metadata-agent neutron-linuxbridge-agent; systemctl enable neutron-l3-agent neutron-dhcp-agent neutron-metadata-agent neutron-linuxbridge-agent


๊ทธ๋ฆฌ๊ณ  ๋งˆ์ง€๋ง‰์œผ๋กœ ์œ„์™€ ๊ฐ™์ด ์„œ๋น„์Šค๋ฅผ ๋“ฑ๋กํ•˜๊ณ , ์žฌ๊ธฐ๋™ํ•˜์˜€์–ด์š”.

 

 

 

 

Openstack Essentials Second Edition Paperback

COUPANG

www.coupang.com

"์ด ํฌ์ŠคํŒ…์€ ์ฟ ํŒก ํŒŒํŠธ๋„ˆ์Šค ํ™œ๋™์˜ ์ผํ™˜์œผ๋กœ, ์ด์— ๋”ฐ๋ฅธ ์ผ์ •์•ก์˜ ์ˆ˜์ˆ˜๋ฃŒ๋ฅผ ์ œ๊ณต๋ฐ›์Šต๋‹ˆ๋‹ค."

 

 

๐Ÿง ์ฐธ๊ณ  ์ž๋ฃŒ

 

Ubuntu 22.04 LTS : OpenStack Zed : Configure Neutron (Network Node) : Server World

root@network:~# mv /etc/neutron/neutron.conf /etc/neutron/neutron.conf.org root@network:~# vi /etc/neutron/neutron.conf # create new [DEFAULT] core_plugin = ml2 service_plugins = router auth_strategy = keystone state_path = /var/lib/neutron allow_overlappi

www.server-world.info

 

 

 

728x90
๋ฐ˜์‘ํ˜•