Beaglebone Black System NAM S B MDLAB Electronic
Beaglebone Black System NAM S. B MDLAB. Electronic Engineering, KNU CH 7. 데비안에서 고정 ip를 설 정하는 방법 1
Beaglebone Black System [고정 IP 사용시] 1. 중지 sudo ifdown eth 0 2. 네트워크 인터페이스 설정 sudo vi /etc/network/interfaces -----------------------auto lo iface lo inet loopback auto eth 0 iface eth 0 inet static address xxx netmask 255. 0 network xxx. 0 broadcast xxx. 255 gateway xxx. 254 dns-nameservers 8. 8. 4. 4 NAM S. B MDLAB. Electronic Engineering, KNU 3. 네임 서버 설정 $ sudo vi /etc/resolv. conf nameserver 8. 8. 4. 4 4. 동작 sudo ifup eth 0 [유동 IP 사용시] sudo vi /etc/network/interfaces -----------------------auto lo iface lo inet loopback allow-hotplug eth 0 iface eth 0 inet dhcp 2
Beaglebone Black System NAM S. B MDLAB. Electronic Engineering, KNU [하나의 랜카드에 2개이상의 IP설정] (가상이더넷 설정) sudo vi /etc/network/interfaces ------------------------------auto lo allow-hotplug eth 0 iface lo inet loopback # The primary network interface auto eth 0 iface eth 0 inet static address 165. 133. 32 netmask 255. 0 network 165. 133. 32. 0 broatcast 165. 133. 32. 255 gateway 165. 133. 32. 254 dns-nameservers 8. 8. 4. 4 auto eth 0: 0 iface eth 0: 0 inet static address 192. 168. 1. 32 netmask 255. 0 [참고] sudo apt-get install ifplugd sudo dpkg-reconfigure ifplugd 3
Beaglebone Black System NAM S. B MDLAB. Electronic Engineering, KNU 4
Beaglebone Black System NAM S. B MDLAB. Electronic Engineering, KNU $vim /etc/network/interfaces auto eth 0 ^iface eth 0 inet static ^^^^address xxx ^^^^netmask 255. 0 ^^^^network xxx. 0 ^^^^broadcast xxx. 255 ^^^^gateway xxx. 254 ^^^^dns-nameservers 8. 8. 4. 4 이렇게 띄어쓰기를 하면 해결된다. Reboot 후, 셋팅이 제대로 먹히면 ifdown ifup 모두 잘된다. 또, ip도 원하 는 ip로 변경된다. 5
$ifconfig Beaglebone Black System $ifconfig NAM S. B MDLAB. Electronic Engineering, KNU 6
- Slides: 6