ip route 0.0.0.0 0.0.0.0 dialer 1 access-list 1 permit 192.168.1.0 0.0.0.255 proxydns mode v4 service dhcp-server ip dhcp pool lan 1 dns-server 0.0.0.0 default-router 0.0.0.0 exit interface dialer 1 ip nat inside source list 1 interface caller 031234xxxx 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
設定内容 | 画面表示例 |
---|---|
特権ユーザモードへの移行 パスワードの入力 設定情報の初期化 設定モードの変更 設定入力 設定保存 装置再起動 |
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)#access-list 1 permit 192.168.1.0 0.0.0.255 Router(config)#proxydns mode v4 Router(config)#service dhcp-server Router(config)#ip dhcp pool lan 1 Router(config-dhcp-pool)# dns-server 0.0.0.0 Router(config-dhcp-pool)# default-router 0.0.0.0 Router(config-dhcp-pool)#exit Router(config)#interface dialer 1 Router(config-if dialer 1)# ip nat inside source list 1 interface Router(config-if dialer 1)# caller 031234xxxx Router(config-if dialer 1)# ppp account ROUTERA routera Router(config-if dialer 1)#exit Router(config)#interface lan 1 Router(config-if lan 1)# ip address 192.168.1.1 255.255.255.0 Router(config-if lan 1)#exit Router(config)#interface modem 1 Router(config-if modem 1)# auto connect on Router(config-if modem 1)# physical-layer usb 1 Router(config-if modem 1)#exit Router(config)# Router(config)#end Router# Router#save SIDE-A % saving working-config % finished saving Router#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#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#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#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 031234xxxx. by dialer1 |
modemインタフェースの状態を確認します。
確認内容 | 画面表示例 |
---|---|
modemインタフェースの情報を表示 60秒間送信データが発生しないと切断します。 60秒間受信データが発生しないと切断します。 modem out-strings init を設定しない場合、TAのデフォルト動作となります。 |
Router#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 |
NAT変換している内部テーブルの情報を確認します。
確認内容 | 画面表示例 |
---|---|
NATテーブル情報を表示 ※ ※ |
Router#show ip nat translation Session summary (equipment total): Max sessions: 2048 Reserved sessions: 0 Active sessions: 2  Peak: 15 List of active sessions: DIALER1 Local(address port) Global(address port) Remote(address port) prot tm(s) -------------------+--------------------+--------------------+----+---- 192.168.1.3 768 100.0.0.1 1024 200.0.0.1 768 icmp 59 192.168.1.2 768 100.0.0.1 768 200.0.0.1 768 icmp 33 |
※:LAN側の送信元IPアドレスがNAT+変換されていることを確認してください。