리눅스 네트워크 interface 추가 방법



Vultr VPS 에서 사설IP 추가하는 리눅스 종류별 예제이다.


Vultr 가 아니더라도 응용하면 된다.


▶ CentOS


/etc/sysconfig/network-scripts/ifcfg-eth1

DEVICE=eth1

ONBOOT=yes

BOOTPROTO=static

IPADDR=10.99.0.10

NETMASK=255.255.0.0

MTU=1450


▶ Debian / Ubuntu


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

auto eth1

iface eth1 inet static

address 10.99.0.10

netmask 255.255.0.0

mtu 1450


▶ FreeBSD


/etc/rc.conf 파일에 아래 내용 추가

ifconfig_vtnet1="inet 10.99.0.10 netmask 255.255.255.0 mtu 1450"



블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,