[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를 설정이 가능함.

댓글

이 블로그의 인기 게시물

[Linux] 맥북 리눅스에서 fn키 기본 설정 끄기(F1~F12 기본으로 사용하기)

[도서] 잘있어, 생선은 고마웠어.

[LINUX] X Server(리눅스 GUI)가 멈추었을 때 할수 있는 방법