admin 发表于 2021-11-20 22:04:11

H3CNE 19 浮动静态路由/负载分担

19 浮动静态路由/负载分担配置浮动静态路由<H3C>system-viewsysname r1interface gigabitethernet 0/0ip address 10.10.12.1 24interface gigabitethernet 0/1ip address 10.10.13.1 24interface loopback 0ip address 100.100.100.100 32quit配置R1的两个下一跳,把R3的路由优先级配置为100(默认优先级为60,所以100会成为inactive的备份链路)ip route-static 200.200.200.200 255.255.255.25510.10.12.2ip route-static 200.200.200.200 255.255.255.25510.10.13.3 preference 100 <H3C>system-viewsysname r2interface gigabitethernet 0/0ip address 10.10.12.2 24interface gigabitethernet 0/1ip address 10.10.24.2 24quit配置R2两个方向的静态路由ip route-static 100.100.100.100 255.255.255.25510.10.12.1ip route-static 200.200.200.200 255.255.255.25510.10.24.4 <H3C>system-viewsysname r3interface gigabitethernet 0/0ip address 10.10.34.3 24interface gigabitethernet 0/1ip address 10.10.13.3 24quit配置R2两个方向的静态路由ip route-static 100.100.100.100 255.255.255.25510.10.13.1ip route-static 200.200.200.200 255.255.255.25510.10.34.4 <H3C>system-viewsysname r3sysname r4interface gigabitethernet 0/0ip address 10.10.24.4 24interface gigabitethernet 0/1ip address 10.10.34.4 24interface loopback 0ip address 200.200.200.200 32quit配置R4的两个下一跳,把R3的路由优先级配置为100(默认优先级为60,所以100会成为inactive的备份链路)ip route-static 100.100.100.100 255.255.255.25510.10.24.2ip route-static 100.100.100.100 255.255.255.25510.10.34.3 preference 100 查看路由表display ip routing-tableDestinations : 15      Routes : 15Destination/MaskProto   Pre Cost      NextHop         Interface……127.255.255.255/32 Direct 0   0         127.0.0.1       InLoop0200.200.200.200/32 Static 600         10.10.12.2      GE0/0224.0.0.0/4       Direct0   0          0.0.0.0         NULL0…… display route-static routing-tableTotal number of routes: 2Status: * - valid*Destination: 200.200.200.200/32       NibID:0x11000000      NextHop: 10.10.12.2   MainNibID:N/A             BkNextHop: N/A   BkNibID:N/A             Interface: N/A   TableID:0x2         BkInterface: N/A      Flag:0x2d01         BfdSrcIp: N/A   DbIndex:0x1            BfdIfIndex: 0x0      Type:Normal      BfdVrfIndex: 0TrackIndex:0xffffffff          Label: NULLPreference: 60         vrfIndexDst: 0   BfdMode:N/A            vrfIndexNH: 0   Permanent:0                     Tag: 0 Destination:200.200.200.200/32       NibID:0x11000001      NextHop: 10.10.13.3   MainNibID:N/A             BkNextHop: N/A   BkNibID:N/A             Interface: N/A   TableID:0x2         BkInterface: N/A      Flag:0x2401         BfdSrcIp: N/A   DbIndex:0x1            BfdIfIndex: 0x0      Type:Normal      BfdVrfIndex: 0TrackIndex:0xffffffff          Label: NULLPreference: 100         vrfIndexDst: 0   BfdMode:N/A            vrfIndexNH: 0   Permanent:0                     Tag: 0 display ip routing-table 200.200.200.200 verboseSummary count : 1Destination: 200.200.200.200/32   Protocol: Static Process ID: 0SubProtID:0x1                  Age: 00h07m16s       Cost: 0               Preference: 60      IpPre:N/A             QosLocalID: N/A      Tag: 0                  State: Active AdvOrigTblID:0x0                OrigVrf: default-vrf    TableID:0x2               OrigAs: 0      NibID:0x11000000          LastAs: 0   AttrID:0xffffffff      Neighbor: 0.0.0.0      Flags:0x10060      OrigNextHop: 10.10.12.2      Label:NULL         RealNextHop: 10.10.12.2    BkLabel: NULL             BkNextHop: N/A    SRLabel:NULL             BkSRLabel: NULL   SIDIndex:NULL               InLabel: NULLTunnel ID:Invalid          Interface:GigabitEthernet0/0BkTunnel ID: Invalid      BkInterface: N/A   FtnIndex:0x0         TrafficIndex: N/AConnector:N/A            VpnPeerId: N/A       Dscp:N/A                  Exp: N/A 断掉R2与R2之前的链路,测试备份链路连通性。 display ip routing-tableDestinations : 12      Routes : 12Destination/MaskProto   Pre Cost      NextHop         Interface0.0.0.0/32      Direct0   0          127.0.0.1       InLoop010.10.13.0/24   Direct0   0          10.10.13.1      GE0/110.10.13.1/32   Direct0   0          127.0.0.1       InLoop010.10.13.255/32   Direct0   0          10.10.13.1      GE0/1100.100.100.100/32 Direct 0   0         127.0.0.1       InLoop0127.0.0.0/8       Direct0   0          127.0.0.1       InLoop0127.0.0.1/32      Direct0   0          127.0.0.1       InLoop0127.255.255.255/32 Direct 0   0         127.0.0.1       InLoop0200.200.200.200/32 Static 100 0         10.10.13.3      GE0/1224.0.0.0/4       Direct0   0          0.0.0.0         NULL0224.0.0.0/24      Direct0   0         0.0.0.0         NULL0255.255.255.255/32 Direct 0   0         127.0.0.1       InLoop0 配置负载分担;把R1与R4路由器的两个静态路由下一跳设置为相同的60优先级; 配置R2和R4的两个下一跳,不配置静态路由器优先级(默认优先级为60,所以在路由表中会出现两条等价路由)undo ip route-static 200.200.200.200 32 10.10.13.3preference 100ip route-static 200.200.200.200 255.255.255.25510.10.13.3 undo ip route-static 100.100.100.100 32 10.10.34.3preference 100ip route-static 100.100.100.100 255.255.255.25510.10.34.3display ip routing-tableDestinations : 15      Routes : 16Destination/MaskProto   Pre Cost      NextHop         Interface……10.10.34.255/32   Direct0   0          10.10.34.4      GE0/1100.100.100.100/32 Static 600         10.10.24.2      GE0/0                  Static600          10.10.34.3      GE0/1127.0.0.0/8       Direct0   0          127.0.0.1       InLoop0……路由表中出现两条等价静态路由,同一个目标同时出现两个下一跳,此时会同时进行数据转发,这样就是静态路由分担。
页: [1]
查看完整版本: H3CNE 19 浮动静态路由/负载分担

公司网站