【正文】
/對(duì)路由器 R3 進(jìn)行命名 interface FastEther0/0 //對(duì)接口 F0/0 分配 IP 地址 ip address duplex auto //雙工的協(xié)商模式為自動(dòng) speed auto //速率為協(xié)商模式為自動(dòng) interface FastEther0/1 //對(duì)接口 F0/1 分配 IP 地址 ip address duplex auto //雙工的協(xié)商模式為自動(dòng) speed auto //速率為協(xié)商模式為自動(dòng) interface Serial0/0 //對(duì)接口 S0/0 分配 IP 地址 ip address interface Serial0/1 //對(duì)接口 S0/1 分配 IP 地址 ip address clock rate 64000 //設(shè)置時(shí)鐘頻率 interface Serial0/1 //對(duì)接口 S0/1 分配 IP 地址 logadjacencychanges work area 0 work area 0 work area 1 work area 1 ip classless line con 0 line vty 0 4 login ⑸ 路由器 R4 的配置信息: hostname R4 //將路由器命名為 R4 interface FastEther0/0 //對(duì)接口 F0/0 分配 IP 地址 ip address duplex auto //雙工的協(xié)商模式為自動(dòng) speed auto //速率為協(xié)商模式為自動(dòng) interface FastEther0/1 //對(duì)接口 F0/1 分配 IP 地址 no ip address duplex auto //雙工的協(xié)商模式為自動(dòng) speed auto //速率為協(xié) 商模式為自動(dòng) 滁州學(xué)院本科課程設(shè)計(jì) 10 shutdown interface Serial0/0 //對(duì)接口 S0/0 分配 IP 地址 ip address interface Serial0/1 //對(duì)接口 S0/1 分配 IP 地址 ip address clock rate 64000 //設(shè)置時(shí)鐘頻率 router ospf 1 // 啟動(dòng) ospf 進(jìn)程 logadjacencychanges work area 0 work area 0 work area 0 line con 0 line vty 0 4 Login ⑹ 路由器 R11 的配置信息: hostname R11 //對(duì) R11 進(jìn)行命名 interface FastEther0/0 ip address duplex auto //雙工的協(xié)商模式為自動(dòng) speed auto //速率為協(xié)商模式為 自動(dòng) interface FastEther0/1 ip address duplex auto // 雙工的協(xié)商模式為自動(dòng) speed auto //速率為協(xié)商模式為自動(dòng) interface Serial0/0 //對(duì)接口 S0/0 分配 IP 地址 ip address interface Serial0/1 //對(duì)接口 S0/1 分配 IP 地址 no ip address shutdown router ospf 1 // 啟動(dòng) ospf 進(jìn)程 logadjacencychanges work area 1 work area 1 work area 1 滁州學(xué)院本科課程設(shè)計(jì) 11 ip classless line con 0 line vty 0 4 login 交換機(jī)的配置 interface FastEther0/2 switchport access vlan 2 //劃分 vlan2 switchport mode trunk interface FastEther0/3 switchport access vlan 3 //劃分 vlan3 switchport mode trunk interface FastEther0/4 switchport access vlan 4 //劃分 vlan4 switchport mode trunk 服務(wù)器的配置 5 調(diào)試與操作說明 查看路由 利用路由顯示命令 show ip route,依次查看每一個(gè)路由器的路由信息。 processid 只在路由器內(nèi)部起作用,不同路由器的 processid 可以不同。 路由器在通報(bào)其獲知的鏈路狀態(tài) (即上面所述的參數(shù) )前,加上 LSA