BGP与IGP交互实验(2)

 BGP与IGP交互实验(1)中已经将实验过程列出,以下是四个模拟路由器的具体配置:

R5:

 

[R5]dis cu

#

 version 5.20, Alpha 1011

#

 sysname R5

#

 password-control login-attempt 3 exceed lock-time 120

#

 undo voice vlan mac-address 00e0-bb00-0000

#

 ipsec cpu-backup enable

#

 undo cryptoengine enable

#

 domain default enable system

#

vlan 1

#

domain system

 access-limit disable

 state active

 idle-cut disable

 self-service-url disable

#

interface Serial0/6/0

 link-protocol ppp

#

interface Serial0/6/1

 link-protocol ppp

#

interface Serial0/6/2

 link-protocol ppp

#

interface Serial0/6/3

 link-protocol ppp

 ip address 10.1.2.1 255.255.255.0

#

interface NULL0

#

interface LoopBack0

 ip address 10.1.1.1 255.255.255.255

#

interface Ethernet0/4/0

 port link-mode bridge

#

interface Ethernet0/4/1

 port link-mode bridge

#               

interface Ethernet0/4/2

 port link-mode bridge

#

interface Ethernet0/4/3

 port link-mode bridge

#

interface Ethernet0/4/4

 port link-mode bridge

#

interface Ethernet0/4/5

 port link-mode bridge

#

interface Ethernet0/4/6

 port link-mode bridge

#

interface Ethernet0/4/7

 port link-mode bridge

#

interface Ethernet0/4/8

 port link-mode bridge

#

interface Ethernet0/4/9

 port link-mode bridge

#

interface Ethernet0/4/10

 port link-mode bridge

#

interface Ethernet0/4/11

 port link-mode bridge

#

interface Ethernet0/4/12

 port link-mode bridge

#

interface Ethernet0/4/13

 port link-mode bridge

#

interface Ethernet0/4/14

 port link-mode bridge

#

interface Ethernet0/4/15

 port link-mode bridge

#

interface Ethernet0/4/16

 port link-mode bridge

#

interface Ethernet0/4/17

 port link-mode bridge

#

interface Ethernet0/4/18

 port link-mode bridge

#

interface Ethernet0/4/19

 port link-mode bridge

#

interface Ethernet0/4/20

 port link-mode bridge

#

interface Ethernet0/4/21

 port link-mode bridge

#

interface Ethernet0/4/22

 port link-mode bridge

#

interface Ethernet0/4/23

 port link-mode bridge

#

rip 1

 undo summary

 version 2      

 network 10.0.0.0

#

 ip route-static 0.0.0.0 0.0.0.0 10.1.2.2

#

 load xml-configuration

#

user-interface con 0

user-interface vty 0 4

#

return

R1:
 
<R1>
 
 version 5.20, Alpha 1011
#
 sysname R1
#
 password-control login-attempt 3 exceed lock-time 120
#
 undo voice vlan mac-address 00e0-bb00-0000
#
 ipsec cpu-backup enable
#
 undo cryptoengine enable
#
 domain default enable system
#
vlan 1
#
domain system
 access-limit disable
 state active
 idle-cut disable
 self-service-url disable
#
interface Serial0/6/0
 link-protocol ppp
 ip address 10.1.3.1 255.255.255.0
#
interface Serial0/6/1
 link-protocol ppp
#
interface Serial0/6/2
 link-protocol ppp
#
interface Serial0/6/3
 link-protocol ppp
 ip address 10.1.2.2 255.255.255.0
#
interface NULL0
#
interface Ethernet0/4/0
 port link-mode bridge
#
interface Ethernet0/4/1
 port link-mode bridge
#
interface Ethernet0/4/2
 port link-mode bridge
#
interface Ethernet0/4/3
 port link-mode bridge
#
interface Ethernet0/4/4
 port link-mode bridge
