2014年10月27日 星期一

路由協定 EIGRP 設定



設定需求:
1. 三部 Cisco 1841 路由器基本設定
1.1 路由器名稱分別為 R1、R2 與 R3
1.2 加密之特權模式密碼為 Nanya
1.3 主控台使用者模式之密碼為 CSIE
1.4 虛擬終端機使用者模式之密碼為 Cisco
1.5 介面之編號、IP及其網路遮罩分別如圖所標示的資料進行設定
1.6 兩部路由器之間的 Serial 為 E1 電路 (2Mbps)
1.7 路由器所有密碼均設定加密保護
R1
Router>enable
Router#configure  terminal
Router(config)#hostname R1
R1(config)#enable secret Nanya
R1(config)#line console 0
R1(config-line)#password CSIE
R1(config-line)#login
R1(config-line)#exit
R1(config)#line vty 0 4
R1(config-line)#password Cisco
R1(config-line)#login
R1(config-line)#exit
R1(config)#interface fastEthernet 0/0
R1(config-if)#ip address 192.168.1.254 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface serial 0/0/0
R1(config-if)#ip address 192.168.2.1 255.255.255.252
R1(config-if)#no shutdown
R1(config-if)#clock rate 2000000
R1(config-if)#exit
R1(config)#service password-encryption


R2
Router>enable
Router#configure terminal
Router(config)#hostname R2
R2(config)#enable secret Nanya
R2(config)#line console 0
R2(config-line)#password CSIE
R2(config-line)#login
R2(config-line)#exit
R2(config)#line vty 0 4
R2(config-line)#password Cisco
R2(config-line)#login
R2(config-line)#exit
R2(config)#interface fastEthernet 0/0
R2(config-if)#ip address 10.1.1.254 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface serial 0/0/0
R2(config-if)#ip address 192.168.2.2 255.255.255.252
R2(config-if)#no shutdown
R2(config-if)#interface serial 0/0/1
R2(config-if)#ip address 192.168.2.5 255.255.255.252
R2(config-if)#no shutdown
R2(config-if)#clock rate 2000000
R2(config-if)#exit
R2(config)#service password-encryption


R3
Router>enable
Router#configure terminal
Router(config)#hostname R3
R3(config)#enable secret Nanya
R3(config)#line console 0
R3(config-line)#password CSIE
R3(config-line)#login
R3(config-line)#exit
R3(config)#line vty 0 4
R3(config-line)#password Cisco
R3(config-line)#login
R3(config-line)#exit
R3(config)#interface fastEthernet 0/0
R3(config-if)#ip address 172.16.1.126 255.255.255.128
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#interface serial 0/0/1
R3(config-if)#ip address 192.168.2.6 255.255.255.252
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#service password-encryption

2. 三部PC指定IP、遮罩及預設閘道
2.1 使用如圖所標示的資料進行設定


pc1
IP address            192.168.1.1
Subnet Mask         255.255.255.0
Default Gateway   192.168.1.254


pc2
IP address            10.1.1.1
Subnet Mask         255.255.255.0
Default Gateway   10.1.1.254


pc3
IP address            172.16.1.1
Subnet Mask         255.255.255.128
Default Gateway   172.16.1.126

3. 路由協並設定
3.1 三部路由器均使用 EIGRP 作為其路由協定
3.2 自治系統號碼為100
3.3 啟用非自動總結
3.4 測試兩端之PC能否正常互相 ping 通


R1
R1(config)#router eigrp 100
R1(config-router)#network 192.168.1.0 0.0.0.255
R1(config-router)#network 192.168.2.0 0.0.0.3
R1(config-router)#no auto-summary
R1(config-router)#^Z


R2
R2(config)#router eigrp 100
R2(config-router)#network 192.168.2.0 0.0.0.3
R2(config-router)#network 10.1.1.0 0.0.0.255
R2(config-router)#network 192.168.2.4 0.0.0.3
R2(config-router)#no auto-summary
R2(config-router)#^Z


R3
R3(config)#router eigrp 100
R3(config-router)#network 172.16.1.0 0.0.0.127
R3(config-router)#network 192.168.2.4 0.0.0.3
R3(config-router)#no auto-summary
R3(config-router)#^Z


4. 測試網路均能正常運作,將所有設定檔儲存起來

R1
R1#copy running-config startup-config


R2
R2#copy running-config startup-config


R3

R3#copy running-config startup-config

沒有留言:

張貼留言