FAQ:S5700交换机如何利用VRF引流?

发布时间:  2017-05-10 浏览次数:  238 下载次数:  10
问题描述
S5700交换机如何利用VRF引流?
解决方案

1、PC1与PC2互访,将流量引到SW2:

2、SW1关键配置:

#
ip vpn-instance 1
 ipv4-family
  route-distinguisher 1:1
#
ip vpn-instance 2
 ipv4-family
  route-distinguisher 2:2
#
drop-profile default
#

ip route-static vpn-instance 1 11.12.192.2 255.255.255.255 11.12.208.2
ip route-static vpn-instance 2 11.12.193.2 255.255.255.255 11.12.209.2

3、SW2关键配置:

#
ip vpn-instance 1
 ipv4-family
  route-distinguisher 1:1
#
ip vpn-instance 2
 ipv4-family
  route-distinguisher 2:2
#

#
ip route-static vpn-instance 1 11.12.192.2 255.255.255.255 vpn-instance 2 11.12.
209.1
ip route-static vpn-instance 2 11.12.193.2 255.255.255.255 vpn-instance 1 11.12.
208.1
#

4、PC1 ping ping PC2:

PC1>ping 11.12.192.2

Ping 11.12.192.2: 32 data bytes, Press Ctrl_C to break
From 11.12.192.2: bytes=32 seq=1 ttl=125 time=94 ms

 

END