Got it

Importing/exporting route from public to vpn-instance

Created: Feb 26, 2018 14:43:59Latest reply: Mar 1, 2018 01:57:15 3183 3 0 0 0
  Rewarded HiCoins: 0 (problem resolved)

Hi there, people!


This post enquires about the procedure of importing/exporting route from public to vpn-instance. Please see more details as you read further down.


ISSUE DESCRIPTION


I have one NE20 router and one vpn-instance on this router. I need to import/export routes from a public routing table to the vpn-instance routing table. I can exchange routes between vpn-instance, but between public and vpn-instance I cannot.


Could anyone please help me with the procedure of importing/exporting route from public to vpn-instance?


Best regards.
  • x
  • convention:

zain.mirza
zain.mirza Created Nov 13, 2018 07:09:48 (0) (0)
Please provide MOP for the same  
Featured Answers
oyshuo
Created Mar 1, 2018 01:57:15

Hi there!


You may refer to our product documentation to search for your product:


http://support.huawei.com/enterprise/en/index.html

View more
  • x
  • convention:

All Answers
oyshuo
oyshuo Created Mar 1, 2018 01:56:05

CE- PE

# PE1。
[PE1] ip vpn-instance vpna
[PE1-vpn-instance-vpna] ipv4-family
[PE1-vpn-instance-vpna-af-ipv4] route-distinguisher 100:1
[PE1-vpn-instance-vpna-af-ipv4] vpn-target 111:1 both
[PE1-vpn-instance-vpna-af-ipv4] quit
[PE1-vpn-instance-vpna] quit
[PE1] ip vpn-instance vpnb
[PE1-vpn-instance-vpnb] ipv4-family
[PE1-vpn-instance-vpnb-af-ipv4] route-distinguisher 100:2
[PE1-vpn-instance-vpnb-af-ipv4] vpn-target 222:2 both
[PE1-vpn-instance-vpnb-af-ipv4] quit
[PE1-vpn-instance-vpnb] quit
[PE1] interface gigabitethernet 0/2/4
[PE1-Gigabitethernet0/2/4] ip binding vpn-instance vpna
[PE1-Gigabitethernet0/2/4] ip address 10.1.1.2 24
[PE1-Gigabitethernet0/2/4] quit
[PE1] interface gigabitethernet 0/2/5
[PE1-Gigabitethernet0/2/5] ip binding vpn-instance vpnb
[PE1-Gigabitethernet0/2/5] ip address 10.2.1.2 24
[PE1-Gigabitethernet0/2/5] quit

# PE2。
[PE2] ip vpn-instance vpna
[PE2-vpn-instance-vpna] ipv4-family
[PE2-vpn-instance-vpna-af-ipv4] route-distinguisher 200:1
[PE2-vpn-instance-vpna-af-ipv4] vpn-target 111:1 both
[PE2-vpn-instance-vpna-af-ipv4] quit
[PE2-vpn-instance-vpna] quit
[PE2] ip vpn-instance vpnb
[PE2-vpn-instance-vpnb] ipv4-family
[PE2-vpn-instance-vpnb-af-ipv4] route-distinguisher 200:2
[PE2-vpn-instance-vpnb-af-ipv4] vpn-target 222:2 both
[PE2-vpn-instance-vpnb-af-ipv4] quit
[PE2-vpn-instance-vpnb] quit
[PE2] interface gigabitethernet 1/0/0
[PE2-GigabitEthernet1/0/0] ip binding vpn-instance vpna
[PE2-GigabitEthernet1/0/0] ip address 10.3.1.2 24
[PE2-GigabitEthernet1/0/0] quit
[PE2] interface gigabitethernet 2/0/0
[PE2-GigabitEthernet2/0/0] ip binding vpn-instance vpnb
[PE2-GigabitEthernet2/0/0] ip address 10.4.1.2 24
[PE2-GigabitEthernet2/0/0] quit
# PE1。
[PE1] bgp 100
[PE1-bgp] ipv4-family vpn-instance vpna
[PE1-bgp-vpna] peer 10.1.1.1 as-number 65410
[PE1-bgp-vpna] import-route direct
[PE1-bgp-vpna] quit
[PE1-bgp] ipv4-family vpn-instance vpnb
[PE1-bgp-vpnb] peer 10.2.1.1 as-number 65420
[PE1-bgp-vpnb] import-route direct
[PE1-bgp-vpnb] quit
View more
  • x
  • convention:

oyshuo
oyshuo Created Mar 1, 2018 01:57:15

Hi there!


You may refer to our product documentation to search for your product:


http://support.huawei.com/enterprise/en/index.html

View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

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 " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.
Information Protection Guide
Thanks for using Huawei Enterprise Support Community! We will help you learn how we collect, use, store and share your personal information and the rights you have in accordance with Privacy Policy and User Agreement.