静态路由协议的配置实验报告_静态路由配置实战,一分钟了解下

一、静态路由

静态路由是这样的一种路由,它通过人工输入到路由选择表中。

二、静态路由优点

1、不需要动态路由选择协议,这减少了路由器的日常开销。

2、在小型互连网络上很容易配置。

3、可以控制路由选择。

三、静态路由配置

b9afed6dd0490945099040d0cced1247.png

五台路由器,划分成三个网段;要求使用静态路由协议,使得路由器之间能够互相通信

帧中继仅了解即可,不作为掌握技术。重点掌握静态路由配置。

1、R1配置:

R1#sh run

Building configuration...

Current configuration : 743 bytes

!

version 12.2

service timestamps debug uptime

service timestamps log uptime

no service password-encryption

!

hostname R1

!

!

ip subnet-zero

no ip domain-lookup

!

!

!

!

interface Loopback0

ip address 1.1.1.1 255.255.255.255

!

interface Ethernet0

ip address 172.16.1.1 255.255.255.0

!

interface Ethernet1

no ip address

shutdown

!

interface Serial0

no ip address

shutdown

!

interface Serial1

ip address 172.16.2.1 255.255.255.0

encapsulation frame-relay

frame-relay map ip 172.16.2.3 103 broadcast

frame-relay map ip 172.16.2.5 105 broadcast

no frame-relay inverse-arp

!

ip classless

ip route 172.16.3.0 255.255.255.0 172.16.2.3

no ip http server

!

!

!

line con 0

exec-timeout 0 0

logging synchronous

line aux 0

line vty 0 4

!

End

R2#sh run

Building configuration...

Current configuration:

!

version 12.0

service timestamps debug uptime

service timestamps log uptime

no service password-encryption

!

hostname R2

!

!

ip subnet-zero

no ip domain-lookup

!

!

!

!

interface Loopback0

ip address 2.2.2.2 255.255.255.255

no ip directed-broadcast

!

interface Ethernet0

ip address 172.16.1.2 255.255.255.0

no ip directed-broadcast

!

interface Ethernet1

no ip address

no ip directed-broadcast

shutdown

!

interface Serial0

no ip address

no ip directed-broadcast

shutdown

!

interface Serial1

no ip address

no ip directed-broadcast

shutdown

!

no ip http server

ip classless

ip route 172.16.2.0 255.255.255.0 172.16.1.1

ip route 172.16.3.0 255.255.255.0 172.16.1.1

!

!

line con 0

exec-timeout 0 0

logging synchronous

transport input none

line aux 0

line vty 0 4

!

End

R3#sh run

Building configuration...

Current configuration:

!

version 12.0

service timestamps debug uptime

service timestamps log uptime

no service password-encryption

!

hostname R3

!

!

!

!

!

!

ip subnet-zero

no ip domain-lookup

!

cns event-service server

!

!

!

!

!

interface Loopback0

ip address 3.3.3.3 255.255.255.255

no ip directed-broadcast

!

interface Ethernet0

no ip address

no ip directed-broadcast

shutdown

!

interface Serial0

ip address 172.16.3.3 255.255.255.0

no ip directed-broadcast

encapsulation ppp

!

interface Serial1

ip address 172.16.2.3 255.255.255.0

no ip directed-broadcast

encapsulation frame-relay

frame-relay map ip 172.16.2.5 301 broadcast

frame-relay map ip 172.16.2.1 301 broadcast

no frame-relay inverse-arp

!

ip classless

ip route 172.16.1.0 255.255.255.0 172.16.2.1

no ip http server

!

!

!

line con 0

exec-timeout 0 0

logging synchronous

transport input none

line aux 0

line vty 0 4

!

End

R4#sh run

Building configuration...

Current configuration : 798 bytes

!

version 12.1

no service single-slot-reload-enable

service timestamps debug uptime

service timestamps log uptime

no service password-encryption

!

hostname R4

!

logging rate-limit console 10 except errors

!

ip subnet-zero

no ip finger

no ip domain-lookup

!

cns event-service server

!

!

!

!

!

interface Loopback0

ip address 4.4.4.4 255.255.255.255

!

interface Ethernet0

no ip address

shutdown

!

interface Serial0

no ip address

shutdown

!

interface Serial1

ip address 172.16.3.4 255.255.255.0

encapsulation ppp

clockrate 64000

!

ip kerberos source-interface any

ip classless

ip route 172.16.1.0 255.255.255.0 172.16.3.3

ip route 172.16.2.0 255.255.255.0 172.16.3.3

no ip http server

!

!

!

line con 0

exec-timeout 0 0

logging synchronous

transport input none

line aux 0

line vty 0 4

!

End

R5#sh run

Building configuration...

Current configuration:

!

version 12.1

service timestamps debug uptime

service timestamps log uptime

no service password-encryption

!

hostname R5

!

!

!

!

!

!

ip subnet-zero

no ip domain-lookup

!

cns event-service server

!

!

!

interface Loopback0

ip address 5.5.5.5 255.255.255.255

!

interface Ethernet0

no ip address

shutdown

!

interface Serial0

no ip address

shutdown

!

interface Serial1

ip address 172.16.2.5 255.255.255.0

encapsulation frame-relay

frame-relay map ip 172.16.2.3 501 broadcast

frame-relay map ip 172.16.2.1 501 broadcast

no frame-relay inverse-arp

!

ip classless

ip route 172.16.1.0 255.255.255.0 172.16.2.1

ip route 172.16.3.0 255.255.255.0 172.16.2.3

no ip http server

!

!

!

line con 0

exec-timeout 0 0

logging synchronous

transport input none

line aux 0

line vty 0 4

总结:静态路由配置非常简单,就像地图一样需要管理员手动进行绘制,路由目的地及下一跳,可以理解为到达目的地就必须要到达下一站才能逐跳达到。经过的每一跳路由器都都必须有到达目标的路由和下一跳地址。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值