广州大学城 交友:《转载》NBMA网络环境点对多点上配置OSPF

来源:百度文库 编辑:偶看新闻 时间:2024/04/27 15:37:22
《转载》NBMA网络环境点对多点上配置OSPF2010年05月18日 星期二 17:00

NBMA网络环境点对多点上配置OSPF

使用设备:CISCO2501/CISCO2503/CISCO2511/CISCO4000
实验时间:30分钟

2501最终配置
Building configuration...
Current configuration : 1061 bytes
!
version 12.1
service config
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname 2501A
!
enable secret 5 $1$xo05$xjrhpopV4Mprt4U5H1CWa.
enable password cisco
!
!
!
!
!
ip subnet-zero
no ip finger
no ip domain-lookup
!
!
!
!
interface Loopback0
ip address 2.2.2.2 255.255.255.0
!
interface Ethernet0
no ip address
no ip mroute-cache
shutdown
no cdp enable
!
interface Serial0
ip address 192.1.1.1 255.255.255.0
encapsulation frame-relay IETF
ip ospf network point-to-multipoint
no ip mroute-cache
no fair-queue
frame-relay map ip 192.1.1.2 100 broadcast
frame-relay map ip 192.1.1.3 100 broadcast
frame-relay lmi-type ansi
!
interface Serial1
no ip address
no ip mroute-cache
shutdown
no cdp enable
!
router ospf 64
log-adjacency-changes
network 2.2.2.2 0.0.0.0 area 0
network 192.1.1.0 0.0.0.255 area 0
!
router rip
network 152.1.0.0
!
no ip classless
ip http server
!
no cdp run
!
line con 0
exec-timeout 0 0
transport input none
line aux 0
line vty 0 4
password cisco
login
!
end

2503最终配置
Building configuration...
Current configuration : 1091 bytes
!
version 12.1
service config
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname 2503B
!
enable secret 5 $1$P6J8$6FpOFKbnNkRb8SpyyAsbB.
enable password cisco
!
!
!
!
!
ip subnet-zero
no ip finger
no ip domain-lookup
!
!
!
!
interface Loopback0
ip address 3.3.3.3 255.255.255.0
!
interface Ethernet0
no ip address
no ip mroute-cache
shutdown
no cdp enable
!
interface Serial0
ip address 192.1.1.3 255.255.255.0
encapsulation frame-relay IETF
ip ospf network point-to-multipoint
no ip mroute-cache
frame-relay map ip 192.1.1.1 200 broadcast
frame-relay map ip 192.1.1.2 200 broadcast
frame-relay lmi-type ansi
!
interface Serial1
no ip address
no ip mroute-cache
shutdown
no cdp enable
!
interface BRI0
no ip address
no ip mroute-cache
shutdown
no cdp enable
!
router ospf 64
log-adjacency-changes
network 3.3.3.3 0.0.0.0 area 0
network 192.1.1.0 0.0.0.255 area 0
!
no ip classless
ip http server
!
no cdp run
!
line con 0
exec-timeout 0 0
transport input none
line aux 0
line vty 0 4
password cisco
login
!
end

2511最终配置
Building configuration...
Current configuration : 1380 bytes
!
version 12.1
service config
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname C2511
!
enable secret level 10 5 $1$Z3IH$zi.UrfIWzJxJW1AB4U1vM/
enable secret 5 $1$cS5J$XK/yWe0gWZYV79N3VILUQ.
enable password cisco
!
!
!
!
!
ip subnet-zero
no ip finger
ip host 4000m 2005 1.1.1.1
ip host 2503B 2002 1.1.1.1
ip host 2503A 2001 1.1.1.1
ip host 2501A 2003 1.1.1.1
!
!
!
!
interface Loopback0
ip address 1.1.1.1 255.255.255.0
!
interface Ethernet0
ip address 192.168.0.2 255.255.255.0
no ip mroute-cache
no cdp enable
!
interface Serial0
ip address 192.1.1.2 255.255.255.0
encapsulation frame-relay IETF
ip ospf network point-to-multipoint
no ip mroute-cache
no fair-queue
frame-relay map ip 192.1.1.1 100 broadcast
frame-relay map ip 192.1.1.3 200 broadcast
frame-relay lmi-type ansi
!
interface Serial1
no ip address
no ip mroute-cache
shutdown
no cdp enable
!
router ospf 64
log-adjacency-changes
network 1.1.1.1 0.0.0.0 area 0
network 192.1.1.0 0.0.0.255 area 0
!
ip classless
ip http server
!
no cdp run
privilege exec level 10 show running-config
privilege exec level 10 ping
privilege exec level 10 show sessions
privilege exec level 10 show int
!
line con 0
exec-timeout 0 0
transport input none
line 1 8
no exec
transport input all
line 9 16
line aux 0
line vty 0 4
password cisco
login
!
end

