본문 바로가기
Linux & UNIX

docker0 브릿지의 MAC주소 고정하는 방법

by fabxoe 2021. 7. 29.

CENTOS

TYPE=Bridge
MACADDR=02:42:52:c5:82:43
BROWSER_ONLY=no
BOOTPROTO=static
IPADDR=172.17.0.1
NETMASK=255.255.0.0
NAME=docker0
DEVICE=docker0
ONBOOT=yes
NM_CONTROLLED=no
STP=off


UBUNTU

/etc/network/interfaces 에 아래내용 추가

auto docker0
iface docker0 inet static
address 172.17.0.1
netmask 255.255.0.0
bridge_ports eth0
bridge_stp off
bridge_fd 0
bridge_maxwait 0
hwaddress ether 02:42:d9:64:0a:3f

댓글