|
|
发表于 2011-1-31 22:20:56
|
显示全部楼层
就借宝地一用了,为了更进一步弄清这个RG200E-AB的工作原理,我把iptv机顶盒接在iTV口,然后在RG200E的WAN口接一台带tcpdump的上网本:tcpdump -vvv -XX -l -e -i eth1
) t3 X! j: J/ ~0 C
" H8 N+ n; p2 n7 w' P采集到3种包:无vlan tag的pppoe(这个应该是宽带上网的pppoe拨号), vlan tag为46的DHCP请求(无vendor option,应该是那个所谓的管理端口),vlan tag为85的DHCP请求(有vender option,应该是iptv盒子发出来的,好些格式出了vlan tag其它和我昨天直接在iptv eth口采集到的一样)
* S& T4 d7 w7 A5 e22: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]
. j! m: |# U' c3 L1 p2 ~ 0x0000: ffff ffff ffff b441 7a0e 0b00 8863 1109 .......Az....c..
# U$ z5 ]4 T( {0 O2 K) o- I 0x0010: 0000 000c 0101 0000 0103 0004 0048 8008 .............H..% Y8 P4 ]& ^/ O2 T, E( c' m5 c! L1 p
0x0020: 0000 0000 0000 0000 0000 0000 0000 0000 ................
' S p- R( B. G 0x0030: 0000 0000 0000 0000 0000 0000 ............
( ^* s- k/ I) l$ O: K" F: z22: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]* |/ t% x/ a/ k- n, A
0x0000: 0090 1aa2 da2a b441 7a0e 0b00 8863 11a7 .....*.Az....c..
5 T9 H; V9 @2 @7 d7 [% x' r 0x0010: 0221 000c 0103 0004 0048 8008 0101 0000 .!.......H......" s& b' j) Q8 U( L5 u
0x0020: 0000 0000 0000 0000 0000 0000 0000 0000 ................
1 D& V% n6 b8 T5 S# L 0x0030: 0000 0000 0000 0000 0000 0000 ............' ~7 |+ A9 ]% ~# d; w( H4 }0 @
22: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]: f, i6 _# J( f# t, E4 }( h; N
0x0000: ffff ffff ffff b441 7a0e 0b00 8863 1109 .......Az....c..7 w, v& l! V- l
0x0010: 0000 000c 0103 0004 0048 8008 0101 0000 .........H......2 t; P5 ]* a! G, I
0x0020: 0000 0000 0000 0000 0000 0000 0000 0000 ................. b5 k5 G: Q# c. ? \* I4 Q
0x0030: 0000 0000 0000 0000 0000 0000 ............
% ]5 P, t6 ~5 f* w5 ]+ @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), G8 Q7 w) ?% h2 \
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). t' f; x; p' L, ^: U$ B
Client-Ethernet-Address 00:15:eb:6a:a4:b7 (oui Unknown)
X7 o5 ?) t) D6 p4 A5 o Vendor-rfc1048 Extensions) D7 n! z2 ?( I: C7 F7 n
Magic Cookie 0x638253635 d+ F+ Z& T8 U( G2 C8 M
DHCP-Message Option 53, length 1: Discover
* p8 q! e) m. S) \1 s Parameter-Request Option 55, length 8:
0 }) w, g5 [! G& S7 X Subnet-Mask, Default-Gateway, Domain-Name-Server, Hostname2 w* b% f/ }, f; a% {0 [$ ~ J- H
Domain-Name, BR, Router-Discovery, Static-Route9 c6 {0 S6 ^* E
Hostname Option 12, length 32: "ea1001000000004000000015EB6AA4B7"
5 X. O: o) x1 s2 S5 y: O7 h 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"! {+ H2 S, u0 g! H8 s2 D
END Option 255, length 04 F! _$ j1 |, ?
PAD Option 0, length 0, occurs 205
0 g' Q1 J2 T8 j* v( S 0x0000: ffff ffff ffff 0015 eb6a a4b7 8100 0055 .........j.....U
9 j) P8 y! z# k/ Z9 M 0x0010: 0800 4500 0240 44b5 0000 4011 33f9 0000 ..E..@D...@.3.../ x, _. i0 k2 H: q$ r
0x0020: 0000 ffff ffff 0044 0043 022c faa4 0101 .......D.C.,....
+ v6 ]& Q( `& E# q' c+ ^& e$ o 0x0030: 0600 df11 aa19 0000 0000 0000 0000 0000 ................6 x1 A/ D0 b, Q/ f% y0 D
0x0040: 0000 0000 0000 0000 0000 0015 eb6a a4b7 .............j..
0 _: p0 |9 F9 t0 e M: m4 K 0x0050: 0000 0000 0000 0000 0000 0000 0000 0000 ................ L+ h2 G0 U9 `. \
0x0060: 0000 0000 0000 0000 0000 0000 0000 0000 ................
! K) P. {5 U* q% h2 b- o7 | 0x0070: 0000 0000 0000 0000 0000 0000 0000 0000 ................/ j! |0 v2 r/ E, |
0x0080: 0000 0000 0000 0000 0000 0000 0000 0000 ................
5 q6 G7 F; f" Z" k- } 0x0090: 0000 0000 0000 0000 0000 0000 0000 0000 ................- m, B9 K' y G6 Y: M2 G
0x00a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................) @6 R+ {: I4 w) w0 x
0x00b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
5 w& ], f* b- S0 m 0x00c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
( d. W6 _$ e( q! Y# C1 e% X/ ?4 K. J 0x00d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................6 g7 J+ z* O& O( U
0x00e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................/ L1 v/ N; ~/ Y* H8 a
0x00f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................, t8 k" F6 i, ?9 ]: W
0x0100: 0000 0000 0000 0000 0000 0000 0000 0000 ................: \: e$ i% K8 O# q2 ^! _
0x0110: 0000 0000 0000 0000 0000 6382 5363 3501 ..........c.Sc5.
/ t3 s4 e6 d# Y6 E3 e& C" o2 e" m 0x0120: 0137 0801 0306 0c0f 1c1f 210c 2065 6131 .7........!..ea1
3 t' |2 N3 T" x* a5 {. C- u+ ?* j n2 k- I0 z 0x0130: 3030 3130 3030 3030 3030 3034 3030 3030 0010000000040000# d* L& w( \. {& }( F1 \
0x0140: 3030 3031 3545 4236 4141 3442 373c 3500 00015EB6AA4B7<5.
7 g) S4 @, T+ V( ~( b$ s* n% J% h 0x0150: 001f 3101 2521 f821 d90c 003c b544 0000 ..1.%!.!...<.D..2 _. t: F3 p6 F" c, Z2 X
0x0160: 0000 0000 d9f8 f64a fbf0 10d3 2089 07fc .......J........
5 C6 \4 A% ]( f- h1 B |4 V 0x0170: 8ad2 57db ecbe 3fbb e7c0 1dea 0f99 a701 ..W...?........." _2 ^' f8 S( d" y1 s' f) z/ v
0x0180: c09f 7362 ff00 0000 0000 0000 0000 0000 ..sb............
: K! q; X) a* [9 r; W 0x0190: 0000 0000 0000 0000 0000 0000 0000 0000 ................) V L: u7 N1 r- i
0x01a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................ a4 p4 g6 B, a0 i: u; I. s, w5 j
0x01b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................' }5 P* K2 n9 _2 R$ M9 E
0x01c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
9 e; V: {1 U, \% V* o* m 0x01d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
" a' P6 U& u) i 0x01e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................2 V; g5 f* R: D& a' s0 I
0x01f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................+ L2 [9 [5 N. N4 v; V3 A
0x0200: 0000 0000 0000 0000 0000 0000 0000 0000 ................ z y+ C _+ ^$ J; O. X, d
0x0210: 0000 0000 0000 0000 0000 0000 0000 0000 ................
+ T( s* ~) ], h! z+ Z- w8 x4 N/ A 0x0220: 0000 0000 0000 0000 0000 0000 0000 0000 ................
: A, ~* {) y q/ c/ h 0x0230: 0000 0000 0000 0000 0000 0000 0000 0000 ................
2 Y: c3 R" s; b3 l6 P/ y4 Q 0x0240: 0000 0000 0000 0000 0000 0000 0000 0000 ................5 m1 I& i2 I: Y9 W/ A4 d+ b
0x0250: 0000 ..( x- D% S, }# `; @6 f% H
22: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]
% @6 G/ y# T2 F- d- H( B 0x0000: ffff ffff ffff b441 7a0e 0b00 8863 1109 .......Az....c..1 k5 P ]4 x P, k R. M5 y. q
0x0010: 0000 000c 0101 0000 0103 0004 0048 8008 .............H..
/ H2 ?$ _* O8 G- e9 v( q0 N5 f 0x0020: 0000 0000 0000 0000 0000 0000 0000 0000 ................
! ]4 l( y$ z+ c1 V! Y 0x0030: 0000 0000 0000 0000 0000 0000 ............
) x9 w8 C$ o, O/ y0 s r22: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)
) d% f- s% {9 B: ]& y+ F 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), [: t' {7 ?* Q) I p# V. s
Client-Ethernet-Address b4:41:7a:0e:0b:02 (oui Unknown)
( Q0 O# a5 j3 G Vendor-rfc1048 Extensions
& r: S& O1 z4 D# f( ^ Magic Cookie 0x638253638 p; p2 [# I/ B% y2 H; g' p$ U
DHCP-Message Option 53, length 1: Discover9 r+ a2 ~; B: a& b+ P( v! t3 V. k
Parameter-Request Option 55, length 6:
6 h( _* z9 [7 N r Subnet-Mask, Default-Gateway, Domain-Name-Server, Hostname
7 a0 } R, m, c Domain-Name, BR. ~, e! ?7 A$ i" @3 L2 [3 J. O) c
END Option 255, length 0
1 B0 D' b0 Z/ w 0x0000: ffff ffff ffff b441 7a0e 0b02 8100 002e .......Az........ `8 r# M& A, R% x2 |1 n) p' \
0x0010: 0800 4500 0118 0000 0000 4011 79d6 0000 ..E.......@.y...$ S+ ~& S; t7 s3 j( v5 M
0x0020: 0000 ffff ffff 0044 0043 0104 79b4 0101 .......D.C..y...
' u* q& K7 i2 s% j8 s# `7 m7 M 0x0030: 0600 12a0 1185 0000 0000 0000 0000 0000 ................
3 Z9 V t# W+ A" w# h- P8 @7 k 0x0040: 0000 0000 0000 0000 0000 b441 7a0e 0b02 ...........Az...
8 g' }3 W; j/ q 0x0050: 0000 0000 0000 0000 0000 0000 0000 0000 ................
$ E: | y* o+ U 0x0060: 0000 0000 0000 0000 0000 0000 0000 0000 ................
& s) g; g2 s! Y; R% m3 N* O/ X$ m 0x0070: 0000 0000 0000 0000 0000 0000 0000 0000 ................
! D9 r; I5 N0 ~* G, R. p" u8 u( n 0x0080: 0000 0000 0000 0000 0000 0000 0000 0000 ................% D+ m% t! b- k1 A @
0x0090: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0 c( J6 J9 j$ a 0x00a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
, W* A" l3 A) z/ w" O 0x00b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................; Z0 L& q$ f8 H+ V2 ~7 m
0x00c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
4 r& ]9 w* e9 N+ B" P6 c 0x00d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................# b; L! c5 R7 z! U
0x00e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
# O* J6 g! L5 B- m 0x00f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
( Y8 C! K% p; @( x* N7 U3 ^; z 0x0100: 0000 0000 0000 0000 0000 0000 0000 0000 ................4 ^( f- p# \% c' Z. a/ A
0x0110: 0000 0000 0000 0000 0000 6382 5363 3501 ..........c.Sc5.
C( O: F& S$ _6 V) M 0x0120: 0137 0601 0306 0c0f 1cff .7........( w' K! \6 l& w- w: a* y
|
|