4000最终配置
Building configuration...
Current configuration : 1380 bytes
!
version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname 4000M
!
enable secret 5 $1$s3Ar$n4QhAObUXmmJv.FjZPEcK/
enable password cisco
!
!
!
!
!
ip subnet-zero
no ip routing
!
frame-relay switching
!
!
!
interface Ethernet0
no ip address
no ip route-cache
no ip mroute-cache
shutdown
media-type 10BaseT
!
interface Ethernet1
no ip address
no ip route-cache
no ip mroute-cache
shutdown
media-type 10BaseT
!
interface Serial0
no ip address
encapsulation frame-relay IETF
no ip route-cache
no ip mroute-cache
clockrate 500000
frame-relay lmi-type ansi
frame-relay intf-type dce
frame-relay route 100 interface Serial1 100
frame-relay route 200 interface Serial2 200
!
interface Serial1
no ip address
encapsulation frame-relay IETF
no ip route-cache
no ip mroute-cache
clockrate 500000
frame-relay lmi-type ansi
frame-relay intf-type dce
frame-relay route 100 interface Serial0 100
!
interface Serial2
no ip address
encapsulation frame-relay IETF
no ip route-cache
no ip mroute-cache
clockrate 500000
frame-relay lmi-type ansi
frame-relay intf-type dce
frame-relay route 200 interface Serial0 200
!
interface Serial3
no ip address
no ip route-cache
no ip mroute-cache
shutdown
!
no ip classless
no ip http server
!
!
!
line con 0
line aux 0
line vty 0 4
password cisco
login
!
end

4000上的调试
源码:--------------------------------------------------------------------------------4000M#sh frame-relay pvc
PVC Statistics for interface Serial0 (Frame Relay DCE)
             Active     Inactive    Deleted    Static
   Local       0          0          0          0
   Switched    2          0          0          0
   Unused       0          0          0          0
DLCI = 100, DLCI USAGE = SWITCHED, PVC STATUS = ACTIVE, INTERFACE = Serial0
   input pkts 58          output pkts 92           in bytes 4355   
   out bytes 6374           dropped pkts 0           in FECN pkts 0      
   in BECN pkts 0           out FECN pkts 0       out BECN pkts 0      
   in DE pkts 0          out DE pkts 0      
   out bcast pkts 0       out bcast bytes 0          Num Pkts Switched 58       
   pvc create time 00:14:17, last time pvc status changed 00:14:06
     
DLCI = 200, DLCI USAGE = SWITCHED, PVC STATUS = ACTIVE, INTERFACE = Serial0
   input pkts 58          output pkts 91           in bytes 4459   
   out bytes 6318           dropped pkts 0           in FECN pkts 0      
   in BECN pkts 0           out FECN pkts 0       out BECN pkts 0      
   in DE pkts 0          out DE pkts 0      
   out bcast pkts 0       out bcast bytes 0          Num Pkts Switched 58       
   pvc create time 00:14:20, last time pvc status changed 00:14:09
     
PVC Statistics for interface Serial1 (Frame Relay DCE)
             Active     Inactive    Deleted    Static
   Local       0          0          0          0
   Switched    1          0          0          0
   Unused       0          0          0          0
DLCI = 100, DLCI USAGE = SWITCHED, PVC STATUS = ACTIVE, INTERFACE = Serial1
   input pkts 92          output pkts 58           in bytes 6374   
   out bytes 4355           dropped pkts 0           in FECN pkts 0      
   in BECN pkts 0           out FECN pkts 0       out BECN pkts 0      
   in DE pkts 0          out DE pkts 0      
   out bcast pkts 0       out bcast bytes 0          Num Pkts Switched 92       
   pvc create time 00:14:20, last time pvc status changed 00:14:09
     
PVC Statistics for interface Serial2 (Frame Relay DCE)
             Active     Inactive    Deleted    Static
   Local       0          0          0          0
   Switched    1          0          0          0
   Unused       0          0          0          0
DLCI = 200, DLCI USAGE = SWITCHED, PVC STATUS = ACTIVE, INTERFACE = Serial2
   input pkts 91          output pkts 58           in bytes 6318   
   out bytes 4459           dropped pkts 0           in FECN pkts 0      
   in BECN pkts 0           out FECN pkts 0       out BECN pkts 0      
   in DE pkts 0          out DE pkts 0      
   out bcast pkts 0       out bcast bytes 0          Num Pkts Switched 91       
   pvc create time 00:14:20, last time pvc status changed 00:14:09--------------------------------------------------------------------------------

2511上的调试
源码:--------------------------------------------------------------------------------C2511#sh ip ospf int s0
Serial0 is up, line protocol is up
   Internet Address 192.1.1.2/24, Area 0
   Process ID 64, Router ID 1.1.1.1, Network Type POINT_TO_MULTIPOINT, Cost: 64
   Transmit Delay is 1 sec, State POINT_TO_MULTIPOINT,
   Timer intervals configured, Hello 30, Dead 120, Wait 120, Retransmit 5
Hello due in 00:00:16
   Index 1/1, flood queue length 0
   Next 0x0(0)/0x0(0)
   Last flood scan length is 1, maximum is 1
   Last flood scan time is 4 msec, maximum is 4 msec
   Neighbor Count is 2, Adjacent neighbor count is 2
Adjacent with neighbor 3.3.3.3
Adjacent with neighbor 2.2.2.2
   Suppress hello for 0 neighbor(s)--------------------------------------------------------------------------------

2503上的调试
源码:--------------------------------------------------------------------------------2503B#sh ip ospf ne
Neighbor ID     Pri State           Dead Time Address       Interface
1.1.1.1           1 FULL/   -        00:01:30 192.1.1.2    Serial0--------------------------------------------------------------------------------

实验的几点补充说明
该实验首先配置2511,使其可以管理其他所有路由器。
配置2511
连接2501,配置2501 [首次登陆需输入2501A,切换是Ctrl+Shift+6再按X,再次进入只要输入连接号,连接号的查询方法show sessions,断开连接命令是discontect 连接号 ]

所有的路由器都在area 0 中
连接2503,配置2503
连接4000,配置帧中继交换机
请按照以上方法配置

转载自:http://211.99.128.10:8080/thread-52771-1-1.html