Project

General

Profile

AirMacExpressのPPPoE動作 » History » Version 1

Tsutomu KIMURA, 07/15/2013 12:21 AM

1 1 Tsutomu KIMURA
h1. AirMacExpressのPPPoE動作
2
3
ふつーにISPへの接続する場合は特に気をつけなくていいのだが、今回実験環境でドはまりしたのでメモ。
4
5
ちなみに、
6
7
* PPPoEクライアント: AirMacExpress
8
* PPPoEサーバ: Cisco1841
9
10
「え? Ciscoルータにそんな機能あったか?」と思われた方。あるんです。詳しくは検索してみて下さい。
11
12
h2. 結論
13
14
AirMacExpress(以下AMEと略記)からのPPPoE接続を受けるPPPoEサーバは、PPPoEクライアントであるAMEに対して、 *必ず* DNSサーバの情報を渡してあげないとダメ(DNSサーバの実態があるかどうかは問題ではない。情報として、AMEへ渡してやる事が重要)。さもないと、「DNSサーバ情報をよこせ〜」と *延々問い合わせを投げ続け、IPCPフェイズが終了しないという状態に陥る* 。
15
16
具体的にはこんな感じ。
17
18
<pre>
19
*Aug 11 19:31:12.167: ppp19 PPP: Using AAA Unique Id = 20
20
*Aug 11 19:31:12.171: ppp19 PPP: Authorization required
21
*Aug 11 19:31:12.171: ppp19 PPP: Using vpn set call direction
22
*Aug 11 19:31:12.171: ppp19 PPP: Treating connection as a callin
23
*Aug 11 19:31:12.171: ppp19 PPP: Session handle[8E000013] Session id[19]
24
*Aug 11 19:31:12.179: ppp19 CHAP: O CHALLENGE id 1 len 26 from "c1841"
25
*Aug 11 19:31:12.179: ppp19 CHAP: I RESPONSE id 1 len 28 from "client2"
26
*Aug 11 19:31:12.179: ppp19 PPP: Sent CHAP LOGIN Request
27
*Aug 11 19:31:12.183: ppp19 PPP: Received LOGIN Response PASS
28
*Aug 11 19:31:12.183: ppp19 PPP AUTHOR: Author Data NOT Available
29
*Aug 11 19:31:12.183: ppp19 PPP: Sent LCP AUTHOR Request
30
*Aug 11 19:31:12.183: ppp19 PPP: Sent IPCP AUTHOR Request
31
*Aug 11 19:31:12.183: ppp19 LCP: Received AAA AUTHOR Response PASS
32
*Aug 11 19:31:12.183: ppp19 PPP: Receive Attrs from[author] Keep[LCP] MERGE
33
*Aug 11 19:31:12.183: ppp19 PPP: Keep Attr: Framed-Protocol      1 [PPP]
34
*Aug 11 19:31:12.183: ppp19 PPP: Updated the attr Framed-Protocol in datalist
35
*Aug 11 19:31:12.183: ppp19 PPP: Keep Attr: username             "client2"
36
*Aug 11 19:31:12.183: ppp19 PPP: Updated the attr username in datalist
37
*Aug 11 19:31:12.187: ppp19 IPCP: Received AAA AUTHOR Response PASS
38
*Aug 11 19:31:12.187: ppp19 PPP: Receive Attrs from[author] Keep[LCP+NCPs] MERGE
39
*Aug 11 19:31:12.187: ppp19 PPP: Keep Attr: Framed-Protocol      1 [PPP]
40
*Aug 11 19:31:12.187: ppp19 PPP: Updated the attr Framed-Protocol in datalist
41
*Aug 11 19:31:12.187: ppp19 PPP: Keep Attr: username             "client2"
42
*Aug 11 19:31:12.187: ppp19 PPP: Updated the attr username in datalist
43
*Aug 11 19:31:12.191: ppp19 PPP: Receive Attrs from[SSS] Keep[NCPs] MERGE
44
*Aug 11 19:31:12.191: ppp19 PPP: Skip Attr: Framed-Protocol      1 [PPP]
45
*Aug 11 19:31:12.191: ppp19 PPP: Skip Attr: username             "client2"
46
*Aug 11 19:31:12.203: Vi2.2 LCP AUTHOR: Process LCP Author Data
47
*Aug 11 19:31:12.203: Vi2.2 LCP AUTHOR: Process Attr: Framed-Protocol
48
*Aug 11 19:31:12.203: Vi2.2 LCP AUTHOR: Process Attr: username
49
*Aug 11 19:31:12.203: Vi2.2 LCP AUTHOR: Authorization succeeded
50
*Aug 11 19:31:12.203: Vi2.2 CHAP: O SUCCESS id 1 len 4
51
*Aug 11 19:31:12.203: Vi2.2 IPCP AUTHOR: Start.  Her address 0.0.0.1, we want 0.0.0.0
52
*Aug 11 19:31:12.203: Vi2.2 IPCP AUTHOR: Reject 0.0.0.1, using 0.0.0.0
53
*Aug 11 19:31:12.203: Vi2.2 IPCP AUTHOR: Authorization succeeded
54
*Aug 11 19:31:12.203: Vi2.2 IPCP AUTHOR: Done.  Her address 0.0.0.1, we want 0.0.0.0
55
*Aug 11 19:31:12.203: Vi2.2 IPCP AUTHOR: no author-info for primary dns
56
*Aug 11 19:31:12.203: Vi2.2 IPCP AUTHOR: no author-info for seconday dns
57
*Aug 11 19:31:12.207: Vi2.2 IPCP AUTHOR: no author-info for primary dns
58
*Aug 11 19:31:12.207: Vi2.2 IPCP AUTHOR: no author-info for primary dns
59
*Aug 11 19:31:12.207: Vi2.2 IPCP AUTHOR: no author-info for primary dns
60
*Aug 11 19:31:12.207: Vi2.2 IPCP AUTHOR: no author-info for primary dns
61
*Aug 11 19:31:12.207: Vi2.2 IPCP AUTHOR: no author-info for primary dns
62
*Aug 11 19:31:12.207: Vi2.2 IPCP AUTHOR: no author-info for primary dns
63
*Aug 11 19:31:12.211: Vi2.2 IPCP AUTHOR: no author-info for primary dns
64
*Aug 11 19:31:12.211: Vi2.2 IPCP AUTHOR: no author-info for primary dns
65
*Aug 11 19:31:12.211: Vi2.2 IPCP AUTHOR: no author-info for primary dns
66
*Aug 11 19:31:13.195: Vi2.2 IPCP AUTHOR: Start.  Her address 0.0.0.1, we want 200.200.199.3
67
*Aug 11 19:31:13.195: Vi2.2 IPCP AUTHOR: Reject 0.0.0.1, using 200.200.199.3
68
*Aug 11 19:31:13.195: Vi2.2 IPCP AUTHOR: Authorization succeeded
69
*Aug 11 19:31:13.195: Vi2.2 IPCP AUTHOR: Done.  Her address 0.0.0.1, we want 200.200.199.3
70
*Aug 11 19:31:13.195: Vi2.2 IPCP AUTHOR: no author-info for primary dns
71
*Aug 11 19:31:13.195: Vi2.2 IPCP AUTHOR: no author-info for primary dns
72
*Aug 11 19:31:13.195: Vi2.2 IPCP AUTHOR: no author-info for primary dns
73
*Aug 11 19:31:13.199: Vi2.2 IPCP AUTHOR: no author-info for primary dns
74
*Aug 11 19:31:13.199: Vi2.2 IPCP AUTHOR: no author-info for primary dns
75
*Aug 11 19:31:13.199: Vi2.2 IPCP AUTHOR: no author-info for primary dns
76
*Aug 11 19:31:13.199: Vi2.2 IPCP AUTHOR: no author-info for primary dns
77
*Aug 11 19:31:13.199: Vi2.2 IPCP AUTHOR: no author-info for primary dns
78
*Aug 11 19:31:13.199: Vi2.2 IPCP AUTHOR: no author-info for primary dns
79
*Aug 11 19:31:13.203: Vi2.2 IPCP AUTHOR: no author-info for primary dns
80
*Aug 11 19:31:14.195: Vi2.2 IPCP AUTHOR: Start.  Her address 0.0.0.1, we want 200.200.199.3
81
*Aug 11 19:31:14.195: Vi2.2 IPCP AUTHOR: Reject 0.0.0.1, using 200.200.199.3
82
*Aug 11 19:31:14.195: Vi2.2 IPCP AUTHOR: Authorization succeeded
83
*Aug 11 19:31:14.195: Vi2.2 IPCP AUTHOR: Done.  Her address 0.0.0.1, we want 200.200.199.3
84
*Aug 11 19:31:14.195: Vi2.2 IPCP AUTHOR: no author-info for primary dns
85
*Aug 11 19:31:14.195: Vi2.2 IPCP AUTHOR: no author-info for primary dns
86
*Aug 11 19:31:14.195: Vi2.2 IPCP AUTHOR: no author-info for primary dns
87
*Aug 11 19:31:14.199: Vi2.2 IPCP AUTHOR: no author-info for primary dns
88
*Aug 11 19:31:14.199: Vi2.2 IPCP AUTHOR: no author-info for primary dns
89
*Aug 11 19:31:14.199: Vi2.2 IPCP AUTHOR: no author-info for primary dns
90
*Aug 11 19:31:14.199: Vi2.2 IPCP AUTHOR: no author-info for primary dns
91
*Aug 11 19:31:14.199: Vi2.2 IPCP AUTHOR: no author-info for primary dns
92
*Aug 11 19:31:14.203: Vi2.2 IPCP AUTHOR: no author-info for primary dns
93
*Aug 11 19:31:14.203: Vi2.2 IPCP AUTHOR: no author-info for primary dns
94
*Aug 11 19:31:15.195: Vi2.2 IPCP AUTHOR: Start.  Her address 0.0.0.1, we want 200.200.199.3
95
*Aug 11 19:31:15.195: Vi2.2 IPCP AUTHOR: Reject 0.0.0.1, using 200.200.199.3
96
*Aug 11 19:31:15.195: Vi2.2 IPCP AUTHOR: Authorization succeeded
97
*Aug 11 19:31:15.195: Vi2.2 IPCP AUTHOR: Done.  Her address 0.0.0.1, we want 200.200.199.3
98
*Aug 11 19:31:15.195: Vi2.2 IPCP AUTHOR: no author-info for primary dns
99
*Aug 11 19:31:15.195: Vi2.2 IPCP AUTHOR: no author-info for primary dns
100
*Aug 11 19:31:15.195: Vi2.2 IPCP AUTHOR: no author-info for primary dns
101
*Aug 11 19:31:15.199: Vi2.2 IPCP AUTHOR: no author-info for primary dns
102
*Aug 11 19:31:15.199: Vi2.2 IPCP AUTHOR: no author-info for primary dns
103
*Aug 11 19:31:15.199: Vi2.2 IPCP AUTHOR: no author-info for primary dns
104
*Aug 11 19:31:15.199: Vi2.2 IPCP AUTHOR: no author-info for primary dns
105
*Aug 11 19:31:15.199: Vi2.2 IPCP AUTHOR: no author-info for primary dns
106
*Aug 11 19:31:15.199: Vi2.2 IPCP AUTHOR: no author-info for primary dns
107
*Aug 11 19:31:15.203: Vi2.2 IPCP AUTHOR: no author-info for primary dns
108
*Aug 11 19:31:16.195: Vi2.2 IPCP AUTHOR: Start.  Her address 0.0.0.1, we want 200.200.199.3
109
*Aug 11 19:31:16.195: Vi2.2 IPCP AUTHOR: Reject 0.0.0.1, using 200.200.199.3
110
*Aug 11 19:31:16.195: Vi2.2 IPCP AUTHOR: Authorization succeeded
111
*Aug 11 19:31:16.195: Vi2.2 IPCP AUTHOR: Done.  Her address 0.0.0.1, we want 200.200.199.3
112
*Aug 11 19:31:16.195: Vi2.2 IPCP AUTHOR: no author-info for primary dns
113
*Aug 11 19:31:16.195: Vi2.2 IPCP AUTHOR: no author-info for primary dns
114
*Aug 11 19:31:16.195: Vi2.2 IPCP AUTHOR: no author-info for primary dns
115
*Aug 11 19:31:16.199: Vi2.2 IPCP AUTHOR: no author-info for primary dns
116
*Aug 11 19:31:16.199: Vi2.2 IPCP AUTHOR: no author-info for primary dns
117
*Aug 11 19:31:16.199: Vi2.2 IPCP AUTHOR: no author-info for primary dns
118
*Aug 11 19:31:16.199: Vi2.2 IPCP AUTHOR: no author-info for primary dns
119
*Aug 11 19:31:16.199: Vi2.2 IPCP AUTHOR: no author-info for primary dns
120
*Aug 11 19:31:16.199: Vi2.2 IPCP AUTHOR: no author-info for primary dns
121
*Aug 11 19:31:16.203: Vi2.2 IPCP AUTHOR: no author-info for primary dns
122
*Aug 11 19:31:17.195: Vi2.2 IPCP AUTHOR: Start.  Her address 0.0.0.1, we want 200.200.199.3
123
*Aug 11 19:31:17.195: Vi2.2 IPCP AUTHOR: Reject 0.0.0.1, using 200.200.199.3
124
*Aug 11 19:31:17.195: Vi2.2 IPCP AUTHOR: Authorization succeeded
125
*Aug 11 19:31:17.195: Vi2.2 IPCP AUTHOR: Done.  Her address 0.0.0.1, we want 200.200.199.3
126
</pre>
127
128
h2. 対策
129
130
要はPPPoEサーバ側でDNSサーバの情報を渡してやる。具体的にはどうするかだが、今回はこんな方法で乗り切りました。
131
132
<pre>
133
c1841#conf t
134
Enter configuration commands, one per line.  End with CNTL/Z.
135
c1841(config)#ip dns server 
136
c1841(config)#ip name-server 192.168.2.2
137
c1841(config)#^Z
138
c1841#wr m
139
*Aug 11 19:46:40.535: %SYS-5-CONFIG_I: Configured from console by console
140
Building configuration...
141
[OK]
142
c1841#
143
</pre>
144
145
*ip dns server* と *ip name-server* が鍵ですか。上記の設定を施した後、AMEから接続を行った際のCisco側のログは以下の通り。
146
147
<pre>
148
c1841#
149
*Aug 11 20:43:53.323: Vi2.2 PPP: Clearing AAA Unique Id = 25
150
*Aug 11 20:43:59.391: ppp24 PPP: Using AAA Unique Id = 26
151
*Aug 11 20:43:59.391: ppp24 PPP: Authorization required
152
*Aug 11 20:43:59.391: ppp24 PPP: Using vpn set call direction
153
*Aug 11 20:43:59.391: ppp24 PPP: Treating connection as a callin
154
*Aug 11 20:43:59.391: ppp24 PPP: Session handle[33000018] Session id[24]
155
*Aug 11 20:43:59.411: ppp24 CHAP: O CHALLENGE id 1 len 26 from "c1841"
156
*Aug 11 20:43:59.411: ppp24 CHAP: I RESPONSE id 1 len 28 from "client2"
157
*Aug 11 20:43:59.411: ppp24 PPP: Sent CHAP LOGIN Request
158
*Aug 11 20:43:59.415: ppp24 PPP: Received LOGIN Response PASS
159
*Aug 11 20:43:59.415: ppp24 PPP AUTHOR: Author Data NOT Available
160
*Aug 11 20:43:59.415: ppp24 PPP: Sent LCP AUTHOR Request
161
*Aug 11 20:43:59.415: ppp24 PPP: Sent IPCP AUTHOR Request
162
*Aug 11 20:43:59.415: ppp24 LCP: Received AAA AUTHOR Response PASS
163
*Aug 11 20:43:59.415: ppp24 PPP: Receive Attrs from[author] Keep[LCP] MERGE
164
*Aug 11 20:43:59.415: ppp24 PPP: Keep Attr: Framed-Protocol      1 [PPP]
165
*Aug 11 20:43:59.415: ppp24 PPP: Updated the attr Framed-Protocol in datalist
166
*Aug 11 20:43:59.415: ppp24 PPP: Keep Attr: username             "client2"
167
*Aug 11 20:43:59.415: ppp24 PPP: Updated the attr username in datalist
168
*Aug 11 20:43:59.419: ppp24 IPCP: Received AAA AUTHOR Response PASS
169
*Aug 11 20:43:59.419: ppp24 PPP: Receive Attrs from[author] Keep[LCP+NCPs] MERGE
170
*Aug 11 20:43:59.419: ppp24 PPP: Keep Attr: Framed-Protocol      1 [PPP]
171
*Aug 11 20:43:59.419: ppp24 PPP: Updated the attr Framed-Protocol in datalist
172
*Aug 11 20:43:59.419: ppp24 PPP: Keep Attr: username             "client2"
173
*Aug 11 20:43:59.419: ppp24 PPP: Updated the attr username in datalist
174
*Aug 11 20:43:59.423: ppp24 PPP: Receive Attrs from[SSS] Keep[NCPs] MERGE
175
*Aug 11 20:43:59.423: ppp24 PPP: Skip Attr: Framed-Protocol      1 [PPP]
176
*Aug 11 20:43:59.423: ppp24 PPP: Skip Attr: username             "client2"
177
*Aug 11 20:43:59.435: Vi2.2 LCP AUTHOR: Process LCP Author Data
178
*Aug 11 20:43:59.435: Vi2.2 LCP AUTHOR: Process Attr: Framed-Protocol
179
*Aug 11 20:43:59.435: Vi2.2 LCP AUTHOR: Process Attr: username
180
*Aug 11 20:43:59.435: Vi2.2 LCP AUTHOR: Authorization succeeded
181
*Aug 11 20:43:59.435: Vi2.2 CHAP: O SUCCESS id 1 len 4
182
*Aug 11 20:43:59.435: Vi2.2 IPCP AUTHOR: Start.  Her address 0.0.0.1, we want 0.0.0.0
183
*Aug 11 20:43:59.435: Vi2.2 IPCP AUTHOR: Reject 0.0.0.1, using 0.0.0.0
184
*Aug 11 20:43:59.435: Vi2.2 IPCP AUTHOR: Authorization succeeded
185
*Aug 11 20:43:59.435: Vi2.2 IPCP AUTHOR: Done.  Her address 0.0.0.1, we want 0.0.0.0
186
*Aug 11 20:43:59.439: Vi2.2 IPCP AUTHOR: no author-info for primary dns
187
*Aug 11 20:43:59.439: Vi2.2 IPCP AUTHOR: no author-info for seconday dns
188
*Aug 11 20:43:59.439: Vi2.2 IPCP AUTHOR: no author-info for primary dns
189
*Aug 11 20:43:59.439: Vi2.2 IPCP AUTHOR: no author-info for primary dns
190
</pre>
191
192
まだ気になる部分はあるのですが、PPPoEクライアント/サーバ間の疎通性は確保できたのでいったんここまでとします。やりたい事はこの先にあるので。