[Cubieboard2] USB Ethernet 사용해 네트웍 연결

큐비보드의 onBoard Ethernet이 죽었다..

왜 죽었는지 정확한 원인을 모르겠지만, LAN 케이블을 꽂아도 불이 안들어오고,

부팅시 eth0가 올라오지 않는다..ㅠㅠ

그래서 결국 USB Ethernet을 구매했다.(WIFI를 살까 하다가 비싸서 Pass..)

먼저 USB Ethernet을 꽂고 인식하는지 확인..

root@cubieboard2:/# lsusb
Bus 002 Device 002: ID 0424:2517 Standard Microsystems Corp. Hub
Bus 004 Device 002: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 003: ID 22b8:0938 Motorola PCS
Bus 002 Device 004: ID 1241:0003 Belkin
Bus 004 Device 003: ID 0b95:772a ASIX Electronics Corp. AX88772A Fast Ethernet
Bus 004 Device 004: ID 152d:2352 JMicron Technology Corp. / JMicron USA Technology Corp. ATA/ATAPI Bridge

잘 인식되었다ㅋ

그리고 ifconfig -a 으로 전체 인터페이스를 확인한다.

root@cubieboard2:/# ifconfig -a
eth0      Link encap:Ethernet  HWaddr aa:2d:xx:xx:xx:xx
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:87 Base address:0x4000

eth2      Link encap:Ethernet  HWaddr 00:0e:xx:xx:xx:xx
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:82 errors:0 dropped:0 overruns:0 frame:0
          TX packets:82 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:8064 (8.0 KB)  TX bytes:8064 (8.0 KB)

tunl0     Link encap:IPIP Tunnel  HWaddr
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

eth0 는 onBoard의 죽은 인터페이스이고 eth1은 어디 가고 없다??
eth2 가 usb Ethernet으로 보이니 up 해준다.

root@cubieboard2:/# ifconfig eth2 up

그럼 이제 ip를 dhcp으로 받아오자

root@cubieboard2:/# dhclient eth2

IP가 잘 받아와졌는지 확인해보자.

root@cubieboard2:/# ifconfig
eth2      Link encap:Ethernet  HWaddr 00:0e:xx:xx:xx:xx
          inet addr:192.168.0.8  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::20e:c6ff:fef0:46c3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:283 errors:0 dropped:1 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:21154 (21.1 KB)  TX bytes:30266 (30.2 KB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

하지만 이렇게만 해두면 부팅때마다 설정해야 하므로 부팅시 올라오도록 설정한다.

root@cubieboard2:/# vi /etc/network/interfaces
...
auto eth2
#iface eth2 inet dhcp  : dhcp으로 하려면
iface eth2 inet static
        address 192.168.0.8
        netmask 255.255.255.0
        gateway 192.168.0.1
        dns-nameservers 8.8.8.8

고정 IP으로 할당했다.

재부팅 해서 확인해보면 잘 받아 오는 것을 볼수 있다.

굿~

This entry was posted in Micro-PC and tagged , , . Bookmark the permalink.

댓글 남기기