|
发表于 2011-1-31 22:20:56
|
显示全部楼层
就借宝地一用了,为了更进一步弄清这个RG200E-AB的工作原理,我把iptv机顶盒接在iTV口,然后在RG200E的WAN口接一台带tcpdump的上网本:tcpdump -vvv -XX -l -e -i eth15 g8 O* |. i8 l7 `/ M
8 X5 ]/ ^ [, A4 O( f
采集到3种包:无vlan tag的pppoe(这个应该是宽带上网的pppoe拨号), vlan tag为46的DHCP请求(无vendor option,应该是那个所谓的管理端口),vlan tag为85的DHCP请求(有vender option,应该是iptv盒子发出来的,好些格式出了vlan tag其它和我昨天直接在iptv eth口采集到的一样)4 t/ t1 z7 O7 H6 ~5 s
22:05:47.791669 b4:41:7a:0e:0b:00 (oui Unknown) > Broadcast, ethertype PPPoE D (0x8863), length 60: PPPoE PADI [Service-Name] [Host-Uniq 0x00488008]8 {# z& S& F0 e: y" W3 V
0x0000: ffff ffff ffff b441 7a0e 0b00 8863 1109 .......Az....c..$ b1 |7 J- ~" u0 y$ S
0x0010: 0000 000c 0101 0000 0103 0004 0048 8008 .............H..
5 t& \8 Q7 P/ [5 T3 q+ b 0x0020: 0000 0000 0000 0000 0000 0000 0000 0000 ................4 n. v4 e' u0 j
0x0030: 0000 0000 0000 0000 0000 0000 ............
3 N( S* b0 z% x5 s. a7 u+ a* O22:05:47.791865 b4:41:7a:0e:0b:00 (oui Unknown) > 00:90:1a:a2:da:2a (oui Unknown), ethertype PPPoE D (0x8863), length 60: PPPoE PADT [ses 0x221] [Host-Uniq 0x00488008] [Service-Name]" P* G" s4 |. b$ `% J" N
0x0000: 0090 1aa2 da2a b441 7a0e 0b00 8863 11a7 .....*.Az....c../ d9 R! ^5 L. [2 G0 r
0x0010: 0221 000c 0103 0004 0048 8008 0101 0000 .!.......H......; ?# N8 r" F- o8 E' J
0x0020: 0000 0000 0000 0000 0000 0000 0000 0000 ................
2 J- O7 {& a1 q8 B+ |: a 0x0030: 0000 0000 0000 0000 0000 0000 ............
7 z$ c; u+ O% l22:05:50.795926 b4:41:7a:0e:0b:00 (oui Unknown) > Broadcast, ethertype PPPoE D (0x8863), length 60: PPPoE PADI [Host-Uniq 0x00488008] [Service-Name]
' s5 b6 D2 [6 B2 v* m 0x0000: ffff ffff ffff b441 7a0e 0b00 8863 1109 .......Az....c..
) r; Z. z' y$ N 0x0010: 0000 000c 0103 0004 0048 8008 0101 0000 .........H......' E6 D' K. N" U% C& @
0x0020: 0000 0000 0000 0000 0000 0000 0000 0000 ................
( [, |- S1 W9 o" ?6 Z {- s! N 0x0030: 0000 0000 0000 0000 0000 0000 ............
K' d! G* e# M5 W; ]' _22:05:52.380082 00:15:eb:6a:a4:b7 (oui Unknown) > Broadcast, ethertype 802.1Q (0x8100), length 594: vlan 85, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 17589, offset 0, flags [none], proto UDP (17), length 576)1 {$ n& j" q2 E/ z, s3 O! y
0.0.0.0.bootpc > 255.255.255.255.bootps: [udp sum ok] BOOTP/DHCP, Request from 00:15:eb:6a:a4:b7 (oui Unknown), length 548, xid 0xdf11aa19, Flags [none] (0x0000); S# v" s* f# w% r7 j
Client-Ethernet-Address 00:15:eb:6a:a4:b7 (oui Unknown)
5 O# i& V; `8 ]% s1 U0 B k Vendor-rfc1048 Extensions# h' k5 v( V- P9 \
Magic Cookie 0x63825363, v. p5 w" ~" h3 H
DHCP-Message Option 53, length 1: Discover. M( s. f. _+ L' F/ g, h
Parameter-Request Option 55, length 8:
8 Z8 M) j, o1 c C/ X; N: I Subnet-Mask, Default-Gateway, Domain-Name-Server, Hostname b. j0 k, c+ I
Domain-Name, BR, Router-Discovery, Static-Route
3 _ O4 f' c/ c- n; v; W Hostname Option 12, length 32: "ea1001000000004000000015EB6AA4B7": u: r) O9 z2 c% \! ~8 X% o
Vendor-Class Option 60, length 53: "^@^@^_1^A%!M-x!M-Y^L^@<M-5D^@^@^@^@^@^@M-YM-xM-vJM-{M-p^PM-S M-^I^GM-|M-^JM-RWM-[M-lM->?M-;M-gM-@^]M-j^OM-^YM-'^AM-@M-^_sb"
( k' }* W* U" h% B END Option 255, length 0
9 p ?8 Q4 z& n& v7 x PAD Option 0, length 0, occurs 205. R/ K$ P0 H ?" s1 `: ~4 {
0x0000: ffff ffff ffff 0015 eb6a a4b7 8100 0055 .........j.....U
5 A3 Y. G g8 H7 @9 l 0x0010: 0800 4500 0240 44b5 0000 4011 33f9 0000 ..E..@D...@.3...
" z8 v. |7 L! i1 t+ D 0x0020: 0000 ffff ffff 0044 0043 022c faa4 0101 .......D.C.,....
; g+ s5 y9 \3 E3 J2 ^! o% A. E 0x0030: 0600 df11 aa19 0000 0000 0000 0000 0000 ................$ n# J% O- ]; M% X8 m3 s
0x0040: 0000 0000 0000 0000 0000 0015 eb6a a4b7 .............j..: Z- C3 C9 |. y5 u( x
0x0050: 0000 0000 0000 0000 0000 0000 0000 0000 ................
5 p% Z: I. f7 I% c; v8 D& x 0x0060: 0000 0000 0000 0000 0000 0000 0000 0000 ................
3 `+ d% p9 W$ M, U C& q( X 0x0070: 0000 0000 0000 0000 0000 0000 0000 0000 ................
: @# F7 m) o' s0 O3 e 0x0080: 0000 0000 0000 0000 0000 0000 0000 0000 ................1 `3 |! T* d! K3 [( V+ W
0x0090: 0000 0000 0000 0000 0000 0000 0000 0000 ................
4 B5 v7 B% n9 K6 W% m+ M k, h 0x00a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
; @' U9 y, ^) }2 o; a 0x00b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................" [: g2 m9 B& ?; z" }, }
0x00c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................. Y: P& \8 \( t( z; A/ \' K
0x00d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................0 _9 W( ~: U) @/ F6 ^1 x
0x00e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................, `% D3 z& f4 `) t
0x00f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................/ v8 N# e j# t! q# z
0x0100: 0000 0000 0000 0000 0000 0000 0000 0000 ................
# o# L0 w7 P l7 Y9 Y" d( \ 0x0110: 0000 0000 0000 0000 0000 6382 5363 3501 ..........c.Sc5.' t3 } P f% e; B8 J8 E5 }( p
0x0120: 0137 0801 0306 0c0f 1c1f 210c 2065 6131 .7........!..ea15 [, S& d% Z' t. E, l( {% i
0x0130: 3030 3130 3030 3030 3030 3034 3030 3030 0010000000040000
' Y- F$ G' p$ K" H/ ?) i 0x0140: 3030 3031 3545 4236 4141 3442 373c 3500 00015EB6AA4B7<5. h0 w' {' r" @8 n( W& `
0x0150: 001f 3101 2521 f821 d90c 003c b544 0000 ..1.%!.!...<.D..
5 R5 r0 Y& n4 H/ k7 a1 A* T9 O3 e 0x0160: 0000 0000 d9f8 f64a fbf0 10d3 2089 07fc .......J........
D6 p' a, ~% p. J 0x0170: 8ad2 57db ecbe 3fbb e7c0 1dea 0f99 a701 ..W...?.......... H- A. r! a% x6 ?
0x0180: c09f 7362 ff00 0000 0000 0000 0000 0000 ..sb............
2 l/ S9 I" z3 p# o 0x0190: 0000 0000 0000 0000 0000 0000 0000 0000 ................
) s B- O, ~& n& W1 n S" |4 C 0x01a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................% Z% {# v' ~1 }2 w8 x* A3 q1 t
0x01b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................: S. U3 s1 c% ~. f6 ]0 k# ]
0x01c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................% j: W0 G7 j& z
0x01d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0 f3 G7 _; v# l7 Q' Y0 s' } 0x01e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
* B2 B' C* i8 V- o0 _8 n0 a8 g8 T5 T8 u y 0x01f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
9 z( {& t# P* k+ u4 R7 [ 0x0200: 0000 0000 0000 0000 0000 0000 0000 0000 ................
, w1 m4 Q# O1 k 0x0210: 0000 0000 0000 0000 0000 0000 0000 0000 ................$ d& G6 J$ v7 O6 l. e# k2 L# c
0x0220: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0 V+ j# L+ h: X1 X 0x0230: 0000 0000 0000 0000 0000 0000 0000 0000 ................2 ], @$ i7 @9 b9 v. i2 o3 z; t
0x0240: 0000 0000 0000 0000 0000 0000 0000 0000 ................
/ u" } }4 K& _' d# n 0x0250: 0000 ..
; @( w; i s! E+ k9 g4 P9 l" B$ U22:05:52.803210 b4:41:7a:0e:0b:00 (oui Unknown) > Broadcast, ethertype PPPoE D (0x8863), length 60: PPPoE PADI [Service-Name] [Host-Uniq 0x00488008]' P6 R8 b7 Q7 }2 S6 V" H: B, I8 D* X+ `
0x0000: ffff ffff ffff b441 7a0e 0b00 8863 1109 .......Az....c..
8 ^ N! H8 s3 c4 r$ V4 l 0x0010: 0000 000c 0101 0000 0103 0004 0048 8008 .............H..
8 K) U: K' v# _. e: I& W 0x0020: 0000 0000 0000 0000 0000 0000 0000 0000 ................
* [6 Q: W4 f* k3 b 0x0030: 0000 0000 0000 0000 0000 0000 ............& T. x" r/ H5 a' u% n
22:05:54.385241 b4:41:7a:0e:0b:02 (oui Unknown) > Broadcast, ethertype 802.1Q (0x8100), length 298: vlan 46, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 0, offset 0, flags [none], proto UDP (17), length 280)
N2 f2 R9 C% h) F# E 0.0.0.0.bootpc > 255.255.255.255.bootps: [udp sum ok] BOOTP/DHCP, Request from b4:41:7a:0e:0b:02 (oui Unknown), length 252, xid 0x12a01185, Flags [none] (0x0000)
* @ R9 y6 _* M3 o6 I! F( \ Client-Ethernet-Address b4:41:7a:0e:0b:02 (oui Unknown): Q4 r) q3 s& j/ F7 Y, y
Vendor-rfc1048 Extensions7 T V8 x7 G! @3 v+ H3 C
Magic Cookie 0x63825363
# x" B( m4 m+ |1 j( ~9 [! B DHCP-Message Option 53, length 1: Discover
( K3 N5 o/ @8 @ y- } Parameter-Request Option 55, length 6:
, j$ x/ P/ e7 b7 e, } Subnet-Mask, Default-Gateway, Domain-Name-Server, Hostname" s v# g! D5 w! q7 @
Domain-Name, BR0 U9 w$ {; c' _' F7 _% m* e4 f
END Option 255, length 0
% A/ v! g$ G% V/ x2 k 0x0000: ffff ffff ffff b441 7a0e 0b02 8100 002e .......Az.......
1 N* O" ]' s! }' W 0x0010: 0800 4500 0118 0000 0000 4011 79d6 0000 ..E.......@.y...
! x# p- ~+ T0 w5 Q0 @ 0x0020: 0000 ffff ffff 0044 0043 0104 79b4 0101 .......D.C..y...
& N; D, Y' O! g 0x0030: 0600 12a0 1185 0000 0000 0000 0000 0000 ................
& s$ V9 o+ g2 c `9 \- x 0x0040: 0000 0000 0000 0000 0000 b441 7a0e 0b02 ...........Az...
: Y% N& e! s0 F! H: I 0x0050: 0000 0000 0000 0000 0000 0000 0000 0000 ................$ ^, L2 @) A3 s4 D5 I, x
0x0060: 0000 0000 0000 0000 0000 0000 0000 0000 ................
) z* I/ f" H/ N( V 0x0070: 0000 0000 0000 0000 0000 0000 0000 0000 ................' [7 W0 n, _* Z: B& J4 l" z
0x0080: 0000 0000 0000 0000 0000 0000 0000 0000 ................: g5 @8 ^) a% Z8 [9 b/ h
0x0090: 0000 0000 0000 0000 0000 0000 0000 0000 ................
2 e4 O: d/ G" D6 ? 0x00a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
* T' e$ ]7 t7 ^" t) G1 t. }* T 0x00b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
$ |! f" _: c2 g; V 0x00c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
; h3 j% |$ z5 k4 Y7 n 0x00d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
+ ~2 X% U* a! V0 h0 T 0x00e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
/ j; g) F: T. X# y* a$ M0 Y 0x00f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
, E( C) j% T3 l2 H1 Y( i 0x0100: 0000 0000 0000 0000 0000 0000 0000 0000 ................3 u" i* V& K8 w1 \, V
0x0110: 0000 0000 0000 0000 0000 6382 5363 3501 ..........c.Sc5.) f+ Q* u. V) |. r
0x0120: 0137 0601 0306 0c0f 1cff .7........ i2 w& y6 Z7 T" m! y/ r
|
|