/etc/network/interfaces

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 }}