Configuration Example of a VRF Instance-HUAWEI

*******VRF Instance Configuration-GPON*******

  • Configure VRF1 (for VPN1).
    1. Create a VPN instance.
      OLT(config)#ip vpn-instance vpn1
    2. Configure the RD of the VPN instance.
      OLT(config-vpn-instance-vpn1)#route-distinguisher 100:1
    3. Create a smart VLAN and add the upstream port and the service port to it.
      OLT(config-vpn-instance-vpn1)#quit
      OLT(config)#vlan 200 smart
      OLT(config)#port vlan 200 0/19 0
      OLT(config)#service-port vlan 200 gpon 0/2/0 ont 0 gemport 0 multi-service
       user-8021p 0 user-vlan 200 rx-cttr 6 tx-cttr 6
    4. Associate the L3 interface with the VPN instance.
      OLT(config)#interface vlanif 200
      OLT(config-if-vlanif200)#ip binding vpn-instance vpn1  
       All IPv4 related configurations on this interface are removed!
    5. Configure the IP address of the VLAN L3 interface.
      OLT(config-if-vlanif200)#ip address 10.10.10.1 24
    6. Configure the static route.
      OLT(config-if-vlanif200)#quit
      OLT(config)#ip route-static vpn-instance vpn1 10.10.20.0 24 10.10.10.2
    7. Save the data.
      OLT(config)#save
      
  • Configure VRF2 (for VPN2).
    1. Create a VPN instance.
      OLT(config)#ip vpn-instance vpn2
    2. Configure the RD of the VPN instance.
      OLT(config-vpn-instance-vpn2)#route-distinguisher 100:2
    3. Create a smart VLAN and add the upstream port and the service port to it.
      OLT(config-vpn-instance-vpn2)#quit
      OLT(config)#vlan 300 smart
      OLT(config)#port vlan 300 0/19 0
      OLT(config)#service-port vlan 300 gpon 0/2/1 ont 1 gemport 1 multi-service
       user-8021p 0 user-vlan 300 rx-cttr 6 tx-cttr 6
    4. Associate the L3 interface with the VPN instance.
      OLT(config)#interface vlanif 300
      OLT(config-if-vlanif300)#ip binding vpn-instance vpn2  
       All IPv4 related configurations on this interface are removed!
    5. Configure the IP address of the VLAN L3 interface.
      OLT(config-if-vlanif300)#ip address 10.10.10.1 24
    6. Configure the static route.
      OLT(config-if-vlanif300)#quit
      OLT(config)#ip route-static vpn-instance vpn2 10.10.30.0 24 10.10.10.3
    7. Save the data.
      OLT(config)#save

                                                                                  ******END*******

Be the first to comment

Leave a Reply

Your email address will not be published.


*


For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.

I agree to these terms.