์ƒˆ์†Œ์‹

์ธ๊ธฐ ๊ฒ€์ƒ‰์–ด

๐Ÿ’ป Linux

CentOS7 , Ubuntu Bridge ์„ค์ •

  • -
๋ฐ˜์‘ํ˜•

Centos7 Bridge Open

๋„คํŠธ์›Œํฌ ์–ด๋Œ‘ํ„ฐ > ๋ธŒ๋ฆฟ์ง€๋กœ ๋ณ€๊ฒฝ # ๊ธฐ์กด์— ์žˆ๋˜ ๋„คํŠธ์›Œํฌ ์–ด๋Œ‘ํ„ฐ ์‚ญ์ œ
# ๋„คํŠธ์›Œํฌ ํ™•์ธ
vim /etc/sysconfig/network-scripts/ifcfg-ens33
IPADDR=192.168.0.41
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
DNS1=8.8.8.8

yum -y install httpd
systemctl restart httpd
systemctl enable httpd

cd /var/www/html/
vim index.html
	> <h1>chaen Third </h1>

systemctl stop firewalld

setenforce 0
systemctl restart network

Ubuntu Bridge Open

๋„คํŠธ์›Œํฌ ์–ด๋Œ‘ํ„ฐ > ๋ธŒ๋ฆฟ์ง€ ์ƒ์„ฑ
apt-get update
apt-get install apache2 # apache2 ์„ค์น˜

# apache2 ์„ค์น˜ ๊ณผ์ • ์ค‘ ๊ณ„์† ์„ค์น˜ํ•˜๊ฒ ๋ƒ๊ณ  ๋ฉ”์‹œ์ง€๊ฐ€ ๋œจ๋ฉด Y๋ฅผ ๋ˆ„๋ฅด๊ณ  ๊ณ„์† ์ง„ํ–‰

servicce apache2 start # apache2 ์„œ๋ฒ„ ์‹œ์ž‘

vim /etc/netplan/01-network-manager-all.yaml # ๋„คํŠธ์›Œํฌ ํŒŒ์ผ ์ˆ˜์ •
	> #Let NetworkManager manage all devices on this system
	network: 
		version: 2
	# renderer: NetworkManager
	renderer: networkd
	ethernets: 
		ens33: 
			dhcp4: false
	bridges: 
		br0: 
			addresses: [192.168.0.41/24]
			gateway4: 192.168.0.1
			nameservers:
				addresses: [8.8.8.8,8.8.4.4]
			dhcp4: true
			interfaces: [ens33]

netplan apply # ๋„คํŠธ์›Œํฌ ์„ค์ • ์ ์šฉ

ifconfig # ๋ธŒ๋ฆฟ์ง€ ipํ™•์ธ, ip๊ฐ€ 192.168.0.41๋กœ ๋ณ€๊ฒฝ๋œ๊ฒƒ ํ™•์ธํ•˜๊ธฐ
cd /var/www/html
ls # htmlํŒŒ์ผ ์•ˆ์— index.htmlํŒŒ์ผ ์žˆ๋‚˜ ํ™•์ธ
rm index.html # ๊ธฐ์กด index.html ํŒŒ์ผ ์‚ญ์ œ

vim index.html # ์ƒˆ๋กœ์šด index.html ํŒŒ์ผ ์ƒ์„ฑ
	> <h1> Chaen Ubuntu </h1>
netplan apply 

<http://192.168.0.41/>
๋ฐ˜์‘ํ˜•

'๐Ÿ’ป Linux' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

CentOS7 HTTPS ๋ณด์•ˆ  (0) 2022.04.20
CentOS7 python,tomcat ์›น ๊ตฌ์ถ•  (0) 2022.04.20
CentOS7 Digest,Basic ์•”ํ˜ธํ™”  (0) 2022.04.20
CentOS7 ์›น ์„œ๋ฒ„ ์„ค์น˜ ๋ฐ ํ™œ์„ฑํ™”  (0) 2022.04.20
CentOS7 RAID  (0) 2022.04.15
Contents

ํฌ์ŠคํŒ… ์ฃผ์†Œ๋ฅผ ๋ณต์‚ฌํ–ˆ์Šต๋‹ˆ๋‹ค

์ด ๊ธ€์ด ๋„์›€์ด ๋˜์—ˆ๋‹ค๋ฉด ๊ณต๊ฐ ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค.