ip route 0.0.0.0 0.0.0.0 dialer 1 service dhcp-server hostname Router_A ip dhcp pool lan 1 default-router 0.0.0.0 exit interface dialer 1 caller 061234xxxx ppp account ROUTERA routera exit interface lan 1 ip address 192.168.1.1 255.255.255.0 exit interface modem 1 auto connect on physical-layer usb 1 exit end
ip route 192.168.1.0 255.255.255.0 dialer 1 username ROUTERA password routera hostname Router_B interface bri 1 calling idle-timeout 60 exit interface dialer 1 dialer map ip 100.0.0.1 name ROUTERA 031234xxxx dialer interface bri 1 ip address 200.0.0.1 255.255.255.255 ppp authentication pap exit interface lan 1 ip address 192.168.2.1 255.255.255.0 exit end
設定内容 | 画面表示例 |
---|---|
特権ユーザモードへの移行 パスワードの入力 設定情報の初期化 設定モードの変更 設定入力 設定保存 装置再起動 |
Router>enable Enter password: Router# Router#clear working.cfg Router# Router#configure terminal Router(config)#ip route 0.0.0.0 0.0.0.0 dialer 1 Router(config)#service dhcp-server Router(config)#hostname Router_A Router_A(config)#ip dhcp pool lan 1 Router_A(config-dhcp-pool)# default-router 0.0.0.0 Router_A(config-dhcp-pool)#exit Router_A(config)#interface dialer 1 Router_A(config-if dialer 1)# caller 061234xxxx Router_A(config-if dialer 1)# ppp account ROUTERA routera Router_A(config-if dialer 1)#exit Router_A(config)#interface lan 1 Router_A(config-if lan 1)# ip address 192.168.1.1 255.255.255.0 Router_A(config-if lan 1)#exit Router_A(config)#interface modem 1 Router_A(config-if modem 1)# auto connect on Router_A(config-if modem 1)# physical-layer usb 1 Router_A(config-if modem 1)#exit Router_A(config)# Router_A(config)#end Router_A# Router_A#save SIDE-A % saving working-config % finished saving Router_A#reset Going to reset with SIDE-A.frm and SIDE-A Boot-back not scheduled for next boot. Next rebooting firmware SIDE-A.frm is fine. Are you OK to cold start?(y/n)y |
設定内容 | 画面表示例 |
---|---|
特権ユーザモードへの移行 パスワードの入力 設定情報の初期化 設定モードの変更 設定入力 |
Router>enable Enter password: Router# Router#clear working.cfg Router# Router#configure terminal Router(config)#ip route 192.168.1.0 255.255.255.0 dialer 1 Router(config)#username ROUTERA password routera Router(config)#hostname Router_B Router_B(config)#interface bri 1 Router_B(config-if bri 1)# calling idle-timeout 60 Router_B(config-if bri 1)#exit Router_B(config)#interface dialer 1 Router_B(config-if dialer 1)# dialer map ip 100.0.0.1 name ROUTERA 031234xxxx Router_B(config-if dialer 1)# dialer interface bri 1 Router_B(config-if dialer 1)# ip address 200.0.0.1 255.255.255.255 Router_B(config-if dialer 1)# ppp authentication pap Router_B(config-if dialer 1)#exit Router_B(config)#interface lan 1 Router_B(config-if lan 1)# ip address 192.168.2.1 255.255.255.0 Router_B(config-if lan 1)#exit |
設定保存 装置再起動 |
Router_B(config)# Router_B(config)#end Router_B# Router_B#save SIDE-A % saving working-config % finished saving Router_B#reset Going to reset with SIDE-A.frm and SIDE-A Boot-back not scheduled for next boot. Next rebooting firmware SIDE-A.frm is fine. Are you OK to cold start?(y/n)y |
dialerインタフェースの設定状態を確認します。
確認内容 | 画面表示例 |
---|---|
dialerインタフェースの情報を表示 設定が正しいことを確認 |
Router_A#show ip interface dialer DIALER1 is up IPv4 is enabled pointTopoint IP address is 100.0.0.1, subnet mask is 255.255.255.255 Destination address is 200.0.0.1 |
経路情報を確認します。
確認内容 | 画面表示例 |
---|---|
ルーティング情報を表示 ※ |
Router_A#show ip route Max entry: 10000 (Commonness in IPv4 and IPv6) Active entry:4 (IPv4), 2 (IPv6) Peak:4 Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF B - BGP, I - IKE, U - SA-UP, D - REDUNDANCY, E - EventAction A - AutoConfig, > - selected route, * - FIB route, p - stale info. S> * 0.0.0.0/0 [1/0] is directly connected, DIALER1 C> * 127.0.0.0/8 is directly connected, LOOP0 C> * 192.168.1.0/24 is directly connected, LAN C> * 200.0.0.1/32 is directly connected, DIALER1 |
※:デフォルトルートがDIALER1宛にルーティングされていることを確認してください。
slogを確認します。
確認内容 | 画面表示例 |
---|---|
slogを表示 "Modem1 Connected" のログが記録されていることを確認 |
Router_A#show slog 10 0646 0000:00:00.00 2011/10/06 (thu) 10:42:15 0 00000000 4e326880 #BOOT[V01.05(00)-081911] SIDE-A.frm SIDE-A.cfg 0647 0000:00:02.31 2011/10/06 (thu) 10:42:19 71 00020000 0ba30007 Attach 0/ohci0 mfct:(NULL) pdct:(NULL) 0648 0000:00:03.41 2011/10/06 (thu) 10:42:21 47 2f000000 00000000 usb 1 is attached (). 0649 0000:00:03.48 2011/10/06 (thu) 10:42:21 50 00000000 00000000 ssh-server disabled. 0650 0000:00:09.47 2011/10/06 (thu) 10:42:27 5 00000000 00000a00 Interface lan 1, changed state to up 0651 0000:00:35.09 2011/10/06 (thu) 10:42:53 5 0000001b 08050a00 Modem1 Connected Calling 061234xxxx. by dialer1 |
modemインタフェースの状態を確認します。
確認内容 | 画面表示例 |
---|---|
modemインタフェースの情報を表示 60秒間送信データが発生しないと切断します。 60秒間受信データが発生しないと切断します。 modem out-strings init を設定しない場合、TAのデフォルト動作となります。 |
Router_A#show interface modem 1 Modem1 is connected DIALER1 occupies Physical-layer usb 1 Auto connect mode is on MTU is 1500 bytes Modem Send Idle-timeout 60 Modem Receive Idle-timeout 60 Modem Lcp Restart 300 (x10ms) Modem Lcp Maxtimes 10 Modem Packet Limiter (Not active) Modem Cumulative-time Limiter (Not active) Modem signal-level monitoring off Modem signal-level logging off Modem signal-quality monitoring off Modem signal-quality logging off Modem initial string: Statistics: 3 connect count  0 connected count  0 connect fail count |