用RIP实现单臂路由.docx
《用RIP实现单臂路由.docx》由会员分享,可在线阅读,更多相关《用RIP实现单臂路由.docx(21页珍藏版)》请在冰豆网上搜索。
![用RIP实现单臂路由.docx](https://file1.bdocx.com/fileroot1/2023-1/31/9cd9f85e-4664-4a61-9d8e-54061a8ee087/9cd9f85e-4664-4a61-9d8e-54061a8ee0871.gif)
用RIP实现单臂路由
拓扑结构:
PC机设置:
PC0:
PC1:
PC2:
Server0:
server1:
交换机设置:
Switch1、2、3相同:
Switch>enable
Switch#showrun
Buildingconfiguration...
Currentconfiguration:
971bytes
!
version12.1
noservicetimestampslogdatetimemsec
noservicetimestampsdebugdatetimemsec
noservicepassword-encryption
!
hostnameSwitch
!
!
spanning-treemodepvst
!
interfaceFastEthernet0/1
!
interfaceFastEthernet0/2
!
interfaceFastEthernet0/3
!
interfaceFastEthernet0/4
!
interfaceFastEthernet0/5
!
interfaceFastEthernet0/6
!
interfaceFastEthernet0/7
!
interfaceFastEthernet0/8
!
interfaceFastEthernet0/9
!
interfaceFastEthernet0/10
!
interfaceFastEthernet0/11
!
interfaceFastEthernet0/12
!
interfaceFastEthernet0/13
!
interfaceFastEthernet0/14
!
interfaceFastEthernet0/15
!
interfaceFastEthernet0/16
!
interfaceFastEthernet0/17
!
interfaceFastEthernet0/18
!
interfaceFastEthernet0/19
!
interfaceFastEthernet0/20
!
interfaceFastEthernet0/21
!
interfaceFastEthernet0/22
!
interfaceFastEthernet0/23
!
interfaceFastEthernet0/24
!
interfaceVlan1
noipaddress
shutdown
!
!
linecon0
!
linevty04
login
linevty515
login
!
!
End
switch0:
Switch>en
Switch#showrun
Buildingconfiguration...
Currentconfiguration:
1147bytes
!
version12.1
noservicetimestampslogdatetimemsec
noservicetimestampsdebugdatetimemsec
noservicepassword-encryption
!
hostnameSwitch
!
!
spanning-treemodepvst
!
interfaceFastEthernet0/1
switchportaccessvlan10
switchportmodeaccess
!
interfaceFastEthernet0/2
switchportaccessvlan20
switchportmodeaccess
!
interfaceFastEthernet0/3
switchportaccessvlan30
switchportmodeaccess
!
interfaceFastEthernet0/4
switchportmodetrunk
!
interfaceFastEthernet0/5
!
interfaceFastEthernet0/6
!
interfaceFastEthernet0/7
!
interfaceFastEthernet0/8
!
interfaceFastEthernet0/9
!
interfaceFastEthernet0/10
!
interfaceFastEthernet0/11
!
interfaceFastEthernet0/12
!
interfaceFastEthernet0/13
!
interfaceFastEthernet0/14
!
interfaceFastEthernet0/15
!
interfaceFastEthernet0/16
!
interfaceFastEthernet0/17
!
interfaceFastEthernet0/18
!
interfaceFastEthernet0/19
!
interfaceFastEthernet0/20
!
interfaceFastEthernet0/21
!
interfaceFastEthernet0/22
!
interfaceFastEthernet0/23
!
interfaceFastEthernet0/24
!
interfaceVlan1
noipaddress
shutdown
!
!
linecon0
!
linevty04
login
linevty515
login
!
!
End
路由器设置
Route0:
Router#showrun
Router#showrunning-config
Buildingconfiguration...
Currentconfiguration:
1176bytes
!
version12.4
noservicetimestampslogdatetimemsec
noservicetimestampsdebugdatetimemsec
noservicepassword-encryption
!
hostnameRouter
!
!
!
!
!
!
!
!
!
!
!
!
!
!
spanning-treemodepvst
!
!
!
!
interfaceFastEthernet0/0
noipaddress
duplexauto
speedauto
!
interfaceFastEthernet0/0.10
encapsulationdot1Q10
ipaddress192.168.10.254255.255.255.0
!
interfaceFastEthernet0/0.20
encapsulationdot1Q20
ipaddress192.168.20.254255.255.255.0
!
interfaceFastEthernet0/0.30
encapsulationdot1Q30
ipaddress192.168.30.254255.255.255.0
!
interfaceFastEthernet0/0.40
encapsulationdot1Q40
ipaddress192.168.40.254255.255.255.0
!
interfaceFastEthernet0/1
noipaddress
duplexauto
speedauto
shutdown
!
interfaceSerial0/3/0
ipaddress192.168.5.1255.255.255.0
!
interfaceSerial0/3/1
ipaddress192.168.6.1255.255.255.0
clockrate64000
!
interfaceVlan1
noipaddress
shutdown
!
routerrip
version2
network192.168.5.0
network192.168.6.0
network192.168.10.0
network192.168.20.0
network192.168.30.0
network192.168.40.0
noauto-summary
!
ipclassless
!
!
!
!
!
!
!
linecon0
!
lineaux0
!
linevty04
login
!
!
!
End
Route1:
showrun
Buildingconfiguration...
Currentconfiguration:
765bytes
!
version12.4
noservicetimestampslogdatetimemsec
noservicetimestampsdebugdatetimemsec
noservicepassword-encryption
!
hostnameRouter
!
!
!
!
!
!
!
!
!
!
!
!
!
!
spanning-treemodepvst
!
!
!
!
interfaceFastEthernet0/0
noipaddress
duplexauto
speedauto
shutdown
!
interfaceFastEthernet0/1
noipaddress
duplexauto
speedauto
shutdown
!
interfaceSerial0/3/0
ipaddress192.168.5.2255.255.255.0
!
interfaceSerial0/3/1
ipaddress192.168.7.1255.255.255.0
clockrate64000
!
interfaceVlan1
noipaddress
shutdown
!
routerrip
version2
network192.168.5.0
network192.168.7.0
noauto-summary
!
ipclassless
!
!
access-list1permithost192.168.8.2
!
nocdprun
!
!
!
!
!
linecon0
!
lineaux0
!
linevty04
login
!
!
!
End
Route2:
Router>enable
Router#showrun
Buildingconfiguration...
Currentconfiguration:
859bytes
!
version12.4
noservicetimestampslogdatetimemsec
noservicetimestampsdebugdatetimemsec
noservicepassword-encryption
!
hostnameRouter
!
!
!
!
!
!
!
!
!
!
!
!
!
!
spanning-treemodepvst
!
!
!
!
interfaceFastEthernet0/0
noipaddress
duplexauto
speedauto
shutdown
!
interfaceFastEthernet0/1
noipaddress
duplexauto
speedauto
shutdown
!
interfaceSerial0/2/0
ipaddress192.168.6.2255.255.255.0
!
interfaceSerial0/2/1
ipaddress192.168.7.2255.255.255.0
!
interfaceSerial0/3/0
ipaddress192.168.8.1255.255.255.0
clockrate64000
!
interfaceSerial0/3/1
noipaddress
shutdown
!
interfaceVlan1
noipaddress
shutdown
!
routerrip
version2
network192.168.6.0
network192.168.7.0
network192.168.8.0
noauto-summary
!
ipclassless
!
!
!
nocdprun
!
!
!
!
!
linecon0
!
lineaux0
!
linevty04
login
!
!
!
End
Route3:
Router#showrun
Buildingconfiguration...
Currentconfiguration:
694bytes
!
version12.4
noservicetimestampslogdatetimemsec
noservicetimestampsdebugdatetimemsec
noservicepassword-encryption
!
hostnameRouter
!
!
!
!
!
!
!
!
!
!
!
!
!
!
spanning-treemodepvst
!
!
!
!
interfaceFastEthernet0/0
ipaddress192.168.9.254255.255.255.0
duplexauto
speedauto
!
interfaceFastEthernet0/1
noipaddress
duplexauto
speedauto
shutdown
!
interfaceSerial0/3/0
ipaddress192.168.8.2255.255.255.0
!
interfaceSerial0/3/1
noipaddress
shutdown
!
interfaceVlan1
noipaddress
shutdown
!
routerrip
version2
network192.168.8.0
network192.168.9.0
!
ipclassless
!
!
!
nocdprun
!
!
!
!
!
linecon0
!
lineaux0
!
linevty04
login
!
!
!
end