Configuration of the Routing Policy-HUAWEI

*******Routing policy configuration-GPON********

  1. Configuring OLT-1.
    1. Configure the IP address of the L3 interface on OLT-1.
      OLT-1(config)#vlan 2 smart
      OLT-1(config)#port vlan 2 0/7 0
      OLT-1(config)#interface vlanif 2
      OLT-1(config-if-vlanif2)#ip address 10.0.0.1 24
      OLT-1(config-if-vlanif2)#quit
    2. Enable OSPF on OLT-1 and specify the area ID to which the interface belongs.
      OLT-1(config)#ospf
      OLT-1(config-ospf-1)#area 0
      OLT-1(config-ospf-1-area-0.0.0.0)#network 10.0.0.0 0.0.0.255
      OLT-1(config-ospf-1-area-0.0.0.0)#quit
      OLT-1(config-ospf-1)#quit
    3. Configure the OSPF router ID on OLT-1.
      OLT-1(config)#router id 1.1.1.1
    4. Configure three static routes.
      OLT-1(config)#ip route-static 20.0.0.1 32 vlanif 2 10.0.0.1
      OLT-1(config)#ip route-static 30.0.0.1 32 vlanif 2 10.0.0.1
      OLT-1(config)#ip route-static 40.0.0.1 32 vlanif 2 10.0.0.1
    5. Import static routes into the OSPF routing table to improve its capability of obtaining routes.
      OLT-1(config)#ospf
      OLT-1(config-ospf-1)#import-route static
      OLT-1(config-ospf-1)#quit
    6. Save the data.
      OLT-1(config)#save
  2. Configuring OLT-2.
    1. Configure the IP address of the L3 interface on OLT-2.
      OLT-2(config)#vlan 2 smart
      OLT-2(config)#port vlan 2 0/7 0
      OLT-2(config)#interface vlanif 2
      OLT-2(config-if-vlanif2)#ip address 10.0.0.2 24
      OLT-2(config-if-vlanif2)#quit
    2. Configure the ACL.
      OLT-2(config)#acl 2000
      OLT-2(config-acl-basic-2000)#rule deny source 30.0.0.0 255.255.255.0
      OLT-2(config-acl-basic-2000)#rule permit source any
      OLT-2(config-acl-basic-2000)#quit
    3. Enable OSPF on OLT-2 and specify the area id to which the interface belongs.
      OLT-2(config)#ospf 
      OLT-2(config-ospf-1)#area 0
      OLT-2(config-ospf-1-area-0.0.0.0)#network 10.0.0.0 0.0.0.255
      OLT-2(config-ospf-1-area-0.0.0.0)#quit
      OLT-2(config-ospf-1)#quit
    4. Configure the OSPF router ID of OLT-2.
      OLT-2(config)#router id 2.2.2.2
    5. Filter imported routes.
      OLT-2(config)#ospf
      OLT-2(config-ospf-1)#filter-policy 2000 import
      OLT-2(config-ospf-1)#quit
    6. Save the data.
      OLT-2(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.