cisco 动态路由配置
发布时间:2024-08-30
发布时间:2024-08-30
很不错的文档
cisco 动态路由配置
路由0配置
Router>enable //进入特权模式
Router#configure terminal //全局模式
Router(config)#interface f0/0 //进入f0/0端口
Router(config-if)#ip address 10.1.1.1 255.255.255.0 //配置端口ip Router(config-if)#no shut //开启端口
Router(config-if)#exit //退出全局模式
Router(config)#interface s1/0 //进入s1/0端口
Router(config-if)#ip address 192.168.0.1 255.255.255.0 //配置端口
ip
很不错的文档
Router(config-if)#clock rate 64000 //设置时钟频率
Router(config-if)#no shut //开启端口
Router(config-if)#exit
Router(config)#router rip //创建rip路由进程
Router(config-router)#version 2 //配置发送版本
Router(config-router)#network 10.1.1.0 //定义关联网络 与路由相连的网络 Router(config-router)#network 192.168.0.0 //定义关联网络 与路由相连的网络
Router(config-router)#exit
//查看ip rout
Router#show ip rout
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
R 10.0.0.0/8 [120/1] via 192.168.0.2, 00:00:11, Serial1/0
C 10.1.1.0/24 is directly connected, FastEthernet0/0
C 192.168.0.0/24 is directly connected, Serial1/0
R 192.168.1.0/24 [120/1] via 192.168.0.2, 00:00:11, Serial1/0
路由1配置
Router>enable
Router#configure terminal
很不错的文档
Router(config)#interface f0/0
Router(config-if)#ip address 10.2.1.1 255.255.255.0
Router(config-if)#no shut
Router(config-if)#exit
Router(config)#interface s1/0
Router(config-if)#ip address 192.168.0.2 255.255.255.0
Router(config-if)#no shut
Router(config-if)#exit
Router(config)#interface s1/1
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#clock rate 64000
Router(config-if)#no shut
Router(config-if)#exit
Router(config)#router rip
Router(config-router)#network 192.168.0.0
Router(config-router)#network 192.168.1.0
Router(config-router)#network 10.0.0.0 //network 直连主类网络 Router(config-router)#version 2
Router(config-router)#exit
Router#show ip rout
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
很不错的文档
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
R 10.0.0.0/8 [120/1] via 192.168.0.1, 00:00:24, Serial1/0
[120/1] via 192.168.1.2, 00:00:22, Serial1/1
C 10.2.1.0/24 is directly connected, FastEthernet0/0
C 192.168.0.0/24 is directly connected, Serial1/0
C 192.168.1.0/24 is directly connected, Serial1/1
路由2配置
Router>enable
Router#configure terminal
Router(config)#interface f0/0
Router(config-if)#ip address 10.3.1.1 255.255.255.0
Router(config-if)#no shut
Router(config-if)#exit
Router(config)#interface s1/0
Router(config-if)#ip address 192.168.1.2 255.255.255.0
Router(config-if)#no shut
Router(config)#exit
Router(config)#router rip
Router(config-router)#version 2
Router(config-router)#network 10.0.0.0
Router(config-router)#network 192.168.1.0
Router(config-router)#exit
很不错的文档
Router#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
R 10.0.0.0/8 [120/1] via 192.168.1.1, 00:00:01, Serial1/0
C 10.3.1.0/24 is directly connected, FastEthernet0/0
R 192.168.0.0/24 [120/1] via 192.168.1.1, 00:00:01, Serial1/0
C 192.168.1.0/24 is directly connected, Serial1/0