2020夏休み活動

提供: Network Scholar
ナビゲーションに移動 検索に移動

テーマシーン

2020 EventTheme.png

アドレッシング例

部屋 部屋番号 台数 アドレッシング 最小サブネット ホスト数 備考
一号館
自習室 1 180台 192.168.0.0/24 24 254
2 180台 192.168.1.0/24 24 254
3 140台 192.168.2.0/24 24 254
4 120台 192.168.3.0/24 25 126
演習室 1 50台 172.16.0.0/24 26 62
2 70台 172.16.1.0/24 25 126
事務室 ー 30台 172.17.0.0/24 27 30
二号館
図書室 ー 320台 172.20.0.0/23 23 510 172.20.0.1 - 172.20.1.254
研究室 1 62台 172.21.1.0/24 26 62
2 120台 172.21.2.0/24 25 126
3 128台 172.21.3.0/24 24 254
サーバールーム 320台 172.22.0.0/23 23 510 172.22.0.1 - 172.22.1.254
ルーター間
ルーター間 Point-to-Point(2) 10.0.0.0/30 30 2

ルーター設定

使用された主な命令

コマンド 概要
enable 管理者モードに入る
configure terminal グローバル設定モードに入る、Terminalから設定を行う
enable secret <password> 管理者モードのパスワードを暗号化して、設定する
hostname ホスト名を変更
line <port type> <port number> 設定用インターフェースを設定する
password <password> パスワードを設定する
login パスワード認証を有効かする
interface <interface type> <interface number> ネットワーク用インターフェースを設定
no shutdown ポートを有効化する
ip address <ip address> <subnet mask> インターフェースのIPアドレスを設定
copy run startup 設定をFLASHメモリーに保存する
show ip interface brief インターフェースの概要を見る

設定過程例

一号館ルーター

   Router>en      
   Router#show ip int br
   Interface                  IP-Address      OK? Method Status                Protocol
   Ethernet0/0                unassigned      YES unset  administratively down down    
   Ethernet0/1                unassigned      YES unset  administratively down down    
   Ethernet0/2                unassigned      YES unset  administratively down down    
   Ethernet0/3                unassigned      YES unset  administratively down down    
   Ethernet1/0                unassigned      YES unset  administratively down down    
   Ethernet1/1                unassigned      YES unset  administratively down down    
   Ethernet1/2                unassigned      YES unset  administratively down down    
   Ethernet1/3                unassigned      YES unset  administratively down down    
   Ethernet2/0                unassigned      YES unset  administratively down down    
   Ethernet2/1                unassigned      YES unset  administratively down down    
   Ethernet2/2                unassigned      YES unset  administratively down down    
   Ethernet2/3                unassigned      YES unset  administratively down down    
   Ethernet3/0                unassigned      YES unset  administratively down down    
   Ethernet3/1                unassigned      YES unset  administratively down down    
   Ethernet3/2                unassigned      YES unset  administratively down down    
   Ethernet3/3                unassigned      YES unset  administratively down down    
   Router#conf t  
   Enter configuration commands, one per line.  End with CNTL/Z.
   Router(config)#enable secret PASSWORD
   Router(config)#hostname Building-1
   Building-1(config)#line console 0
   Building-1(config-line)#password PASSWORD
   Building-1(config-line)#login
   Building-1(config-line)#exit
   Building-1(config)#int e0/0
   Building-1(config-if)#no shut
   Building-1(config-if)#ip address 10.0.0.1 255.255.255.252
   Building-1(config-if)#exit
   ...
   Building-1(config-if)#end
   Building-1#show ip int br
   Interface                  IP-Address      OK? Method Status                Protocol
   Ethernet0/0                10.0.0.1        YES NVRAM  up                    up      
   Ethernet0/1                unassigned      YES NVRAM  administratively down down    
   Ethernet0/2                unassigned      YES NVRAM  administratively down down    
   Ethernet0/3                unassigned      YES NVRAM  administratively down down    
   Ethernet1/0                192.168.0.254   YES NVRAM  up                    up      
   Ethernet1/1                192.168.1.254   YES NVRAM  up                    up      
   Ethernet1/2                192.168.2.254   YES NVRAM  up                    up      
   Ethernet1/3                192.168.3.254   YES NVRAM  up                    up      
   Ethernet2/0                172.16.0.254    YES NVRAM  up                    up      
   Ethernet2/1                172.16.1.254    YES NVRAM  up                    up      
   Ethernet2/2                unassigned      YES NVRAM  administratively down down    
   Ethernet2/3                unassigned      YES NVRAM  administratively down down    
   Ethernet3/0                172.17.0.254    YES NVRAM  up                    up      
   Ethernet3/1                unassigned      YES NVRAM  administratively down down    
   Ethernet3/2                unassigned      YES NVRAM  administratively down down    
   Ethernet3/3                unassigned      YES NVRAM  administratively down down  

二号館ルーター設定結果

   Building-2#show ip int br
   Interface                  IP-Address      OK? Method Status                Protocol
   Ethernet0/0                10.0.0.2        YES NVRAM  up                    up      
   Ethernet0/1                unassigned      YES NVRAM  administratively down down    
   Ethernet0/2                unassigned      YES NVRAM  administratively down down    
   Ethernet0/3                unassigned      YES NVRAM  administratively down down    
   Ethernet1/0                172.20.1.254    YES NVRAM  up                    up      
   Ethernet1/1                unassigned      YES NVRAM  administratively down down    
   Ethernet1/2                unassigned      YES NVRAM  administratively down down    
   Ethernet1/3                unassigned      YES NVRAM  administratively down down    
   Ethernet2/0                172.21.1.254    YES NVRAM  up                    up      
   Ethernet2/1                172.21.2.254    YES NVRAM  up                    up      
   Ethernet2/2                172.21.3.254    YES NVRAM  up                    up      
   Ethernet2/3                unassigned      YES NVRAM  administratively down down    
   Ethernet3/0                172.22.1.254    YES NVRAM  up                    up      
   Ethernet3/1                unassigned      YES NVRAM  administratively down down    
   Ethernet3/2                unassigned      YES NVRAM  administratively down down    
   Ethernet3/3                unassigned      YES NVRAM  administratively down down

Pingでテスト

   Building-1#ping 10.0.0.2
   Type escape sequence to abort.
   Sending 5, 100-byte ICMP Echos to 10.0.0.2, timeout is 2 seconds:
   .!!!!
   Success rate is 80 percent (4/5), round-trip min/avg/max = 1/1/1 ms
   Building-2#ping 10.0.0.1
   Type escape sequence to abort.
   Sending 5, 100-byte ICMP Echos to 10.0.0.1, timeout is 2 seconds:
   !!!!!
   Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms