MPLS/VPN 实验: ISIS/EIGRP

来源:互联网 发布:windows 运行指令 编辑:程序博客网 时间:2024/05/20 06:55

此实验在前OSPF/STATIC的配置基础上,将配置改变,就可以作为此实验了。

需要改变的配置是CE - PE之间的协议,以及PE-P-PE之间的协议.

删除相关的静态配置以及OSPF协议.

在CE上配置EIGRP协议:

router eigrp 1
 network 1.1.1.1 0.0.0.0
 network 192.168.1.0 0.0.0.3
 no auto-summary

建立起EIGRP邻居:

CE1#sh ip eigrp neighbors
IP-EIGRP neighbors for process 1
H   Address                 Interface       Hold Uptime   SRTT   RTO  Q  Seq
                                            (sec)         (ms)       Cnt Num
0   192.168.1.2             Fa0/0             12 00:34:49   86  1161  0  6

在PE路由器上的配置:

EIGRP:

router eigrp 1
 network 192.168.1.0 0.0.0.3
 no auto-summary
 !
 address-family ipv4 vrf vpn
  redistribute bgp 100 metric 1000000 1 255 1 1500
  network 192.168.1.0 0.0.0.3
  auto-summary
  autonomous-system 1
 exit-address-family

在PE上输入这些配置之后,EIGRP邻居才会建立起来.

配置ISIS协议:

router isis
 net 49.2222.2222.2222.00
 is-type level-2-only

ISIS 协议配置的不多,就是启动此协议,然后在相应的接口上输入命令:ip router isis

BGP配置如:

!
router bgp 100
 no bgp default ipv4-unicast
 bgp log-neighbor-changes
 neighbor 4.4.4.4 remote-as 100
 neighbor 4.4.4.4 update-source Loopback0
 !
 address-family ipv4
  neighbor 4.4.4.4 activate
  no auto-summary
  no synchronization
 exit-address-family
 !
 address-family vpnv4
  neighbor 4.4.4.4 activate
  neighbor 4.4.4.4 send-community extended
 exit-address-family
 !
 address-family ipv4 vrf vpn
  redistribute eigrp 1 metric 10
  no synchronization
  network 192.168.1.0 mask 255.255.255.252
 exit-address-family
!

配置和前实验的相关不多,只是重分发的问题而已。

查看学习到的路由信息:

PE1#sh ip bgp vpnv4 all
BGP table version is 16, local router ID is 2.2.2.2
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
Route Distinguisher: 100:1 (default for vrf vpn)
*> 1.1.1.1/32       192.168.1.1             10         32768 ?
*>i5.0.0.0          4.4.4.4                 10    100      0 ?
*> 192.168.1.0/30   0.0.0.0                  0         32768 i
*>i192.168.2.0/30   4.4.4.4                  0    100      0 i

 

 

PE1#sh ip bgp vpnv4 vrf vpn
BGP table version is 16, local router ID is 2.2.2.2
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
Route Distinguisher: 100:1 (default for vrf vpn)
*> 1.1.1.1/32       192.168.1.1             10         32768 ?
*>i5.0.0.0          4.4.4.4                 10    100      0 ?
*> 192.168.1.0/30   0.0.0.0                  0         32768 i
*>i192.168.2.0/30   4.4.4.4                  0    100      0 i

 

原创粉丝点击