实验1静态ECMP的浮动静态路由配置

实验任务1:静态ECMP配置

  1. 建立物理连接

  2. 静态等价路由的配置
    [RTA]ip route-static 192.168.2.0 24 192.168.1.2
    [RTA]ip route-static 192.168.2.0 24 192.168.1.6
    [RTB]ip route-static 192.168.0.0 24 192.168.1.1
    [RTB]ip route-static 192.168.0.0 24 192.168.1.5
    查看ip路由表
    [RTA]display ip routing-table

Destinations : 22 Routes : 23

Destination/Mask Proto Pre Cost NextHop Interface
0.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
127.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0
192.168.0.0/24 Direct 0 0 192.168.0.1 GE0/0
192.168.0.0/32 Direct 0 0 192.168.0.1 GE0/0
192.168.0.1/32 Direct 0 0 127.0.0.1 InLoop0
192.168.0.255/32 Direct 0 0 192.168.0.1 GE0/0
192.168.1.0/30 Direct 0 0 192.168.1.1 GE0/1
192.168.1.0/32 Direct 0 0 192.168.1.1 GE0/1
192.168.1.1/32 Direct 0 0 127.0.0.1 InLoop0
192.168.1.3/32 Direct 0 0 192.168.1.1 GE0/1
192.168.1.4/30 Direct 0 0 192.168.1.5 Ser1/0
192.168.1.4/32 Direct 0 0 192.168.1.5 Ser1/0
192.168.1.5/32 Direct 0 0 127.0.0.1 InLoop0
192.168.1.6/32 Direct 0 0 192.168.1.6 Ser1/0
192.168.1.7/32 Direct 0 0 192.168.1.5 Ser1/0
192.168.2.0/24 Static 60 0 192.168.1.2 GE0/1
192.168.1.6 Ser1/0
224.0.0.0/4 Direct 0 0 0.0.0.0 NULL0
224.0.0.0/24 Direct 0 0 0.0.0.0 NULL0
255.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0

3.
PCA PING PCB
查看路由器的快速转发表
[RTA]display ip fast-forwarding cache
Total number of fast-forwarding entries: 2
SIP SPort DIP DPort Pro Input_If Output_If Flg
192.168.2.2 204 192.168.0.2 0 1 GE0/1 GE0/0 1
192.168.0.2 204 192.168.2.2 2048 1 GE0/0 GE0/1 1
4.
Shutdown 接口GE0/1
仍然能够正常的转发。
[RTA]display ip fast-forwarding cache
Total number of fast-forwarding entries: 2
SIP SPort DIP DPort Pro Input_If Output_If Flg
192.168.2.2 203 192.168.0.2 0 1 Ser1/0 GE0/0 1
192.168.0.2 203 192.168.2.2 2048 1 GE0/0 Ser1/0 1
实验任务2:浮动静态路由配置

  1. 建立物理连接

  2. RTA和RTB运行rip协议
    [RTA]rip 1
    [RTA-rip-1]version 2
    [RTA-rip-1]undo summary
    [RTA-rip-1]network 192.168.1.0
    [RTA-rip-1]network 192.168.0.0
    [RTA-rip-1]silent-interface Serial 1/0

[RTB]rip 1
[RTB-rip-1]version 2
[RTB-rip-1]undo summary
[RTB-rip-1]network 192.168.1.0
[RTB-rip-1]network 192.168.2.0
[RTB-rip-1]silent-interface Serial 1/0

3.查看这条未生效的路由
[RTA-rip-1]display ip routing-table 192.168.2.0 verbose

Summary count : 2

Destination: 192.168.2.0/24
Protocol: RIP
Process ID: 1
SubProtID: 0x0 Age: 00h17m49s
Cost: 1 Preference: 100
IpPre: N/A QosLocalID: N/A
Tag: 0 State: Active Adv
OrigTblID: 0x0 OrigVrf: default-vrf
TableID: 0x2 OrigAs: 0
NibID: 0x12000003 LastAs: 0
AttrID: 0xffffffff Neighbor: 192.168.1.2
Flags: 0x10041 OrigNextHop: 192.168.1.2
Label: NULL RealNextHop: 192.168.1.2
BkLabel: NULL BkNextHop: N/A
Tunnel ID: Invalid Interface: GigabitEthernet0/1
BkTunnel ID: Invalid BkInterface: N/A
FtnIndex: 0x0 TrafficIndex: N/A
Connector: N/A PathID: 0x0

Destination: 192.168.2.0/24
Protocol: Static
Process ID: 0
SubProtID: 0x1 Age: 00h15m36s
Cost: 0 Preference: 120
IpPre: N/A QosLocalID: N/A
Tag: 0 State: Inactive Adv
OrigTblID: 0x0 OrigVrf: default-vrf
TableID: 0x2 OrigAs: 0
NibID: 0x11000001 LastAs: 0
AttrID: 0xffffffff Neighbor: 0.0.0.0
Flags: 0x60 OrigNextHop: 192.168.1.6
Label: NULL RealNextHop: 192.168.1.6
BkLabel: NULL BkNextHop: N/A
Tunnel ID: Invalid Interface: Serial1/0
BkTunnel ID: Invalid BkInterface: N/A
FtnIndex: 0x0 TrafficIndex: N/A
Connector: N/A PathID: 0x0
4.
PCA ping PCB
ShutdownGE0/1接口,仍然能继续发送数据
5.查看ip路由表
[RTA-GigabitEthernet0/1]display ip routing-table

Destinations : 18 Routes : 18

Destination/Mask Proto Pre Cost NextHop Interface
0.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
127.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0
192.168.0.0/24 Direct 0 0 192.168.0.1 GE0/0
192.168.0.0/32 Direct 0 0 192.168.0.1 GE0/0
192.168.0.1/32 Direct 0 0 127.0.0.1 InLoop0
192.168.0.255/32 Direct 0 0 192.168.0.1 GE0/0
192.168.1.4/30 Direct 0 0 192.168.1.5 Ser1/0
192.168.1.4/32 Direct 0 0 192.168.1.5 Ser1/0
192.168.1.5/32 Direct 0 0 127.0.0.1 InLoop0
192.168.1.6/32 Direct 0 0 192.168.1.6 Ser1/0
192.168.1.7/32 Direct 0 0 192.168.1.5 Ser1/0
192.168.2.0/24 Static 120 0 192.168.1.6 Ser1/0
224.0.0.0/4 Direct 0 0 0.0.0.0 NULL0
224.0.0.0/24 Direct 0 0 0.0.0.0 NULL0
255.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0

原文地址:https://www.cnblogs.com/akiz/p/11148017.html