ip route 0.0.0.0 0.0.0.0 dialer 1 service dhcp-server ip dhcp pool lan 1 default-router 0.0.0.0 exit hostname Router_A 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 0.0.0.0 0.0.0.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 chap 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)#ip dhcp pool lan 1 Router(config-dhcp-pool)# default-router 0.0.0.0 Router(config-dhcp-pool)#exit Router(config)#hostname Router_A 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 0.0.0.0 0.0.0.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 chap 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> * 200.0.0.1/32 is directly connected, DIALER1 C> * 127.0.0.0/8 is directly connected, LOOP0 C> * 192.168.1.0/24 is directly connected, LAN |
※:デフォルトルートが、DIALER1宛にルーティングされていることを確認してください。
slogを確認します。
確認内容 | 画面表示例 |
---|---|
slogを表示 "Modem1 Connected" のログが記録されていることを確認 |
Router_A#show slog 10 0024 0000:00:00.00 2011/10/04 (tue) 15:18:19 0 00000000 4e326880 #BOOT[V01.05(00)-081911] SIDE-A.frm SIDE-A.cfg 0025 0000:00:02.32 2011/10/04 (tue) 15:18:23 71 00020000 0ba30007 Attach 0/ohci0 mfct:(NULL) pdct:(NULL) 0026 0000:00:03.40 2011/10/04 (tue) 15:18:25 47 2f000000 00000000 usb 1 is attached (). 0027 0000:00:03.47 2011/10/04 (tue) 15:18:25 50 00000000 00000000 ssh-server disabled. 0028 0000:00:09.46 2011/10/04 (tue) 15:18:31 5 00000000 00000a00 Interface lan 1, changed state to up 0029 0000:03:37.07 2011/10/04 (tue) 15:21:59 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: 2 connect count  0 connected count  1 connect fail count |