Comware

 View Only
last person joined: 2 days ago 

Expand all | Collapse all

PBR Switch 5130

This thread has been viewed 7 times
  • 1.  PBR Switch 5130

    Posted Mar 02, 2022 06:10 PM

    Hello,

    I need help witch a problem between two ISP, I have two routers that give two GW to the Switch 5130 but in this SW I dont know how send the traffic to each router (GW).

    I think that can solve PBR but Im not sure, This is the current configuration, 

    **R1 - 10.31.248.0 22 - GW 10.31.248.100

    ip route-static 10.31.248.0 24 10.31.248.110 description SW-ADMIN_110
    ip route-static 10.31.249.0 24 10.31.248.110 description DATOS_LAN1_10
    ip route-static 10.31.250.0 24 10.31.248.110 description VoIP_LAN1_20
    ip route-static 10.31.251.0 25 10.31.248.110 description IMPRESORAS_LAN1_30
    ip route-static 10.31.251.128 25 10.31.248.110 description CAC_LAN1_40

    **R2 - 10.31.252.0 22 - GW 10.31.252.100

    ip route-static 10.31.252.0 24 10.31.252.120 description SW-ADMIN_LAN2 _120
    ip route-static 10.31.253.0 24 10.31.252.120 description DATOS__LAN2_15
    ip route-static 10.31.254.0 24 10.31.252.120 description VoIP_LAN2_25
    ip route-static 10.31.255.0 25 10.31.252.120 description IMPRESORAS_LAN2_35
    ip route-static 10.31.255.128 25 10.31.252.120 description CAC_LAN2_45

    **SW 5130

    interface Vlan-interface10
    description DATOS_LAN1
    ip address 10.31.249.1 255.255.255.0
    dhcp select relay
    dhcp relay server-address 10.31.248.100
    #
    interface Vlan-interface20
    description VOIP_LAN1
    ip address 10.31.250.1 255.255.255.0
    dhcp select relay
    dhcp relay server-address 10.31.248.100
    #
    interface Vlan-interface30
    description IMPRESORAS_LAN1
    ip address 10.31.251.1 255.255.255.128
    #
    interface Vlan-interface40
    description CACYM_LAN1
    ip address 10.31.251.128 255.255.255.128

    interface Vlan-interface15
    description DATOS_LAN2
    ip address 10.31.253.1 255.255.255.0
    dhcp select relay
    dhcp relay server-address 10.31.252.100
    #
    interface Vlan-interface25
    description VOIP_LAN2
    ip address 10.31.254.1 255.255.255.0
    dhcp select relay
    dhcp relay server-address 10.31.252.100
    #
    interface Vlan-interface35
    description IMPRESORAS_LAN2
    ip address 10.31.255.1 255.255.255.128
    #
    interface Vlan-interface45
    description CACYM_LAN2
    ip address 10.31.255.128 255.255.255.128

    interface Vlan-interface110
    ip address 10.31.252.110 255.255.255.0

    interface Vlan-interface120
    ip address 10.31.252.120 255.255.255.0

    0.0.0.0 0.0.0.0 10.31.248.100

    0.0.0.0 0.0.0.0 10.31.252.100  ----> I need that the second segment (10.31.252.0 22) go for this route

    ***Posible configuration PBR

    acl number 3101
    description PBR_ROUTERS
    rule 1 permit source 10.31.252.100 22

    policy-based-route R2 permit node 5
    if-match acl 3101
    apply next-hop 10.31.252.100 ----> Im not sure if this IP should be the next-hop for segment 10.31.252.100

    interface Vlan-interface120
    ip address 10.31.252.120 255.255.255.0
    ip policy-based-route R2 ----> Im not sure if this is correct in vlan-interface120

    Thanks for the comments!



    ------------------------------
    Jonathan Maldonado
    ------------------------------


  • 2.  RE: PBR Switch 5130

    Posted Apr 12, 2022 04:50 AM
    Some dynamic routing protocols, such as RIPng, can generate a default IPv6 route. For example, an upstream router running RIPng can generate a default IPv6 route and advertise it to other routers. These routers install the default IPv6 route with the next hop being the upstream router. For more information, see the respective chapters on those routing protocols in this configuration guide.

    ------------------------------
    Mary Houck
    ------------------------------