๋ฆฌ๋
์ค
Clone ์ ๋คํธ์ํฌ ์ถฉ๋ ํด๊ฒฐ๋ฐฉ๋ฒ!!
UTF-404
2024. 3. 31. 17:29
728x90
๐ก Clone ์์ฑํ ๊ฒฝ์ฐ ๋คํธ์ํฌ ์ถฉ๋ ์ค๋ฅ ํด๊ฒฐ๋ฐฉ๋ฒ
VMware Guest๋ฅผ ๋ณต์ ํ๋ฉด ๊ทธ๋๋ก ๋ณต์ ๊ฐ ๋๋ฏ๋ก, ๋คํธ์ํฌ ์ธํฐํ์ด์ค๊ฐ ์ถฉ๋์ด ๋ฐ์(MAC/IP ์ฃผ์ ๊ฒน์นจ)
์ด๋, /etc/sysconfig/network-scripts/ifcfg-eth0 ์ด ํ์ผ์ ์์ ํด๋ IP ๋ณ๊ฒฝ์ด ์๋๋ค.
๐ ๋คํธ์ํฌ ์ถฉ๋ ์ ์์ฑ๋๋ ํ์ผ โก๏ธ /etc/udev/rules.d/70-persistent-net.rules
<ํ์ผ ์์ ์ >
1 # This file was automatically generated by the /lib/udev/write_net_rules
2 # program, run by the persistent-net-generator.rules rules file.
3 #
4 # You can modify it, as long as you keep each rule on a single
5 # line, and change only the value of the NAME= key.
6
7 # PCI device 0x8086:0x100f (e1000)
8 SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:22:f0:87", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
9
10 # PCI device 0x8086:0x100f (e1000)
11 SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:ad:e8:6d", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
- ์ฌ๊ธฐ์ 8๋ฒ ์ค์ ๋ด์ฉ์ด ๊ธฐ์กด ๋ด์ฉ์ด๊ณ ATTR{address} ์ด ๋ถ๋ถ์ด ์ถฉ๋
- 11๋ฒ ์ค์ด ์๋ก ์ถฉ๋์ ํผํ๊ธฐ ์ํด์ ์์ฑ๋ ๋ด์ฉ์ด๋ค.
<ํ์ผ ์์ ํ>
1 # This file was automatically generated by the /lib/udev/write_net_rules
2 # program, run by the persistent-net-generator.rules rules file.
3 #
4 # You can modify it, as long as you keep each rule on a single
5 # line, and change only the value of the NAME= key.
6
7 # PCI device 0x8086:0x100f (e1000)
8 SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:ad:e8:6d", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
- ๊ธฐ์กด์ ์ถฉ๋์ด ๋ฐ์ํ๋ 7, 8๋ฒ ์ค์ ์ ๊ฑฐํ๊ณ , 10, 11๋ฒ ์ค์ ๋จ๊ฒจ ๋๊ณ NAME์ eth0๋ก ๋ณ๊ฒฝ
- ๊ทธ ํ, /etc/sysconfig/network-scripts/ifcfg-eth0์ ์ด์ด์ HWADDR์ ์ฃผ์๋ฅผ ์์ ํ์ผ ATTR{address}๋ก ๋ฎ์ด์ด๋ค.
- ์์ ์ ์๋ฃ ํ, ์ฌ๋ถํ ์ ํด์ผ ์ ๋๋ก ์ ์ฉ๋๋ค!!
728x90