"/etc/network/interfaces"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-==참고 자료== +==참고==))
 
64번째 줄: 64번째 줄:
*[[우분투 기본 게이트웨이 변경]]
*[[우분투 기본 게이트웨이 변경]]


==참고 자료==
==참고==
*http://www.cyberciti.biz/faq/setting-up-an-network-interfaces-file/
*http://www.cyberciti.biz/faq/setting-up-an-network-interfaces-file/
*http://support.arpnetworks.com/kb/vps/example-etcnetworkinterfaces-for-debian-and-ubuntu
*http://support.arpnetworks.com/kb/vps/example-etcnetworkinterfaces-for-debian-and-ubuntu

2017년 6월 26일 (월) 14:40 기준 최신판

1 개요[ | ]

/etc/network/interfaces

2 예시 1: IP 없음 ( 루프백만 있음 )[ | ]

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

3 예시 2: 유동 IP ( DHCP )[ | ]

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo                          
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp

4 예시 3: 고정 IP[ | ]

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo                          
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.0.123
netmask 255.255.255.0
gateway 192.168.0.1
# The loopback network interface
auto lo
	iface lo inet loopback
# The primary network interface
auto eth0
	iface eth0 inet static
	address 135.79.246.80
	netmask 255.255.255.0
	gateway 135.79.246.1
	dns-nameservers 8.8.8.8 8.8.4.4

5 같이 보기[ | ]

6 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}