1 개요[ | ]
- /etc/network/interfaces
2 예시 1: IP 없음 ( 루프백만 있음 )[ | ]
aconf
Copy
# 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 )[ | ]
aconf
Copy
# 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[ | ]
aconf
Copy
# 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
aconf
Copy
# 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 같이 보기[ | ]
- /etc/networks
- /etc/sysconfig/network-scripts/ifcfg-eth0
- /sbin/resolvconf
- /etc/hosts
- 우분투 IP 설정
- 우분투 기본 게이트웨이 변경
6 참고[ | ]
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.
- 분류 댓글:
- 리눅스 네트워크 (5)
리눅스 hosts 파일 ― 올해대박리눅스 hosts 파일 ― Jmnote리눅스 nc 포트 열기 ― …우분투 절전모드 해제시 와이파이 안되는 문제 ― D4RT우분투 절전모드 해제시 와이파이 안되는 문제 ― Beyondthelimit