交换产品线 >> 常用交换产品技术【非11.x平台】 >> 三层技术 >> GRE >>

1、S5750E交换机GRE配置案例

拓扑:PC1---g0/23--SW1--g0/1------------g0/2--SW2-----PC2

 

SW1交换机配置如下:

interface GigabitEthernet 0/1------->与SW2互联口配置

 no switchport

 no ip proxy-arp

 ip address 1.1.1.1 255.255.255.0

!

interface GigabitEthernet 0/23----->连用户的端口

 no switchport

 no ip proxy-arp

 ip address 192.168.1.1 255.255.255.0

!

interface Loopback 0    ----->GRE的源接口

 ip address 11.11.11.11 255.255.255.0

!

interface Tunnel 0      ----->隧道口配置

 ip address 12.1.1.1 255.255.255.0

 tunnel mode gre ip   ----->默认是ipv6ip,必须配置为gre模式

 tunnel source Loopback 0    ---->设置gre的源口

 tunnel destination 22.22.22.22   ----->设置gre的目的

!

ip route 22.22.22.0 255.255.255.0 1.1.1.2  ---->两个GRE的源口之间必须路由可达

ip route 192.168.2.0 255.255.255.0 Tunnel 0   ------->用户之间的路由

 

SW2交换机配置如下:

interface GigabitEthernet 0/1

 no switchport

 no ip proxy-arp

 ip address 1.1.1.2 255.255.255.0

!

interface GigabitEthernet 0/23

 no switchport

 no ip proxy-arp

 ip address 192.168.2.1 255.255.255.0

!

interface Loopback 0

 ip address 22.22.22.22 255.255.255.0

!

interface Loopback 1

 ip address 192.168.10.1 255.255.255.0

!

interface Tunnel 0

 ip address 12.1.1.2 255.255.255.0

 tunnel mode gre ip

 tunnel source Loopback 0

 tunnel destination 11.11.11.11

!

ip route 11.11.11.0 255.255.255.0 1.1.1.1

ip route 192.168.1.0 255.255.255.0 Tunnel 0

 

 

2、S57-E/P、S6000、S6220、S5760是否支持GRE隧道功能

S5750-24GT/8SFP-E、S5750-48GT/4SFP-E 、S5750-24GT/8SFP-P、S5750-48GT/4SFP-P、S5750-24SFP/8GT-E、S6000-24GT/8SFP、S6000-48GT/4SFP、S6220支持;

S5760不支持;

 

3、S5750E交换机是否支持更改GRE隧道的MTU

不支持,不能更改接口的MTU

Ruijie(config-if-Tunnel 0)#mtu 1500

% Interface Tunnel 0 does not support adjustable maximum datagram size.

默认的MTU为1476

Ruijie#show int tunnel 0

Index(dec):25 (hex):19

Tunnel 0 is UP  , line protocol is UP   

Hardware is  Tunnel

Interface address is: 12.1.1.2/24

  MTU 1476 bytes, BW 9 Kbit

  Encapsulation protocol is Tunnel, loopback not set

  Keepalive interval is no set

  Carrier delay is 2 sec

  Rxload is 1/255, Txload is 1/255

  Tunnel source 22.22.22.22 (Loopback 0), destination 11.11.11.11

  Tunnel TOS/Traffic Class not set, Tunnel TTL 255

  Tunnel protocol/transport GRE/IP

 

4、S5750E交换机配置GRE隧道是否支持分片

支持分片,并且是由CPU上进行分片,并非在芯片上进行分片,这样大量的报文需要分片,有可能导致CPU过高。

主要的进程如下:

Ruijie#show cpu

=======================================

     CPU Using Rate Information

CPU utilization in five seconds: 21.33%

CPU utilization in one minute  :  4.07%

CPU utilization in five minutes:  2.56%

  NO   5Sec   1Min   5Min   Process

  0   0.00%   0.02%   0.02%    LISR INT

  1   0.64%   0.07%   0.01%    HISR INT

  2   0.16%   0.13%   0.13%    ktimer

  3   0.22%   0.15%   0.15%    atimer

 66  10.45%   1.20%   0.24%    tnet   //这个表示IP报文比较多

175   5.73%   0.66%   0.13%    pk_rx_task_0  //表示收包进程比较多

202   0.26%   0.24%   0.24%    Tssptimer

203   0.54%   0.06%   0.01%    pk_inb_free_task

204   0.09%   0.08%   0.08%    hal_cnc_task

237   1.57%   0.18%   0.04%    nac_filter_tsk

238   0.00%   0.00%   0.00%    lml_sfp_task

239   0.34%   0.03%   0.11%    rl_con

240  78.67%  95.93%  97.44%    idle

 

CPP发现other报文值比较大

SW1#show cpu-protect

%cpu port bandwidth: 6000(pps)

Traffic-class   Bandwidth(pps)  Rate(pps)

-------------   --------------  ---------

0               1000            237     

1               1000            1       

2               1500            0       

3               1500            0       

4               1500            0       

5               1500            0       

6               3500            0       

Packet Type       Traffic-class  Bandwidth(pps)  Rate(pps)  Drop(pps)

----------------  -------------  --------------  ---------  ---------

other             0              1000            237        0     //GRE分片后的报文,被归类为other  

bfd               6              3500            0          0      

dldp              6              1000            0          0