1. 程式人生 > >交換路由中期測驗20181205(DHCP、IOS、靜態路由、RIP、EIGRP)

交換路由中期測驗20181205(DHCP、IOS、靜態路由、RIP、EIGRP)

測試拓撲:

知識點:DHCP;IOS的備份恢復與更新;靜態路由;動態路由(RIP);動態路由(EIGRP)

 

1.DHCP

拓撲:

主要指令:

              ip dhcp pool 地址池名稱

              network 網路號 子網掩碼

詳細配置(參考答案):

詳細配置:

int f0/0

ip add 192.168.15.1 255.255.255.0

no shu

exit

ip dhcp pool lilywhite

network 192.168.15.0 255.255.255.0

exit

PC機下IP設定為DHCP自動獲取IP地址,驗證結果。

 

 

2.IOS的備份恢復與更新

拓撲:

題目背景:

進入1841路由器後顯示rommon 1,顯然只剩下最基礎的bash環境了,需要通過Server0伺服器上儲存的IOS進行恢復的操作。

操作步驟:

      tftpdnld(進入tftpdownload模式,從而方便檢視引數

               IP_ADDRESS=192.168.1.2

               IP_SUBNET_MASK=255.255.255.0

               DEFAULT_GATEWAY=192.168.1.1

               TFTP_SERVER=192.168.1.1

               TFTP_FILE=c1841-advipservicesk9-mz.124-15.T1.bin

                (值得注意的是這裡的檔名是從伺服器copy下的檔名)

               tftpdnld(再次進入tftpdnld模式檢視)

                   (此時顯示出引數資訊,並詢問是否下載IOS,並燒錄,輸入y開始燒錄)

               boot(燒錄成功後,載入系統)

值得注意的是:必須要先確認好Server0伺服器的IP地址,否則無法與伺服器聯通,下載不了資料。

 

3.靜態路由

拓撲:

主要指令:

      ip   route   目標網路號   子網掩碼   下一跳

詳細配置(參考答案):

標紅處代表當前路由配置資訊,下同

1.1.1.1

int loop 0

ip add 1.1.1.1 255.255.255.0

no shu

exit

int f0/0

ip add 12.15.15.1 255.255.255.0

no shu

exit

int f0/1

ip add 15.15.15.2 255.255.255.0

exit

ip route 13.15.15.0 255.255.255.0 12.15.15.2

ip route 14.15.15.0 255.255.255.0 12.15.15.2

ip route 2.2.2.0 255.255.255.0 12.15.15.2

ip route 3.3.3.0 255.255.255.0 12.15.15.2

ip route 4.4.4.0 255.255.255.0 15.15.15.1

 

2.2.2.2:

int loop 0

ip add 2.2.2.2 255.255.255.0

no shu

exit

int f0/0

ip add 12.15.15.2 255.255.255.0

no shu

exit

int f0/1

ip add 13.15.15.1 255.255.255.0

no shu

exit

ip route 14.15.15.0 255.255.255.0 13.15.15.2

ip route 15.15.15.0 255.255.255.0 12.15.15.1

ip route 1.1.1.0 255.255.255.0 12.15.15.1

ip route 3.3.3.0 255.255.255.0 13.15.15.2

ip route 4.4.4.0 255.255.255.0 13.15.15.2

 

3.3.3.3:

int loop 0

ip add 3.3.3.3 255.255.255.0

no shu

exit

int f0/0

ip add 13.15.15.2 255.255.255.0

no shu

exit

int f0/1

ip add 14.15.15.1 255.255.255.0

no shu

exit

ip route 12.15.15.0 255.255.255.0 13.15.15.1

ip route 15.15.15.0 255.255.255.0 14.15.15.2

ip route 2.2.2.0 255.255.255.0 13.15.15.1

ip route 4.4.4.0 255.255.255.0 14.15.15.2

ip route 1.1.1.0 255.255.255.0 13.15.15.1

 

4.4.4.4:

int loop 0

ip add 4.4.4.4 255.255.255.0

no shu

exit

int f0/0

ip add 14.15.15.2 255.255.255.0

no shu

exit

int f0/1

ip add 15.15.15.1 255.255.255.0

no shu

exit

ip route 12.15.15.0 255.255.255.0 15.15.15.2

ip route 13.15.15.0 255.255.255.0 14.15.15.1

ip route 1.1.1.0 255.255.255.0 15.15.15.2

ip route 2.2.2.0 255.255.255.0 15.15.15.2

ip route 3.3.3.0 255.255.255.0 14.15.15.1

 

4.動態路由(RIP)排錯

拓撲:

錯誤點:

R10:

RIP配置錯誤:宣告網路的主類號和RIP版本錯誤,沒有關閉自動聚合。

R11:

F0/0和F0/1的IP地址配置錯誤;

RIP配置錯誤:缺少宣告網路的主類號,沒有關閉自動聚合。

R12:

缺少loopback介面的IP;

F0/0介面的IP地址設定錯誤,F0/1介面上多了個IP地址;

RIP配置錯誤:同上。

更正後配置:

R10

iterface Loopback1

  ip address 1.1.1.1 255.255.255.0

!

interface FastEthernet0/0

  ip address 12.1.1.1 255.255.255.0

!

router rip

  version 2

  network 1.0.0.0

  network 12.0.0.0

  no auto-summary

 

R11

iterface Loopback1

  ip address 2.2.2.2 255.255.255.0

!

interface FastEthernet0/0

  ip address 12.1.1.2 255.255.255.0

!

interface FastEthernet0/1

  ip address 23.1.1.1 255.255.255.0

!

router rip

  version 2

  network 2.0.0.0

  network 12.0.0.0

  network 23.0.0.0

  no auto-summary

 

R12:

iterface Loopback0

  ip address 3.3.3.3 255.255.255.0

!

interface FastEthernet0/0

  ip address 23.1.1.2 255.255.255.0

!

router rip

  version 2

  network 3.0.0.0

  network 23.0.0.0

  no auto-summary

 

5.動態路由(EIGRP)

拓撲:

主要指令:

              router eigrp X

              network 網路號

              no auto-summary(關閉自動聚合)

詳細配置(參考答案):

R2

int f0/0

ip add 192.168.56.1 255.255.255.0

no shu

exit

int f0/1

ip add 192.168.12.254 255.255.255.0

no shu

exit

router eigrp 15

network 192.168.12.0

network 192.168.56.0

no auto-summary

 

R3:

int f0/0

ip add 192.168.56.2 255.255.255.0

no shu

exit

int f0/1

ip add 192.168.34.1 255.255.255.0

no shu

exit

router eigrp 15

network 192.168.34.0

network 192.168.56.0

no auto-summary

 

R4:

int f0/0

ip add 192.168.56.3 255.255.255.0

no shu

exit

int f0/1

ip add 192.168.23.254 255.255.255.0

no shu

exit

router eigrp 15

network 192.168.23.0

network 192.168.56.0

no auto-summary

 

R5:

int f0/0

ip add 192.168.34.2 255.255.255.0

no shu

exit

int f0/1

ip add 192.168.45.254 255.255.255.0

no shu

exit

router eigrp 15

network 192.168.34.0

network 192.168.45.0

no auto-summary