Optional capabilities:
Route refresh capability has been enabled
4-byte-as capability has been enabled
Nexthop self has been configured
Connect-interface has been configured
GTSM has been enabled, valid-ttl-hops: 2
Peer Preferred Value: 0
Routing policy configured:
No routing policy is configured
You can view that GTSM is configured, the valid hop count is 2, and the BGP connection is in
the Established state.
NOTE
l
In this example, if the value of
valid-ttl-hops
of either Switch B or Switch D is smaller than 2, the
IBGP connection cannot be set up.
l
GTSM must be configured on the two ends of the BGP connection.
Step 10
Verify the configuration.
# Run the
display gtsm statistics all
command on Switch B to check the GTSM statistics of
Switch B. By default, Switch B does not discard any packet when all packets match the GTSM
policy.
<SwitchB>
display gtsm statistics all
GTSM Statistics Table
----------------------------------------------------------------
SlotId Protocol Total Counters Drop Counters Pass Counters
----------------------------------------------------------------
0 BGP 17 0 17
0 BGPv6 0 0 0
0 OSPF 0 0 0
0 LDP 0 0 0
----------------------------------------------------------------
If the host simulates the BGP packets of Switch A to attack Switch B, the packets are discarded
because their TTL value is not 255 when reaching Switch B. In the GTSM statistics of Switch
B, the number of dropped packets increases accordingly.
----End
Configuration Files
l
Configuration file of Switch A
#
sysname SwitchA
#
vlan batch 10
#
interface Vlanif10
ip address 10.1.1.1 255.255.255.0
#
interface XGigabitEthernet0/0/1
port hybrid pvid vlan 10
port hybrid untagged vlan 10
#
bgp 10
router-id 1.1.1.9
peer 10.1.1.2 as-number 20
peer 10.1.1.2 valid-ttl-hops 1
#
ipv4-family unicast
undo synchronization
peer 10.1.1.2 enable
#
S6700 Series Ethernet Switches
Configuration Guide - IP Routing
7 BGP Configuration
Issue 01 (2012-03-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
493