ip route 192.168.1.241 255.255.255.255 dialer 1 ip route 192.168.1.242 255.255.255.255 dialer 1 ip route 192.168.1.243 255.255.255.255 dialer 1 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 ip proxy-arp 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 pap exit interface lan 1 ip address 192.168.1.241 255.255.255.240 exit end
設定内容 | 画面表示例 |
---|---|
特権ユーザモードへの移行 パスワードの入力 設定情報の初期化 設定モードの変更 設定入力 設定保存 装置再起動 |
Router>enable Enter password: Router# Router#clear working.cfg Router# Router#configure terminal Router(config)#ip route 192.168.1.241 255.255.255.255 dialer 1 Router(config)#ip route 192.168.1.242 255.255.255.255 dialer 1 Router(config)#ip route 192.168.1.243 255.255.255.255 dialer 1 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)# ip proxy-arp 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 pap Router_B(config-if dialer 1)#exit Router_B(config)#interface lan 1 Router_B(config-if lan 1)# ip address 192.168.1.241 255.255.255.240 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 |
経路情報を確認します。(Router A)
確認内容 | 画面表示例 |
---|---|
ルーティング情報を表示 ※ ※ ※ |
Router_A#show ip route Max entry: 10000 (Commonness in IPv4 and IPv6) Active entry:6 (IPv4), 2 (IPv6) Peak:6 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. C> * 127.0.0.0/8 is directly connected, LOOP0 C> * 192.168.1.0/24 is directly connected, LAN S> * 192.168.1.241/32 [1/0] is directly connected, DIALER1 S> * 192.168.1.242/32 [1/0] is directly connected, DIALER1 S> * 192.168.1.243/32 [1/0] is directly connected, DIALER1 C> * 200.0.0.1/32 is directly connected, DIALER1. |
※:192.168.1.241, 192.168.1.242, 192.168.1.243のホストルートが表示されていることを確認してください。
経路情報を確認します。(Router B)
確認内容 | 画面表示例 |
---|---|
ルーティング情報を表示 ※ |
Router_B#show ip route 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 [1/0] is directly connected, DIALER1 C> * 100.0.0.1/32 is directly connected, DIALER1 C> * 127.0.0.0/8 is directly connected, LOOP0 C> * 192.168.1.240/28 is directly connected, LAN |
※:デフォルトルートが表示されていることを確認してください。
PC-AからサーバAへ通信をおこなった後のARP情報を確認します。(PC-A, Windows XPの場合)
確認内容 | 画面表示例 |
---|---|
ARP情報を表示 ※ |
C:\>arp -a Interface: 192.168.1.25 --- 0x2 Internet Address Physical Address Type 192.168.1.242 (Router A MACアドレス) dynamic |
※:192.168.1.242に対応するMACアドレスとして、Router AのLANインタフェースのMACアドレスが表示されていることを確認してください。
PC-AからサーバAへ通信をおこなった後のARP情報を確認します。(Router A)
確認内容 | 画面表示例 |
---|---|
ARP情報を表示
※ |
Router_A#show ip arp Max valid entry: 2048 Active entry:1 Peak:1 Timeout configuration: min.20 - max.25 min for complete entry min.0 - max.5 min for incomplete entry Protocol Address Age(sec) Hardware Address Port Flags Internet 192.168.1.25 293 (PC-A MACアドレス) LAN |
※:192.168.1.25に対応するMACアドレスとして、PC-AのMACアドレスが表示されていることを確認してください。
PC-AからサーバAへ通信をおこなった後のARP情報を確認します。(Router B)
確認内容 | 画面表示例 |
---|---|
ARP情報を表示 ※ |
Router_B#show ip arp Timeout configuration: min.20 - max.25 min for complete entry min.0 - max.5 min for incomplete entry Protocol Address Age(sec) Hardware Address Port Flags Internet 192.168.1.242 186 (サーバA MACアドレス) LAN |
※:192.168.1.242に対応するMACアドレスとして、サーバAのMACアドレスが表示されていることを確認してください。