#
interface Ethernet0/4/5
 port link-mode bridge
#
interface Ethernet0/4/6
 port link-mode bridge
#
interface Ethernet0/4/7
 port link-mode bridge
#
bgp 100
 import-route direct
 import-route rip 1
 undo synchronization
 peer 10.1.3.2 as-number 200
 group ex external
 peer 10.1.3.2 group ex
#
rip 1
 undo summary
 version 2
 network 10.0.0.0
#
 load xml-configuration
#
user-interface con 0
user-interface vty 0 4
#
return
 
R2
[R2-ospf-1]qu
[R2]dis cu
#
 version 5.20, Alpha 1011
#
 sysname R2
#
 password-control login-attempt 3 exceed lock-time 120
#
 undo voice vlan mac-address 00e0-bb00-0000
#
 ipsec cpu-backup enable
#
 undo cryptoengine enable
#
 domain default enable system
#
vlan 1
#
domain system
 access-limit disable
 state active
 idle-cut disable
 self-service-url disable
#
interface Serial0/6/0
 link-protocol ppp
 ip address 10.1.3.2 255.255.255.0
#
interface Serial0/6/1
 link-protocol ppp
 ip address 10.1.4.1 255.255.255.0
#
interface Serial0/6/2
 link-protocol ppp
#
interface Serial0/6/3
 link-protocol ppp
#
interface NULL0
#
interface Ethernet0/4/0
 port link-mode bridge
#
interface Ethernet0/4/1
 port link-mode bridge
#
interface Ethernet0/4/2
 port link-mode bridge
#
interface Ethernet0/4/3
 port link-mode bridge
#
interface Ethernet0/4/4
 port link-mode bridge
#
interface Ethernet0/4/5
 port link-mode bridge
#
interface Ethernet0/4/6
 port link-mode bridge
#
interface Ethernet0/4/7
 port link-mode bridge
#
bgp 200
 import-route direct
 import-route ospf 1
 undo synchronization
 peer 10.1.3.1 as-number 100
 group ex external
 peer 10.1.3.1 group ex
#
ospf 1
 default-route-advertise always
 area 0.0.0.0
  network 10.1.4.0 0.0.0.255
#
 load xml-configuration
#
user-interface con 0
user-interface vty 0 4
#
return
 
 
R4
 
<R4>dis cu
#
 version 5.20, Alpha 1011
#
 sysname R4
#
 password-control login-attempt 3 exceed lock-time 120
#
 undo voice vlan mac-address 00e0-bb00-0000
#
 ipsec cpu-backup enable
#
 undo cryptoengine enable
#
 domain default enable system
#
vlan 1
#
domain system
 access-limit disable
 state active
 idle-cut disable
 self-service-url disable
#
interface Serial0/6/0
 link-protocol ppp
#
interface Serial0/6/1
 link-protocol ppp
 ip address 10.1.4.2 255.255.255.0
#
interface Serial0/6/2
 link-protocol ppp
#
interface Serial0/6/3
 link-protocol ppp
#
interface NULL0
#
interface LoopBack0
 ip address 10.1.5.1 255.255.255.255
#
interface Ethernet0/4/0
 port link-mode bridge
#
interface Ethernet0/4/1
 port link-mode bridge
#               
interface Ethernet0/4/2
 port link-mode bridge
#
interface Ethernet0/4/3
 port link-mode bridge
#
interface Ethernet0/4/4
 port link-mode bridge
#
interface Ethernet0/4/5
 port link-mode bridge
#
interface Ethernet0/4/6
 port link-mode bridge
#
interface Ethernet0/4/7
 port link-mode bridge
#
ospf 1
 area 0.0.0.0
  network 10.1.4.0 0.0.0.255
  network 10.1.5.1 0.0.0.0
#               
 load xml-configuration
#
user-interface con 0
user-interface vty 0 4
#
return
 

 

你可能感兴趣的:(BGP,IGP)