Administration of the Avaya G350 Media Gateway - Avaya Support

Administration of the Avaya G350 Media Gateway - Avaya Support Administration of the Avaya G350 Media Gateway - Avaya Support

downloads.avaya.com
from downloads.avaya.com More from this publisher
13.07.2015 Views

Configuring policy-based routing●The third entry is NULL, which means the packet is dropped.G350-001(super)# ip next-hop-list 1G350-001(super-next hop list 1)#name "Voice_to_HQ"Done!G350-001(super-next hop list 1)#next-hop-ip 1 172.16.1.221Done!G350-001(super-next hop list 1)#next-hop-interface 2 Serial 2/1:1Done!G350-001(super-next hop list 1)#next-hop-interface 3 Null0Done!G350-001(super-next hop list 1)#For additional details about next hop lists, see Next Hop Lists on page 2804. Apply the PBR list to an interface.Use the exit command to return to general context. From general context, enter theinterface to which you want to apply the PBR list. In the interface context, use the ippbr-group command, followed by the number of the PBR list, to attach the list to theinterface. The list will be applied to packets entering the interface.The following example applies PBR list 802 to VLAN 2.G350-001(super)# interface Vlan 2G350-001(super-if:Vlan 2)# ip pbr-group 802Done!G350-001(super-if:Vlan 2)#5. Apply the PBR list to the Loopback interface.The following example applies PBR list 802 to the Loopback interface.G350-001(super)# interface Loopback 1G350-001(super-if:Loopback 1)# ip pbr-group 802Done!G350-001(super-if:Loopback 1)# exitG350-001(super)#6. Type the copy running-config startup-config command. This saves the newpolicy-based routing configuration in the startup configuration file.278 Administration of the Avaya G350 Media Gateway

PBR RulesPBR RulesEach PBR list can have up to 1,500 rules. The first rule that matches the packet specifies thenext hop list for the packet. If no rule matches the packet, the packet is routed according to thedefault rule.This section provides information on how to configure rules in a PBR list and contains thefollowing topics:●●●Overview of rule criteria — an overview of the criteria that can be used in configuring PBRrulesModifying rules — instructions on how to create and edit a PBR ruleRule criteria — instructions on how to configure a PBR rule’s criteriaOverview of rule criteriaYou can configure policy rules to match packets based on one or more of the following criteria:●●●●●●Source IP address, or a range of addressesDestination IP address or a range of addressesIP protocol, such as TCP, UDP, ICMP, IGMPSource TCP or UDP port or a range of portsDestination TCP or UDP port or a range of portsICMP type and code● DSCP fieldUse IP wildcards to specify a range of source or destination IP addresses. The zero bits in thewildcard correspond to bits in the IP address that remain fixed. The one bits in the wildcardcorrespond to bits in the IP address that can vary. Note that this is the opposite of how bits areused in a subnet mask.Note:Note:Note:When you use destination and source ports in a PBR rule, policy-based routingdoes not catch fragments.Note:It is recommended to leave a gap between rule numbers, in order to leave roomfor inserting additional rules at a later time. For example, ip-rule 10, ip-rule 20,ip-rule 30.Issue 3 January 2005 279

Configuring policy-based routing●The third entry is NULL, which means <strong>the</strong> packet is dropped.<strong>G350</strong>-001(super)# ip next-hop-list 1<strong>G350</strong>-001(super-next hop list 1)#name "Voice_to_HQ"Done!<strong>G350</strong>-001(super-next hop list 1)#next-hop-ip 1 172.16.1.221Done!<strong>G350</strong>-001(super-next hop list 1)#next-hop-interface 2 Serial 2/1:1Done!<strong>G350</strong>-001(super-next hop list 1)#next-hop-interface 3 Null0Done!<strong>G350</strong>-001(super-next hop list 1)#For additional details about next hop lists, see Next Hop Lists on page 2804. Apply <strong>the</strong> PBR list to an interface.Use <strong>the</strong> exit command to return to general context. From general context, enter <strong>the</strong>interface to which you want to apply <strong>the</strong> PBR list. In <strong>the</strong> interface context, use <strong>the</strong> ippbr-group command, followed by <strong>the</strong> number <strong>of</strong> <strong>the</strong> PBR list, to attach <strong>the</strong> list to <strong>the</strong>interface. The list will be applied to packets entering <strong>the</strong> interface.The following example applies PBR list 802 to VLAN 2.<strong>G350</strong>-001(super)# interface Vlan 2<strong>G350</strong>-001(super-if:Vlan 2)# ip pbr-group 802Done!<strong>G350</strong>-001(super-if:Vlan 2)#5. Apply <strong>the</strong> PBR list to <strong>the</strong> Loopback interface.The following example applies PBR list 802 to <strong>the</strong> Loopback interface.<strong>G350</strong>-001(super)# interface Loopback 1<strong>G350</strong>-001(super-if:Loopback 1)# ip pbr-group 802Done!<strong>G350</strong>-001(super-if:Loopback 1)# exit<strong>G350</strong>-001(super)#6. Type <strong>the</strong> copy running-config startup-config command. This saves <strong>the</strong> newpolicy-based routing configuration in <strong>the</strong> startup configuration file.278 <strong>Administration</strong> <strong>of</strong> <strong>the</strong> <strong>Avaya</strong> <strong>G350</strong> <strong>Media</strong> <strong>Gateway</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!