2020년 6월 15일 월요일

[LINUX] 다중 IP설정

이젠 설명하기 귀찮으니 그냥 핵심만 적겠다.

참조 URL : https://idchowto.com/?p=18397


/etc/network/interfaces  의 파일 열어서

다음과 같이 추가(NIC이름이 enp0s3 라고 가정)


auto enp0s3
iface enp0s3 inet dhcp

auto enp0s3:1
iface enp0s3:1 inet static
address x.x.x.2
netmask 255.255.255.0

auto enp0s3:2
iface enp0s3:2 inet static
address x.x.x.3
netmask 255.255.255.0

이렇게 하면 하나의 네트워크 카드에 dhcp, xxx.2 , xxx.3 이렇게 3개의 IP를 설정이 가능함.

댓글 없음:

댓글 쓰기