天天看點

用cisco配置幀中繼交換機同時配置ospf

配置環境為:

R1 s0/0 ------  s0/0 cisco FR  s0/1 ------ R2 s0/1

             dlci 102                            dlci 201

首先配置Cisco frame-relay

Router#conf t

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

Router(config)#ho FR

FR(config)#

FR(config)#frame sw

FR(config)#int s0/0

FR(config-if)#encap fr

FR(config-if)#frame lmi-type cisco

FR(config-if)#frame intf-type dce

FR(config-if)#clock rate 64000

FR(config-if)#frame route 102 int s0/1 201

FR(config-if)#no shut

FR(config)#int s0/1

FR(config-if)#frame route 201 int s0/0 102

配置R1

Router(config)#ho R1

R1(config)#int loop0

R1(config-if)#ip add 1.1.1.1 255.255.255.0

R1(config-if)#no shu

R1(config-if)#no shutdown

R1(config-if)#ip os

R1(config-if)#ip ospf net p

R1(config-if)#ip ospf net point-to-p

R1(config-if)#

R1(config)#int s0/0

R1(config-if)#ip add 192.168.1.1 255.255.255.0

R1(config-if)#en fr

R1(config-if)#fr map ip 192.168.1.1 102 br

R1(config-if)#fr map ip 192.168.1.2 102 br

配置R3

Router(config)#ho R3

R3(config)#int loop 0        

R3(config-if)#

R3(config-if)#ip add 2.2.2.2 255.255.255.0

R3(config-if)#no shu

R3(config-if)#ip os      

R3(config-if)#ip ospf net p

R3(config-if)#ip ospf net point-to-p

R3(config)#int s0/1

R3(config-if)#ip add 192.168.1.2 255.255.255.0

R3(config-if)#en fr 

R3(config-if)#fr map ip 192.168.1.1 201 br

R3(config-if)#fr map ip 192.168.1.2 201 br

R3(config-if)#ip ospf ne p

R3(config-if)#ip ospf ne point-to-p

R3#ping 192.168.1.1

ping一下測試成功,然後就是配置OSPF了比較簡單就不做試驗了

繼續閱讀