|
硬件上:LAN8720,50M有源晶振,晶振上的时钟输出到CVIDEO_DIN1/RMII_MHZ_50_CLK引脚。
2 b/ l; J* B$ w7 T1 V
( A. `2 N* p& C要设置为静态的IP。
' O+ h! D7 U/ T/etc/network/ interfaces 中的内容:5 ^' y- v. g+ @; J2 u
, `' k* l; T& P2 ^5 j1 ~# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)& a4 s7 Q2 c; j f2 S) l$ B
3 j: \: b) z. L7 f+ X4 Z
# The loopback interface
2 s) q8 l. m% }4 v; X* p( Nauto lo
3 |3 D4 f) j- o5 J5 e5 @iface lo inet loopback, A; M4 H/ C! n$ a
- ?' ~- J# C! I; g' x3 y# Wireless interfaces
( i0 i! J+ s( n& s* |; {, {iface wlan0 inet dhcp
' k: z" b& B& m( { wireless_mode managed* y: X8 L" M* S3 S1 }% S/ G
wireless_essid any
# K: U; T Q! i% h* T1 k wpa-driver wext
+ O+ d$ m7 D3 R" U1 ? wpa-conf /etc/wpa_supplicant.conf
5 _5 s" q5 r" G' x% d! F
; Q x' `' {5 |2 [iface tiwlan0 inet dhcp
2 r9 Y: F( L* j' \, e- o wireless_mode managed
, F& X' u5 Q, ~& d* p wireless_essid any
8 a' N4 `2 _" G* x' j" I
* k- r, Y7 K) y5 y- ?iface atml0 inet dhcp( n) b: |$ \. d" o* I
% A8 {# X- E4 j/ K
# Wired or wireless interfaces
; [3 K! a0 i& G; n2 Qauto eth08 Q; \1 p# U9 n0 m- k) ~5 P7 {
#iface eth0 inet dhcp
- A; ]1 O7 u8 ` e' |! ^iface eth0 inet static; B$ x4 f& C) p
address 192.168.11.170
4 C; Y7 a" G1 snetmask 255.255.255.0
9 m9 ^6 I+ \* Z/ M7 t( Ngateway 192.168.11.1! x" c4 @! K# G; M
$ N4 N8 d0 H( P# ~6 N7 X5 p7 I. V: @0 [# m- C7 J6 E8 l
# pre-up /bin/grep -v -e "ip=[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+" /proc/cmdline > /dev/null
5 Q. x# N* J5 R2 T4 r' c6 g6 n! _' H: T, l# Z% q* s+ h
#iface eth1 inet dhcp! v. E: m+ b& h
0 |( m; _; R" R1 M8 S# Ethernet/RNDIS gadget (g_ether)3 L; \. Y$ F& }$ h X
# ... or on host side, usbnet and random hwaddr- W1 n& S9 l% Y2 o' b
iface usb0 inet dhcp8 W, S4 L! I( k6 G$ T- f$ H
' }4 @2 Y3 b Q0 {# Bluetooth networking
+ f- ^' y! I4 X$ f( g: y7 @& {iface bnep0 inet dhcp( W6 S; }- P' Q5 k* i" E: [0 Y. O W
}6 }, S4 k7 z+ P3 S% [% y4 y. E* Q# q; R
在 /etc/resolv.conf 配置了DNS,但是重启后,文件就又是空的了。
9 I& U- r3 D/ \3 m0 h# y1 w8 [& C4 Y
) J: q( t2 |, k- F#ifconfig后的结果
, A K& m# ?8 G7 E1 i4 `eth0 Link encap:Ethernet HWaddr 12:00:a0:35:3b:89
+ Z7 {' W# J `. P; a( b inet addr:192.168.11.170 Bcast:192.168.11.255 Mask:255.255.255.0+ u; Z1 z; x% t6 ^7 f. `
UP BROADCAST MULTICAST MTU:1500 Metric:13 p3 G6 C0 j+ y9 `; P
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
2 `) H1 M& I5 J& `% T: @0 g TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
+ Q" M0 F- J" a. Q collisions:0 txqueuelen:1000 Y. y8 I9 I8 M+ L8 H7 L+ E) g
RX bytes:0 (0.0 B) TX bytes:180 (180.0 B)
$ Q+ M9 g$ W6 b' a: x0 [ Interrupt:33
& |, x( B0 M0 ~4 |
* x( e/ Z u' Q1 p& m; Klo Link encap ocal Loopback
) g5 ~4 H' p0 p; U( K: o inet addr:127.0.0.1 Mask:255.0.0.0. _% q2 K* ?2 Q$ G6 P) G
UP LOOPBACK RUNNING MTU:16436 Metric:1* E r% U" N6 M% @/ |2 k
RX packets:165 errors:0 dropped:0 overruns:0 frame:0
2 G D: q% d( Q) }7 S TX packets:165 errors:0 dropped:0 overruns:0 carrier:0( U: D" l r( m0 H1 p* J) c
collisions:0 txqueuelen:0 9 W& Y* F& A+ z$ X0 t/ ~
RX bytes:246293 (240.5 KiB) TX bytes:246293 (240.5 KiB)
. x) h) @+ M0 w" }4 I! O- H( z2 i6 l p$ N' s% L
4 M' F! p4 o4 h9 H+ V
6 ~: p D: T6 \* e2 h1 d- O /etc/init.d/networking restart后会死机
/ c$ Z% {; x- E$ d+ B
: [0 V6 E4 Q5 @2 u8 u* h1 ^7 I |
|