3 configuration examples, 3 configuration examples -7 – PLANET XGS3-24042 User Manual

Page 278

Advertising
background image

34-7

set tag <tag_val>

no set tag [ <tag_val> ]

Set OSPF routing tag

value; The no command

deletes the configuration

set vpnv4 next-hop <ip_addr>

no set vpnv4 next-hop [ <ip_addr> ]

Set BGP VPNv4

next-hop address; the no

command deletes the

configuration

set weight < weight_val>

no set weight [ <weight_val> ]

Set BGP routing weight;

The no command deletes

the configuration

4. Define address prefix list

Command

Explanation

Global mode

ip prefix-list <list_name> description <description>

no ip prefix-list <list_name> description

Describe the prefix list;

The no ip prefix-list

<list_name>

description command

deletes the configuration.

ip prefix-list <list_name> [seq <sequence_number>]

<deny | permit> < any | ip_addr/mask_length [ge

min_prefix_len] [le max_prefix_len]>

no ip prefix-list <list_name> [seq <sequence_number>]

[<deny | permit> < any | ip_addr/mask_length [ge

min_prefix_len] [le max_prefix_len]>]

Set the prefix list; The no

ip prefix-list

<list_name> [seq

<sequence_number>]

[<deny | permit> < any |

ip_addr/mask_length

[ge min_prefix_len] [le

max_prefix_len]>]

command deletes the

configuration.

34.2.3 Configuration Examples

The figure below shows a network consisting of four Layer 3 switches. This example demonstrates how to set

the BGP as-path properties through route-map. BGP protocol is applied among the Layer 3 switches. As for

switchC, the network 192.68.11.0/24 can be reached through two paths in which one is AS-PATH 1 by IBGP

(going through SwitchD), the other one is AS-PATH 2 by EBGP (going through SwitchB). BGP selects the

shortest path, so AS-PATH 1 is the preferred path. If the path 2 is wished, which is through EBGP path, we

can add two extra AS path numbers into the AS-PATH messages from SwitchA to SwitchD so as to change

the determination SwitchC take to 192.68.11.0/24.

Advertising
This manual is related to the following products: