GRE configuration on S series switch

Created: Apr 13, 2017 08:26:56Latest reply: Apr 13, 2017 16:31:08 738 2 0 0
GRE configuration on S series switch
  • x
  • convention:

user_2790689     Created Apr 13, 2017 11:45:46 Helpful(0) Helpful(0)

ding
  • x
  • convention:

Lucio  Visitor   Created Apr 13, 2017 16:31:08 Helpful(0) Helpful(0)

"Before configuring GRE, ensure that there is a reachable route between two ends of the tunnel.
In this example, the source address is 10.1.1.1/24 and the destination address is 10.2.1.1/24 (the source and destination addresses on the remote end are mirrored). The local end's subnet is 192.168.1.0/24, and the remote subnet is 192.168.2.0.The configurations on S series switches, except S1700 are as follows:
Local end:
[HUAWEI1] interface tunnel 1 //Create a tunnel interface.
[HUAWEI1-Tunnel1] tunnel-protocol gre //Configure the GRE tunnel.
[HUAWEI1-Tunnel1] ip address 172.16.1.1 255.255.255.0  //Configure IP addresses for the GRE tunnel for routing.
[HUAWEI1-Tunnel1] source 10.1.1.1  //Configure the source address for the GRE tunnel.
[HUAWEI1-Tunnel1] destination 10.2.1.1 //Configure the destination address for the GRE tunnel.
[HUAWEI1-Tunnel1] quit
[HUAWEI1] ip route-static 192.168.2.0 255.255.255.0 tunnel 1 //Configure connection between connected subnets through the GRE tunnel.
Remote device:
[HUAWEI2] interface tunnel 1 //Create a tunnel interface.
[HUAWEI2-Tunnel1] tunnel-protocol gre //Configure the GRE tunnel.
[HUAWEI2-Tunnel1] ip address 172.16.1.1 255.255.255.0  //Configure IP addresses for the GRE tunnel for routing.
[HUAWEI2-Tunnel1] source 10.2.1.1  //Configure the source address for the GRE tunnel.
[HUAWEI2-Tunnel1] destination 10.1.1.1 //Configure the destination address for the GRE tunnel.
[HUAWEI2-Tunnel1] quit
[HUAWEI2] ip route-static 192.168.1.0 255.255.255.0 tunnel 1 //Configure connection between connected subnets through the GRE tunnel."
  • x
  • convention:

Reply

Reply
You need to log in to reply to the post Login | Register

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " Privacy."
If the attachment button is not available, update the Adobe Flash Player to the latest version!

Login and enjoy all the member benefits

Login
Fast reply Scroll to top