![Huawei S6700 Series Configuration Manual Download Page 194](http://html.mh-extra.com/html/huawei/s6700-series/s6700-series_configuration-manual_169517194.webp)
l
Valid TTL range of packets between switches
Procedure
Step 1
Configure VLANs that interfaces belong to.
<Quidway>
system-view
[Quidway]
sysname SwitchA
[SwitchA]
vlan batch 10 20
[SwitchA]
interface xgigabitethernet 0/0/1
[SwitchA-XGigabitEthernet0/0/1]
port hybrid pvid vlan 10
[SwitchA-XGigabitEthernet0/0/1]
port hybrid untagged vlan 10
[SwitchA-XGigabitEthernet0/0/1]
quit
[SwitchA]
interface xgigabitethernet 0/0/2
[SwitchA-XGigabitEthernet0/0/2]
port hybrid pvid vlan 20
[SwitchA-XGigabitEthernet0/0/2]
port hybrid untagged vlan 20
[SwitchA-XGigabitEthernet0/0/2]
quit
The configurations of SwitchB, SwitchC, SwitchD, SwitchE, and SwitchF are similar to the
configuration of SwitchA, and are not mentioned here.
Step 2
Assign an IP address to each VLANIF interface.
[SwitchA]
interface vlanif 10
[SwitchA-Vlanif10]
ip address 192.168.0.1 24
[SwitchA-Vlanif10]
quit
[SwitchA]
interface vlanif 20
[SwitchA-Vlanif20]
ip address 192.168.1.1 24
[SwitchA-Vlanif20]
quit
The configurations of SwitchB, SwitchC, SwitchD, SwitchE, and SwitchF are similar to the
configuration of SwitchA, and are not mentioned here.
Step 3
Configure basic OSPF functions. The configuration details see Example for Configuring Basic
OSPF Functions.
Step 4
Configure OSPF GTSM.
# Configure the valid TTL range of packets from Switch C to other switches as [252, 255].
[SwitchC]
ospf valid-ttl-hops 4
# Configure the valid TTL range of packets from Switch A to Switch C as [255, 255].
[SwitchA]
ospf valid-ttl-hops 1
# Configure the valid TTL range of packets from Switch B to Switch C as [254, 255].
[SwitchB]
ospf valid-ttl-hops 2
# Configure the valid TTL range of packets from Switch D to Switch C as [253, 255].
[SwitchD]
ospf valid-ttl-hops 3
# Configure the valid TTL range of packets from Switch E to Switch C as [255, 255].
[SwitchE]
ospf valid-ttl-hops 1
# Configure the valid TTL range of packets from Switch F to Switch C as [252, 255].
[SwitchF]
ospf valid-ttl-hops 4
Step 5
Verify the configuration.
# Check whether OSPF neighbors between switches are established normally. Take Switch A
as an example. You can view the status of the neighbor relationship is Full, that is, neighbors
are established normally.
S6700 Series Ethernet Switches
Configuration Guide - IP Routing
4 OSPF Configuration
Issue 01 (2012-03-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
175