/etc/network/interfaces

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 같이 보기[ | ]

6 참고[ | ]

  • 리눅스 hosts 파일
    hosts 파일 내용을 아래와 같이 같은 이름 test1을 2개 설정한 경우, test1을 호출하면 위에 있는 8.8.8.8로 접속 -> 위 부분에서 8.8.8.8 서버가 통신이 안되면 8.8.4.4 서버로 질의를 해서 dns를 호출하나요?? 올해대박
  • 리눅스 hosts 파일
    hosts 파일(및 DNS)에 그런 기능은 없고, 도메인명을 IP주소로 해석(resolve)해주는 역할만 합니다. 즉, 해당 IP가 접속이 되든 안되든 상관없이, 계속 test1가 8.8.8.8라고 알려줍니다.J Jmnote
  • 리눅스 nc 포트 열기
    중지시키려면 kill -9 27909 ^^
  • 우분투 절전모드 해제시 와이파이 안되는 문제
    driver=iwlwifi 인 인텔 랜카드를 사용중인데 됐다 안됐다 하네요 그래도 아예 안되는것 보다는 나은것 같습니다. D4RT
  • 우분투 절전모드 해제시 와이파이 안되는 문제
    으휴, 컴이 똥컴만 아니면 윈도우 쓸텐데... Beyondthelimit