제목 관련 질문을 하려고 합니다.
제 시스템은 [b:1fyha61o]BeagleBone Black[/b:1fyha61o]에 [b:1fyha61o]ubuntu 13.04 (GNU/Linux 3.8.13-bone28 armv71)[/b:1fyha61o]을 [b:1fyha61o]eMMC[/b:1fyha61o]에 설치하였습니다.
설치 이미지는 ‘[b:1fyha61o]BBB-eMMC-flasher-ubuntu-13.04-2013-10-08.img[/b:1fyha61o]’ 입니다.
우선은 우분투 최소버전이다 보니, GUI를 사용할 수 없어 콘솔창에서 고정 IP를 아래와 같이 설정하였습니다.
[b:1fyha61o]$ sudo vi /etc/network/interfaces[/b:1fyha61o]
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
[b:1fyha61o]auto lo
iface lo inet loopback[/b:1fyha61o]
The primary network interface
[b:1fyha61o]auto eth0
iface eth0 inet static[/b:1fyha61o]
Example to keep MAC address between reboots
#hwaddress ether DE:AD:BE:EF:CA:FE
WiFi Example
#auto wlan0
#iface wlan0 inet dhcp
wpa-ssid "essid"
wpa-psk "password"
Ethernet/RNDIS gadget (g_ether)
… or host side, usbnet and random hwaddr
Note on some boards, usb0 is automaticly setup with an init script
in that case, to completely disable remove file [run_boot-script] from the boot partition
iface usb0 int static
[b:1fyha61o] address 161.122.xxx.xxx —> 고정 IP
netmask 255.255.255.0 —> 서브넷 마스크
#netwrok 192.168.7.0
gateway 161.122.xxx.xxx —> 게이트 웨이
dns-nameservers 161.122.xxx.xxx 134.75.xxx.xxx 8.8.8.8 ---> DNS 서버 주소[/b:1fyha61o]
그리고 네트워크를 아래와 같이 재시작 하였습니다.
[b:1fyha61o]$ sudo /etc/init.d/networking restart[/b:1fyha61o]
이렇게 재시작하니 resolv.conf 파일이 아래와 같이 수정되었습니다.
[b:1fyha61o]$ vi /etc/resolv.conf[/b:1fyha61o]
Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
DO NOT EDIT THIS FILE BY HAND – YOUR CHANGES WILL BE OVERWRITTEN
nameserver 161.122.xxx.xxx
nameserver 134.75.xxx.xxx
domain localdomain
search localdomain
nameserver 192.168.1.1
이렇게 상기와 같이 설정하여, IP ping
[b:1fyha61o]$ping 161.122.xxx.xxx[/b:1fyha61o]
그리고 게이트웨이 ping
[b:1fyha61o]$ping 161.122.xxx.xxx[/b:1fyha61o]
그리고 DNS 서버 ping
[b:1fyha61o]$ping 161.122.xxx.xxx[/b:1fyha61o]
까지는 확인이 되었는데, 구글 ping을 확인하니 접속이 안됩니다.
[b:1fyha61o]$ping google.co.kr [/b:1fyha61o]
[b:1fyha61o]ping google.co.kr (173.194.127.119) 56(84) bytes of data.
^C
— google.co.kr ping statistics —
42 packets transmitted, 0 received, 100% paket loss, time 40999ms[/b:1fyha61o]
혹시 제가 어딘가 잘못 설정한 부분이 있는지, 아니면 더 진행해야 할 사항이 있는지 궁금합니다.
아시는 분께서는 답변 부탁드립니다.
추가적으로 [b:1fyha61o]$dmesg | grep eth0[/b:1fyha61o] 로 확인하여 보니
[b:1fyha61o]IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready[/b:1fyha61o] 를 보아 랜모듈이 올라가지 않아
그렇다고 하는 질문/답변을 보았는데, 저의 경우는 플랫폼이 BeagleBone Black이고 최소한의 우분투 사양이
올라가서 그런지 답변 내용이 적용이 되지 않고 있습니다.