说明:试验一是基本联通性试验,试验二是在这基础上,所以就只贴实验2的过程.
特别说明:书上要求网夹1里在本次试验中只用到了3台路由器,P1R1 ,P1R3 ,BBR1本例子中的R1 R3 R5分别对应P1R1 ,P1R3 ,BBR1
BBR1上的S0口地址我改为172.31.1.5 E0地址改为10.254.0.5
具体的拓扑图 请参看(人邮自学指南BSCI)第一章后面的试验图
下面用红色标记出的是书上没提及的,也就是说没有它实际试验实验是不成功的.
还需要特别注意的是,TFTP服务器如果是一台双网卡电脑的话,尽量再实验的时候关掉暂时不用的那一块网卡,否则你可能需要去配置计算机上的静态路由,且实际中尽管能正确配置静态路由 也未必能实验成功,所以还是关了的干净!
==========BBR1的配置
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname r5-2501
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
!
!
!
!
interface Loopback0
ip address 5.5.5.5 255.0.0.0
!
interface Ethernet0
ip address 10.254.0.5 255.255.255.0
!
interface Serial0
ip address 172.31.1.5 255.255.255.0
encapsulation frame-relay
no fair-queue
no arp frame-relay
frame-relay map ip 172.31.1.1 501 broadcast
frame-relay map ip 172.31.1.2 502 broadcast
no frame-relay inverse-arp
!
interface Serial1
no ip address
shutdown
!
ip http server
ip classless
ip route 192.168.1.0 255.255.255.0 172.31.1.1
!
!
!
!
line con 0
logging synchronous
line aux 0
line vty 0 4
login
!
end
================P1R1的配置
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname r1-2514
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
!
!
!
!
interface Loopback0
ip address 1.1.1.1 255.0.0.0
!
interface Ethernet0
ip address 10.1.1.1 255.255.255.0
ip nat inside
!
interface Ethernet1
no ip address
shutdown
!
interface Serial0
ip address 172.31.1.1 255.255.255.0
ip nat outside
encapsulation frame-relay
no arp frame-relay
frame-relay map ip 172.31.1.2 102 broadcast
frame-relay map ip 172.31.1.5 105 broadcast
no frame-relay inverse-arp
!
interface Serial1
ip address 10.1.0.1 255.255.255.0
clock rate 125000
!
ip nat pool bbr 192.168.1.1 192.168.1.254 prefix-length 24
ip nat inside source list 100 pool bbr
ip http server
ip classless
ip route 10.0.0.0 255.0.0.0 172.31.1.5
!
!
access-list 100 permit ip 10.1.1.0 0.0.0.255 10.254.0.0 0.0.0.255
!
!
line con 0
logging synchronous
line aux 0
line vty 0 4
login
!
end
=========P1R3的配置
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname r3-2514
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
!
!
!
!
interface Loopback0
ip address 3.3.3.3 255.0.0.0
!
interface Ethernet0
ip address 10.1.1.3 255.255.255.0
!
interface Ethernet1
no ip address
shutdown
!
interface Serial0
no ip address
shutdown
no fair-queue
!
interface Serial1
ip address 10.1.3.3 255.255.255.0
clock rate 125000
!
ip http server
ip classless
ip route 0.0.0.0 0.0.0.0 Ethernet0
!
!
!
!
line con 0
logging synchronous
line aux 0
line vty 0 4
login
!
end
可以参考上面的配置去配置另一组设备就是P1R2 P1R4!
下面的这个是P1R1在实验过程中的NAT调试信息:
*Mar 1 02:04:27.247: NAT: s=10.1.1.3->192.168.1.1, d=10.254.0.254 [0]
*Mar 1 02:04:27.407: NAT*: s=10.254.0.254, d=192.168.1.1->10.1.1.3 [7355]
*Mar 1 02:04:27.419: NAT*: s=10.1.1.3->192.168.1.1, d=10.254.0.254 [1]
*Mar 1 02:04:27.507: NAT*: s=10.254.0.254, d=192.168.1.1->10.1.1.3 [7356]
*Mar 1 02:04:27.519: NAT*: s=10.1.1.3->192.168.1.1, d=10.254.0.254 [2]
*Mar 1 02:04:27.555: NAT*: s=10.254.0.254, d=192.168.1.1->10.1.1.3 [7357]
检验了实验的正确.
文章评论