本案例旨在说明路由表、FIB表、快转表的区别,以MSR代替FW
组网如下图,路由通过静态路由打通,测试MSR1的1.1.1.1访问MSR3的loopback地址11.11.11.11
MSR1主要配置:
interface GigabitEthernet0/0
port link-mode route
combo enable copper
ip address 1.1.1.1 255.255.255.0
ip route-static 11.11.11.11 32 1.1.1.2
MSR2的主要配置:
interface GigabitEthernet0/1
port link-mode route
combo enable copper
ip address 1.1.1.2 255.255.255.0
interface GigabitEthernet0/2
port link-mode route
combo enable copper
ip address 2.2.2.2 255.255.255.0
interface GigabitEthernet5/0
port link-mode route
combo enable copper
ip address 3.3.3.2 255.255.255.0
ip route-static 11.11.11.0 24 2.2.2.1 preference 50
ip route-static 11.11.11.11 32 3.3.3.1
MSR3主要配置:
interface GigabitEthernet0/2
port link-mode route
combo enable copper
ip address 2.2.2.1 255.255.255.0
interface GigabitEthernet5/0
port link-mode route
combo enable copper
ip address 3.3.3.1 255.255.255.0
ip route-static 1.1.1.0 24 2.2.2.2
ip route-static 1.1.1.0 24 3.3.3.2
interface LoopBack0
ip address 11.11.11.11 255.255.255.255
配置关键点:
1.
2.
3.
实际例子:
[MSR2]display ip routing-table 11.11.11.11
Summary count : 2
Destination/Mask Proto Pre Cost NextHop Interface
11.11.11.0/24 Static 50 0 2.2.2.1 GE0/2
11.11.11.11/32 Static 60 0 3.3.3.1 GE5/0
[MSR2]display fib
Destination count: 1 FIB entry count: 1
Flag:
U:Useable G:Gateway H:Host B:Blackhole D:Dynamic S:Static
R:Relay F:FRR
Destination/Mask Nexthop Flag OutInterface/Token Label
11.11.11.0/24 2.2.2.1 USGR GE0/2 Null
11.11.11.11/32 3.3.3.1 USGHR GE5/0 Null
以MSR1 ping MSR3的11.11.11.11,在MSR2上可以看到11.11.11.11的快转表,从5/0出去找11.11.11.11,可见快转表来自FIB表
[MSR1]ping 11.11.11.11
Ping 11.11.11.11 (11.11.11.11): 56 data bytes, press CTRL+C to break
56 bytes from 11.11.11.11: icmp_seq=0 ttl=254 time=1.000 ms
56 bytes from 11.11.11.11: icmp_seq=1 ttl=254 time=2.000 ms
56 bytes from 11.11.11.11: icmp_seq=2 ttl=254 time=2.000 ms
56 bytes from 11.11.11.11: icmp_seq=3 ttl=254 time=1.000 ms
56 bytes from 11.11.11.11: icmp_seq=4 ttl=254 time=1.000 ms
--- Ping statistics for 11.11.11.11 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
round-trip min/avg/max/std-dev = 1.000/1.400/2.000/0.490 ms
[MSR1]%Mar 28 10:02:31:765 2022 MSR1 PING/6/PING_STATISTICS: Ping statistics for 11.11.11.11: 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss, round-trip min/avg/max/std-dev = 1.000/1.400/2.000/0.490 ms.
MSR2]display ip fast-forwarding cache
Total number of fast-forwarding entries: 2
SIP SPort DIP DPort Pro Input_If Output_If Flg
1.1.1.1 10973 11.11.11.11 2048 1 GE0/1 GE5/0 1
11.11.11.11 10973 1.1.1.1 0 1 GE5/0 GE0/1 1
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作