*ルーティング [#ec137293] #contents **基本 [#n7bd38bb] >enable #config terminal (config)#ip routing // ルーティングの開始 (config)#exit #show ip rout // ルーティングテーブルの確認 **RIPの起動(事前に #show ip rout で自分のネットワークアドレス(以下NIP)を覚えておくこと。) [#a10b3bad] #conf t (config)#router rip // RIPの起動 (config-router)#network 自分のNIP // 自分のネットワークテーブルを相手に教える (config-router)#exit (config)#exit #show ip rout // 相手のNIPが追加されてるか確認 **まとめ(一連の流れ) [#h3c0aec9] #conf t (config)#ip routing // IPルーティングの開始 (config)#router rip // RIPの起動 (config-router)#network 自分のNIP // 自分のネットワークテーブルを相手に教える (config-router)#exit (config)#exit #show ip rout // 相手のNIPが追加されてるか確認 **コメントを入れる [#g44203bd] #conf t (config)#interface インターフェース名 <port名> (config-if)#description <コメント> // 任意のコメントを付ける **ログインバナーを付ける [#e3de51e7] #conf t (config)#banner motd # コメント # // 任意のコメントを付ける (config)#exit **名前解決を行う [#u71556ef] #conf t (config)#ip host ホスト名 IPアドレス (config)#exit #show hosts // 登録している名前解決の表示 **バックアップを行う [#z8c1675f] ***ルータの設定をTFTPに送る [#c5534191] #copy running-config tftp // ルータの設定をTFTPに送る Address or name of remote host []? // ノートパソコンのIPアドレス Destination filename []? // 適当なファイルネーム !! // 成功 751 bytes copied in 0.860 secs # ***TFTPからルータの設定を呼び出す [#v4ec8da9] #copy tftp running-config // TFTPからルータの設定をルータに送る Address or name of remote host []? // ノートパソコンのIPアドレス Source filename []? // 適当なファイルネーム Destination filename [running-config]? Accessing tftp://192.168.16.2/bhm-confg... Loading bhm-confg from 192.168.16.2 (via FastEthernet0): ! // 成功 [OK - 751/1024 bytes] 751 bytes copied in 0.628 secs # // IP:"126.60.107.119" TIME:"2014-03-27(<abbr class="week_day" title="木曜日">木</abbr>)22:48:28" REFERER:"http://157.7.130.26/" USER_AGENT:"Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.146 Safari/537.36