R1-R2-R3静态路由配置的练习

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

R1配置如下:

R1#

R1#conf t

Enter configuration commands, one per line. End with CNTL/Z. R1(config)#

R1(config)#

R1(config)#hostname R1

R1(config)#

R1(config)#enable secret tony123

R1(config)#

R1(config)#username admin password admin123

R1(config)#

R1(config)#

R1(config)#line vty 0 4

R1(config-line)#

R1(config-line)#password tony 123

R1(config-line)#

R1(config-line)#login

R1(config-line)#

R1(config-line)#exit

R1(config)#

R1(config)#line console 0

R1(config-line)#

R1(config-line)#password tony123

R1(config-line)#

R1(config-line)#login

R1(config-line)#

R1(config-line)#exit

R1(config)#

R1(config)#

R1(config)#int f0/0

R1(config-if)#

R1(config-if)#ip add 12.12.12.1 255.255.255.252

R1(config-if)#

R1(config-if)#no shutdown

R1(config-if)#

R1(config-if)#

*Mar 1 00:15:33.739: %LINK-3-UPDOWN: Interface FastEthernet0/0,

changed state to up

*Mar 1 00:15:34.739: %LINEPROTO-5-UPDOWN: Line protocol on Interface

FastEthernet0/0, changed state to up

R1(config-if)#end

R1#

R1#

R1#

R1#sh ip int br

Interface IP-Address OK? Method Status Protocol

FastEthernet0/0 12.12.12.1 YES manual up up

FastEthernet0/1 unassigned YES unset administratively down down

R1#conf t

Enter configuration commands, one per line. End with CNTL/Z.

R1(config)#

R1(config)#ip route 23.23.23.0 255.255.255.252 ?

A.B.C.D Forwarding router's address

Async Async interface

BVI Bridge-Group Virtual Interface

CDMA-Ix CDMA Ix interface

CTunnel CTunnel interface

DHCP Default Gateway obtained from DHCP

Dialer Dialer interface

FastEthernet FastEthernet IEEE 802.3

Lex Lex interface

Loopback Loopback interface

MFR Multilink Frame Relay bundle interface

Multilink Multilink-group interface

Null Null interface

Port-channel Ethernet Channel of interfaces

Tunnel Tunnel interface

Vif PGM Multicast Host interface

Virtual-PPP Virtual PPP interface

Virtual-TokenRing Virtual TokenRing

XTagATM Extended Tag ATM interface

vmi Virtual Multipoint Interface

R1(config)#ip route 23.23.23.0 255.255.255.252

R1#

*Mar 1 00:39:00.527: %SYS-5-CONFIG_I: Configured from console by console

R1#conf t

Enter configuration commands, one per line. End with CNTL/Z.

R1(config)#ip 23.23.23.0 255.255.255.252 12.12.12.2

^

% Invalid input detected at '^' marker.

R1(config)#ip route 23.23.23.0 255.255.255.252 12.12.12.2

R1(config)#

R1(config)#

R1(config)#end

R1#

R1#

*Mar 1 00:46:04.623: %SYS-5-CONFIG_I: Configured from console by console

R1#show ip route

Codes: C - connected, S - static, 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

i - IS-IS, su - IS-IS summary, 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

23.0.0.0/30 is subnetted, 1 subnets

S 23.23.23.0 [1/0] via 12.12.12.2

12.0.0.0/30 is subnetted, 1 subnets

C 12.12.12.0 is directly connected, FastEthernet0/0

相关文档
最新文档