|
|
硬件上:LAN8720,50M有源晶振,晶振上的时钟输出到CVIDEO_DIN1/RMII_MHZ_50_CLK引脚。
5 j6 d+ r! r6 z" f4 }/ V# M. J0 \
要设置为静态的IP。
* ~1 ?$ l' F$ @( @9 O& R/etc/network/ interfaces 中的内容:- m" `9 S- J! x
6 e% g' ^( y T, a* Z( o! o7 U# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)6 \1 T6 @- w- M/ k2 H
T! F& ^# D: s6 m# The loopback interface
2 ^ N8 i0 L; w& r) c7 k% m5 G" `auto lo
- {7 N2 t$ X9 g- f0 {! u5 hiface lo inet loopback) x, f( X) c2 e" ?
" @8 ?% s, g6 ^7 A6 q% L# Wireless interfaces# ]$ b ]+ E' O' ]) T* N' r
iface wlan0 inet dhcp
; Y+ Q o# K. }0 w# {- G wireless_mode managed
* q2 D# \* @' a! e wireless_essid any
' ?( \2 p* V- A3 ]3 Z9 c. G4 l wpa-driver wext1 t8 D6 R+ H0 {0 a% s J0 L& R
wpa-conf /etc/wpa_supplicant.conf
1 b& f! q9 y! n3 r3 ~
1 B7 P1 `9 d" B. t& m8 O9 g tiface tiwlan0 inet dhcp3 s c( B1 J+ f; s3 p
wireless_mode managed
. D, {7 I- `, y* T0 g! w wireless_essid any2 J0 o V8 G! {
3 w: I, j9 \3 A$ j% ]% {iface atml0 inet dhcp
5 B- \" {1 Y% L; B0 B# Y& V2 p0 T! a( s
# Wired or wireless interfaces
# b& l* c: c) E* c2 J' cauto eth0
- ?6 w- h' q7 a' y6 b' f. K( W1 o#iface eth0 inet dhcp
% l+ U) Z" `. B [iface eth0 inet static
8 W; \ S. X8 h, Yaddress 192.168.11.170
3 y9 T4 N3 k$ C4 }/ X2 nnetmask 255.255.255.0
5 y3 i$ L( B( B' x" T( c% [gateway 192.168.11.1
4 P# ]) X' ^2 H4 u$ O2 I0 _- k4 l% L! ~/ D' O: {8 q, }3 B% f& M
( w/ k- L9 X0 X
# pre-up /bin/grep -v -e "ip=[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+" /proc/cmdline > /dev/null
( V* E4 d" {/ _) b& }" U: @0 l0 _" l. T, h* Y
#iface eth1 inet dhcp
1 L) n3 g8 n5 G" k, |
/ Z% M8 a* N( t2 f" n# Ethernet/RNDIS gadget (g_ether)) s! u8 G7 c( a+ P* e3 b/ X( y
# ... or on host side, usbnet and random hwaddr# i$ S; \( O4 q5 Y) x; D3 b8 r* x
iface usb0 inet dhcp
2 G. V' j1 G8 S2 ], {( |1 q2 w/ K ?5 D2 P
# Bluetooth networking
. q' p! t9 |/ t% H) ?5 V: A4 u! {iface bnep0 inet dhcp
+ D0 b4 c7 `; M- c$ f- n: y6 f6 P- q0 Y" Q% M9 C7 `
5 o, `( Q$ B; p9 V, g
在 /etc/resolv.conf 配置了DNS,但是重启后,文件就又是空的了。
# v/ g2 g9 A3 t* t9 i8 P5 z1 [* a9 Y4 n
#ifconfig后的结果6 f& c' ]+ p: v8 Y; t" W, j: r
eth0 Link encap:Ethernet HWaddr 12:00:a0:35:3b:89 ( a, X& v' S4 Z6 n* s
inet addr:192.168.11.170 Bcast:192.168.11.255 Mask:255.255.255.0
8 ^+ `4 D! u7 P UP BROADCAST MULTICAST MTU:1500 Metric:1
F5 P0 X; _, t' U6 |9 w& [ RX packets:0 errors:0 dropped:0 overruns:0 frame:03 x7 E8 _( V5 Q" z" r
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
7 F" y; @1 T& g! Z6 ~ collisions:0 txqueuelen:1000
7 ^6 P$ g- b5 f: S" m0 G" y0 R9 c RX bytes:0 (0.0 B) TX bytes:180 (180.0 B)
! a6 C, J1 T( k Interrupt:33
- K/ }" \' n3 z1 T- ~! M* i3 ~0 x/ c5 q0 E- P
lo Link encap ocal Loopback
# Y/ P& F7 y* k9 | inet addr:127.0.0.1 Mask:255.0.0.0: [. r8 _. y2 u7 x9 C0 ?
UP LOOPBACK RUNNING MTU:16436 Metric:1
3 }& T4 a4 Q, k2 j' D RX packets:165 errors:0 dropped:0 overruns:0 frame:0
/ c2 i3 V8 y; p: T0 L+ ]) f0 o# ^ TX packets:165 errors:0 dropped:0 overruns:0 carrier:0
) |4 G9 \3 F! V% j5 |" G1 ] collisions:0 txqueuelen:0 ) y0 F% [+ Q' Y! {# L& l+ Z
RX bytes:246293 (240.5 KiB) TX bytes:246293 (240.5 KiB)
9 d" n" |0 i4 N* e- W& C5 c( x. K1 u7 ^( b% K ]9 ` f
; Y3 t2 n5 p- f5 ~3 J q3 w
( Y: J1 `* g. S: _( t /etc/init.d/networking restart后会死机
' k& P F3 t/ _, V# u( A# n( @+ L; g% q
|
|