Saturday, July 30, 2011

The 'ip load-sharing per-packet' Interface Subcommand

RT1#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

     1.0.0.0/30 is subnetted, 1 subnets
C       1.1.1.0 is directly connected, Ethernet1/0
     2.0.0.0/30 is subnetted, 1 subnets
C       2.2.2.0 is directly connected, Ethernet1/1
     3.0.0.0/30 is subnetted, 1 subnets
C       3.3.3.0 is directly connected, Ethernet1/2
     4.0.0.0/30 is subnetted, 1 subnets
C       4.4.4.0 is directly connected, Ethernet1/3
C    192.168.1.0/24 is directly connected, FastEthernet0/0
S    192.168.2.0/24 [1/0] via 1.1.1.2
                    [1/0] via 2.2.2.2
                    [1/0] via 3.3.3.2
                    [1/0] via 4.4.4.2
RT1#
RT1#sh ip cef 192.168.2.0 255.255.255.0 detail
192.168.2.0/24, version 28, epoch 0, per-destination sharing
0 packets, 0 bytes
  via 1.1.1.2, 0 dependencies, recursive
    traffic share 1
    next hop 1.1.1.2, Ethernet1/0 via 1.1.1.0/30
    valid glean adjacency
  via 2.2.2.2, 0 dependencies, recursive
    traffic share 1
    next hop 2.2.2.2, Ethernet1/1 via 2.2.2.0/30
    valid glean adjacency
  via 3.3.3.2, 0 dependencies, recursive
    traffic share 1
    next hop 3.3.3.2, Ethernet1/2 via 3.3.3.0/30
    valid glean adjacency
  via 4.4.4.2, 0 dependencies, recursive
    traffic share 1
    next hop 4.4.4.2, Ethernet1/3 via 4.4.4.0/30
    valid glean adjacency
  0 packets, 0 bytes switched through the prefix
  tmstats: external 0 packets, 0 bytes
           internal 0 packets, 0 bytes
RT1#
RT1#sh ip cef exact-route 192.168.1.1 192.168.2.1
192.168.1.1     -> 192.168.2.1    : Ethernet1/0 (next hop 1.1.1.2)
RT1#
RT1#sh ip cef exact-route 192.168.1.1 192.168.2.1
192.168.1.1     -> 192.168.2.1    : Ethernet1/0 (next hop 1.1.1.2)
RT1#
RT1#sh ip cef exact-route 192.168.1.1 192.168.2.1
192.168.1.1     -> 192.168.2.1    : Ethernet1/0 (next hop 1.1.1.2)
RT1#
RT1#sh ip cef exact-route 192.168.1.1 192.168.2.1
192.168.1.1     -> 192.168.2.1    : Ethernet1/0 (next hop 1.1.1.2)
RT1#
RT1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
RT1(config)#int e1/0
RT1(config-if)#ip load-sharing ?
  per-destination  Deterministic distribution
  per-packet       Random distribution

RT1(config-if)#ip load-sharing per-packet
RT1(config-if)#exit
RT1(config)#
RT1(config)#int e1/1
RT1(config-if)#ip load-sharing per-packet
RT1(config-if)#exit
RT1(config)#
RT1(config)#int e1/2
RT1(config-if)#ip load-sharing per-packet
RT1(config-if)#exit
RT1(config)#
RT1(config)#int e1/3
RT1(config-if)#ip load-sharing per-packet
RT1(config-if)#exit
RT1(config)#end
RT1#
RT1#sh ip cef 192.168.2.0 255.255.255.0 detail
192.168.2.0/24, version 28, epoch 0, per-packet sharing
0 packets, 0 bytes
  via 1.1.1.2, 0 dependencies, recursive
    traffic share 1, current path
    next hop 1.1.1.2, Ethernet1/0 via 1.1.1.0/30
    valid glean adjacency
  via 2.2.2.2, 0 dependencies, recursive
    traffic share 1
    next hop 2.2.2.2, Ethernet1/1 via 2.2.2.0/30
    valid glean adjacency
  via 3.3.3.2, 0 dependencies, recursive
    traffic share 1
    next hop 3.3.3.2, Ethernet1/2 via 3.3.3.0/30
    valid glean adjacency
  via 4.4.4.2, 0 dependencies, recursive
    traffic share 1
    next hop 4.4.4.2, Ethernet1/3 via 4.4.4.0/30
    valid glean adjacency
  0 packets, 0 bytes switched through the prefix
  tmstats: external 0 packets, 0 bytes
           internal 0 packets, 0 bytes
RT1#
RT1#sh ip cef exact-route 192.168.1.1 192.168.2.1
192.168.1.1     -> 192.168.2.1    : Ethernet1/0 (next hop 1.1.1.2)
RT1#
RT1#sh ip cef exact-route 192.168.1.1 192.168.2.1
192.168.1.1     -> 192.168.2.1    : Ethernet1/1 (next hop 2.2.2.2)
RT1#
RT1#sh ip cef exact-route 192.168.1.1 192.168.2.1
192.168.1.1     -> 192.168.2.1    : Ethernet1/2 (next hop 3.3.3.2)
RT1#
RT1#sh ip cef exact-route 192.168.1.1 192.168.2.1
192.168.1.1     -> 192.168.2.1    : Ethernet1/3 (next hop 4.4.4.2)
RT1#
RT1#sh ip cef exact-route 192.168.1.1 192.168.2.1
192.168.1.1     -> 192.168.2.1    : Ethernet1/0 (next hop 1.1.1.2)
RT1#
RT1#sh ip cef exact-route 192.168.1.1 192.168.2.1
192.168.1.1     -> 192.168.2.1    : Ethernet1/1 (next hop 2.2.2.2)
RT1#
RT1#sh ip cef exact-route 192.168.1.1 192.168.2.1
192.168.1.1     -> 192.168.2.1    : Ethernet1/2 (next hop 3.3.3.2)
RT1#
RT1#sh ip cef exact-route 192.168.1.1 192.168.2.1
192.168.1.1     -> 192.168.2.1    : Ethernet1/3 (next hop 4.4.4.2)
RT1#

No comments:

Post a Comment