Routing
H3C Low-End Ethernet Switches Configuration Examples
Chapter 3 Comprehensive Configuration
Example
3-35
2 196.1.3.1 10 ms 3 ms 8 ms
3 196.1.1.3 8 ms 3 ms 3 ms
4 206.1.2.1 13 ms 4 ms 3 ms
5 166.1.1.2 13 ms 4 ms 3 ms
<S400_0> tracert -a 166.1.3.1 162.1.3.1
traceroute to 162.1.3.1(162.1.3.1) 30 hops max,40 bytes packet
1 206.1.6.3 11 ms 3 ms 3 ms
2 196.1.3.1 14 ms 4 ms 5 ms
3 196.3.1.2 10 ms 8 ms 17 ms
4 196.2.2.2 14 ms 3 ms 3 ms
5 206.1.4.1 13 ms 3 ms 3 ms
6 166.1.2.2 13 ms 3 ms 4 ms
II. Trace the packet forwarding path after the MED is modified
# Create AS path ACL 1 and permit the routes whose AS_PATH starts with 100 and
ends with 200.
[S400] ip as-path-acl 1 permit ^100 200$
# Display the routes that match AS path ACL 1.
<S400> display bgp routing as-path-acl 1
Flags: # - valid ^ - active I - internal
D - damped H - history S - aggregate suppressed
Dest/Mask Next-Hop Med Local-pref Origin Path
----------------------------------------------------------------------
#^ 162.1.1.0/24 196.1.3.1 100 100 INC 100 200
# 162.1.1.0/24 196.2.3.2 200 100 INC 100 200
#^ 162.1.2.0/24 196.1.3.1 100 100 INC 100 200
# 162.1.2.0/24 196.2.3.2 200 100 INC 100 200
#^ 166.1.1.0/24 196.1.3.1 0 100 INC 100
200
# 166.1.1.0/24 196.2.3.2 0 100 INC 100
200
#^ 206.1.3.0 196.1.3.1
0 100 IGP 100
200
# Create AS path ACL 2 and permit the routes whose AS_PATH starts with 100 and
ends with 300.
[S400] ip as-path-acl 2 permit ^100 300$
# Display the routes that match AS path ACL 2.
<S400> display bgp routing as-path-acl 2
Flags: # - valid ^ - active I - internal