配置 OSPF GTSM 特性示例
写在前面:本人是一名计算机系大二的学生,会不定时的将我的学习笔记分享给大家!如果需要更多的学习资源可以通过我的GitHub自行下载!
配置 OSPF GTSM 特性示例
实验topo
配置要求
-
配置各接口的 IP 地址
-
配置 OSPF 基本功能
-
配置 OSPF GTSM ,指定有效TTL范围,在 R1上配置到其他路由器的最大有效 TTL 范围 255 到 255;在 R2\R3 上配置到其他设备的有效 TTL 范围 254 到 255。
实验演示
1、基本地址配置
[r1]
#
interface GigabitEthernet0/0/0
ip address 14.1.1.1 255.255.255.0
#
interface GigabitEthernet0/0/1
ip address 12.1.1.1 255.255.255.0
#
interface GigabitEthernet2/0/0
ip address 13.1.1.1 255.255.255.0
#
[r2]
#
interface GigabitEthernet0/0/0
ip address 12.1.1.2 255.255.255.0
#
[r3]
#
interface GigabitEthernet2/0/0
ip address 13.1.1.2 255.255.255.0
#
[r4]
#
interface GigabitEthernet0/0/0
ip address 14.1.1.2 255.255.255.0
#
2、配置ospf
[r1]
#
ospf 1
area 0.0.0.0
network 14.1.1.0 0.0.0.255
area 0.0.0.1
network 12.1.1.0 0.0.0.255
network 13.1.1.0 0.0.0.255
#
[r2]
#
ospf 1
area 0.0.0.1
network 12.1.1.0 0.0.0.255
#
[r3]
#
ospf 1
area 0.0.0.1
network 13.1.1.0 0.0.0.255
#
[r4]
#
ospf 1
area 0.0.0.0
network 14.1.1.0 0.0.0.255
#
在r1上验证
<r1>DIS ospf PEER BR
OSPF Process 1 with Router ID 1.1.1.1
Peer Statistic Information
----------------------------------------------------------------------------
Area Id Interface Neighbor id State
0.0.0.0 GigabitEthernet0/0/0 4.4.4.4 Full
0.0.0.1 GigabitEthernet0/0/1 2.2.2.2 Full
0.0.0.1 GigabitEthernet2/0/0 3.3.3.3 Full
----------------------------------------------------------------------------
3、配置ospf gtsm
[r1]
#
ospf valid-ttl-hops 1
#
[r2]
#
ospf valid-ttl-hops 2
#
[r3]
#
ospf valid-ttl-hops 2
#
验证结果
<r1> display gtsm statistics all
GTSM Statistics Table
----------------------------------------------------------------
SlotId Protocol Total Counters Drop Counters Pass Counters
----------------------------------------------------------------
0 BGP 0 0 0
0 BGPv6 0 0 0
0 OSPF 0 0 0
0 LDP 0 0 0
1 BGP 0 0 0
1 BGPv6 0 0 0
1 OSPF 0 0 0
1 LDP 0 0 0
2 BGP 0 0 0
2 BGPv6 0 0 0
2 OSPF 0 0 0
2 LDP 0 0 0
3 BGP 0 0 0
3 BGPv6 0 0 0
3 OSPF 0 0 0
3 LDP 0 0 0
----------------------------------------------------------------
2 BGPv6 0 0 0
2 OSPF 0 0 0
2 LDP 0 0 0
3 BGP 0 0 0
3 BGPv6 0 0 0
3 OSPF 0 0 0
3 LDP 0 0 0
----------------------------------------------------------------
- 在缺省动作是通过且没有非法报文的情况下,丢弃的报文数是 0
本文均属肉肉原创,如有不详或错误,欢迎指出!
本文作者:肉肉
版权声明:博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明出处!
谢谢你的喜欢!