您现在的位置: test4exam >> 计算机考试 >> CISCO认证 >> 正文
purpose:目标
1、static router(ip route [network] [subnetwork] [ip]) 静态路由
2、default router 默认路由
ip route
ip default-network [network]
3、dynamic router (rip) 动态路由
Network Topology网络拓扑图
We need: 要求
1. configure RIP between R1,R2 and R3 在R1,R2 and R3配置RIP路由协议
2. configure default network in R1,配置默认路由
###############################################################################
问题:在模拟器中R1的(config)中不能配置default-network
problem:i can't configure default-network in R1 with simulation
###############################################################################
R1
Press Enter to Start
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R1 更改主机名
R1(config)#int s0 配置serial0
R1(config-if)#ip add
R1(config-if)#clock rate 56000 在DCE端配置时钟频率
R1(config-if)#no shut 开启端口
%LINK-3-UPDOWN: Interface Serial0, changed state to up
R1(config-if)#exit
%LINK-3-UPDOWN: Interface Serial0, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down
R1(config)#int e0 配置Ethernet0
R1(config-if)#ip add
R1(config-if)#no shut 开启端口
%LINK-3-UPDOWN: Interface Ethernet0, changed state to up
R1(config-if)#exit
R1(config)#int s1 配置serial1
R1(config-if)#ip add
R1(config-if)#no shut 开启端口
%LINK-3-UPDOWN: Interface Serial1, changed state to up
%LINK-3-UPDOWN: Interface Serial1, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1, changed state to down
R1(config-if)#
%LINK-3-UPDOWN: Interface Serial0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to up
%LINK-3-UPDOWN: Interface Serial1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1, changed state to up
R1(config-if)#eixt
% Invalid input detected at '^' marker.
R1(config-if)#exit
R1(config)#^Z
%SYS-5-CONFIG_I: Configured from console by console
R1#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
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, * - candidate default
U - per-user static route
Gateway of last resort is not set
C
C
C
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#router rip 启用rip路由协议
R1(config-router)#net
R1(config-router)#net
R1(config-router)#net
R1(config-router)#^Z
%SYS-5-CONFIG_I: Configured from console by console
R1#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
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, * - candidate default
U - per-user static route
Gateway of last resort is not set
C
C
C
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#ip ? 问题?这里没有配置default(模拟器上没有此命令)
access-list Named access-list
dhcp Configure DHCP server and relay parameters
domain-lookup Enable IP Domain Name System hostname translation
host Add an entry to the ip hostname table
http HTTP server configuration
nat NAT configuration commands
route Establish static routes
subnet-zero Allow 'subnet zero' subnets
R1(config)#ip default-network
% Invalid input detected at '^' marker.
R1(config)#^Z
%SYS-5-CONFIG_I: Configured from console by console
R1#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
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, * - candidate default
U - per-user static route
Gateway of last resort is not set
C
C
C
R
R
R1(config)#ip ?
access-list Named access-list
dhcp Configure DHCP server and relay parameters
domain-lookup Enable IP Domain Name System hostname translation
host Add an entry to the ip hostname table
http HTTP server configuration
nat NAT configuration commands
route Establish static routes
subnet-zero Allow 'subnet zero' subnets
############################################################################################
R2
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R2
R2(config)#int s1
R2(config-if)#ip add
R2(config-if)#no shut 『配置各个端口ip』
%LINK-3-UPDOWN: Interface Serial1, changed state to up
R2(config-if)#exit
R2(config)#int s0
R2(config-if)#ip add
R2(config-if)#clock rate 56000
R2(config-if)#no shut
%LINK-3-UPDOWN: Interface Serial0, changed state to up
R2(config-if)#exit
R2(config)#
R2(config)#
R2(config)#
%LINK-3-UPDOWN: Interface Serial0, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down
R2(config)#int e0
R2(config-if)#ip add
R2(config-if)#no shut
%LINK-3-UPDOWN: Interface Ethernet0, changed state to up
%LINK-3-UPDOWN: Interface Serial0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to up
R2(config-if)#^Z
%SYS-5-CONFIG_I: Configured from console by console
R2#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
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, * - candidate default
U - per-user static route
Gateway of last resort is not set
C
C
C
R2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#router rip 配置rip动态路由
R2(config-router)#net
R2(config-router)#net
R2(config-router)#net
R2(config-router)#^Z
%SYS-5-CONFIG_I: Configured from console by console
R2#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
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, * - candidate default
U - per-user static route
Gateway of last resort is not set
C
C
C
R2#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
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, * - candidate default
U - per-user static route
Gateway of last resort is not set
C
C
C
R2#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
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, * - candidate default
U - per-user static route
Gateway of last resort is not set
C
C
C
R
R
R2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#ip route
R2(config)#^Z
%SYS-5-CONFIG_I: Configured from console by console
R2#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
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, * - candidate default
U - per-user static route
Gateway of last resort is to network
C
C
C
R
R
S*
R2#ping
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max =
R2#ping
% Unrecognized host or address, or protocol not running.
R2#ping
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max =
############################################################################################R3
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R3
R3(config)#int s0 『配置各个端口ip』
R3(config-if)#ip add
R3(config-if)#clock rate 56000
R3(config-if)#no shut
%LINK-3-UPDOWN: Interface Serial0, changed state to up
R3(config-if)#exit
R3(config)#int s1
R3(config-if)#ip add
R3(config-if)#no shut
%LINK-3-UPDOWN: Interface Serial1, changed state to up
R3(config-if)#exit
R3(config)#^Z
%SYS-5-CONFIG_I: Configured from console by console
R3#show ip route
% Invalid input detected at '^' marker.
R3#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
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, * - candidate default
U - per-user static route
Gateway of last resort is not set
C
C
R3#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R3(config)#router rip 『配置rip路由协议』
R3(config-router)#net
R3(config-router)#net
R3(config-router)#exit
R3(config)#
R3(config)#^Z
%SYS-5-CONFIG_I: Configured from console by console
R3#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
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, * - candidate default
U - per-user static route
Gateway of last resort is not set
C
C
R3#ping
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max =
R3#ping
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max =
R3#ping
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max =
R3#ping
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max =
R3#ping
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max =
R3#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
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, * - candidate default
U - per-user static route
Gateway of last resort is not set
C
C
R
R
R
############################################################################################
R4
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R
R(config)#hostname R4
R4(config)#int e1
R4(config-if)#ip add
R4(config-if)#no shut
%LINK-3-UPDOWN: Interface Ethernet1, changed state to up
R4(config-if)#exit
R4(config)#int e0
R4(config-if)#ip add
R4(config-if)#no shut
%LINK-3-UPDOWN: Interface Ethernet0, changed state to up
R4(config-if)#show ip route
% Invalid input detected at '^' marker.
R4(config-if)#^Z
%SYS-5-CONFIG_I: Configured from console by console
R4#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
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, * - candidate default
U - per-user static route
Gateway of last resort is not set
C
C
R4#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R4(config)#ip route
R4(config)#^Z
%SYS-5-CONFIG_I: Configured from console by console
R4#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
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, * - candidate default
U - per-user static route
Gateway of last resort is to network
C
C
S*
R4#ping
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to
.....
Success rate is 0 percent (0/5), round-trip min/avg/max =
R4#ping
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max =
R4#ping
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to
.....
Success rate is 0 percent (0/5), round-trip min/avg/max =
R4#show run
Building configuration...
!
Version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname R4
!
!
!
ip subnet-zero
!
!
!
!
interface Serial0
no ip address
no ip directed-broadcast
shutdown
!
interface Serial1
no ip address
no ip directed-broadcast
shutdown
!
interface Ethernet0
ip address
no ip directed-broadcast
!
interface Ethernet1
ip address
no ip directed-broadcast
!
!
ip classless
no ip http server
ip route
!
!
line con 0
transport input none
line aux 0
line vty 0 4
!
no scheduler allocate
end
R4#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R4(config)#int e1
R4(config-if)#ip add
R4(config-if)#exit
R4(config)#int e0
R4(config-if)#no ip add
R4(config-if)#ip add
R4(config-if)#exit
R4(config)#int e1
R4(config-if)#ip add
R4(config-if)#no shut
R4(config-if)#exit
R4(config)#int e0
R4(config-if)#ip add
R4(config-if)#no shut
R4(config-if)#^Z
%SYS-5-CONFIG_I: Configured from console by console
下一篇:网络工程师精华笔记
Copyright ©2013-2015 江浙沪招生考试网 All Rights Reserved.
地址: 苏州市姑苏区阊胥路483号(工投创业园) 电话:0512-85551931 邮编: 214000
邮箱: [email protected] 版权所有:苏州迈峰教育科技有限公司 苏ICP备15050684号-2