Showing posts with label IP CEF. Show all posts
Showing posts with label IP CEF. Show all posts

23 February, 2017

CEF

Packets that CEF cannot handle: 
- IP Header Options
- Expiring TTL 
- Tunnel int
- Exceed MTU 
- IGMP Redirect

Load Balancing Options
 
- Per-Packets
- Per-Dessession (Session)



IOU1(config)#ip cef load-sharing algorithm universal

CLIENT#traceroute 8.8.8.8 probe 10
Type escape sequence to abort.
Tracing the route to 8.8.8.8
VRF info: (vrf in name/id, vrf out name/id)
  1 1.1.1.1 5 msec 4 msec 1 msec 5 msec 4 msec 9 msec 5 msec 0 msec 2 msec 1 msec
  2 10.12.0.2 9 msec 10 msec 9 msec 9 msec 9 msec 9 msec 9 msec 30 msec 9 msec 9 msec
  3 10.24.0.4 18 msec 17 msec 23 msec 14 msec 17 msec 18 msec 18 msec 17 msec 17 msec 13 msec
  4 10.48.0.8 27 msec 27 msec 26 msec 26 msec 25 msec 26 msec 25 msec 28 msec 26 msec 25 msec
  

IOU1(config)#do show ip cef 8.8.8.8 255.255.255.255 internal
8.8.8.8/32, epoch 0, RIB[I], refcount 5, per-destination sharing
  sources: RIB
  feature space:
   IPRM: 0x00028000
  ifnums:
   Serial2/0(11)
   Serial2/1(12)
  path B1F3A7D8, path list B309782C, share 1/1, type attached nexthop, for IPv4
  nexthop 10.12.0.2 Serial2/0, adjacency IP adj out of Serial2/0 B4F0C268
  path B1F3A848, path list B309782C, share 0/1, type attached nexthop, for IPv4
  nexthop 10.13.0.3 Serial2/1, adjacency IP adj out of Serial2/1 B4F0C138
  output chain:
    loadinfo B22C790C, per-session, 2 choices, flags 0083, 5 locks
    flags: Per-session, for-rx-IPv4, 2buckets
    2 hash buckets
      < 0 > IP adj out of Serial2/0 B4F0C268
      < 1 > IP adj out of Serial2/1 B4F0C138
    Subblocks:
     None


IOU1(config)#ip cef load-sharing algorithm include-ports destination

CLIENT#traceroute 8.8.8.8 probe 10
Type escape sequence to abort.
Tracing the route to 8.8.8.8
VRF info: (vrf in name/id, vrf out name/id)
  1 1.1.1.1 5 msec 5 msec 4 msec 5 msec 5 msec 5 msec 4 msec 4 msec 4 msec 6 msec
  2 10.13.0.3 6 msec
    10.12.0.2 9 msec 8 msec 9 msec 8 msec 8 msec
    10.13.0.3 9 msec
    10.12.0.2 8 msec 8 msec 11 msec
  3 10.36.0.6 17 msec
    10.24.0.4 17 msec 18 msec 17 msec 17 msec
    10.36.0.6 17 msec 14 msec
    10.24.0.4 18 msec 18 msec 17 msec
  4 10.48.0.8 27 msec 26 msec
    10.68.0.8 27 msec
    10.48.0.8 25 msec 26 msec 27 msec
    10.68.0.8 26 msec
    10.48.0.8 25 msec 26 msec 26 msec
 

IOU1#show rib client
Client name          Handle     WalkQ  WalkQ by Owner
IP Static Route        1          0      0
IP Static Default Ne   2          0      0
App Route              3          0      0

17 July, 2014

IPv4 IGP Troubleshooting


R1#show ip route 
     10.0.0.0/24 is subnetted, 3 subnets
C       10.1.13.0 is directly connected, Serial0/0
C       10.1.1.0 is directly connected, Loopback0
C       10.1.146.0 is directly connected, FastEthernet0/0

* I have two directly connected network and one Loopback.
* The network 10.1.146.0/24 is network between R1&R4&R6.

# Make ping
R1#ping 10.1.146.6
Sending 5, 100-byte ICMP Echos to 10.1.146.6, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/20/52 ms

R1#ping 10.1.146.4
Sending 5, 100-byte ICMP Echos to 10.1.146.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/22/32 ms

* When I make ping and this ping is successful it´s says 3 things are correctly configured: 

1) Routing lookup process is correct
2) Switching mechanism is moving packets out the interface 
3) Encapsulation is correctly configured

R1#show ip route 10.1.146.6
Routing entry for 10.1.146.0/24
  Known via "connected", distance 0, metric 0 (connected, via interface)
  Routing Descriptor Blocks:
  * directly connected, via FastEthernet0/0   <---- We know where we have to send.
      Route metric is 0, traffic share count is 1
 
R1#show ip cef exact-route 10.1.146.1 10.1.146.4
10.1.146.1      -> 10.1.146.4     : FastEthernet0/0 (next hop 10.1.146.4) <-- we ned to know mak address.

R1#show arp 
Protocol  Address          Age (min)  Hardware Addr   Type   Interface
Internet  10.1.146.1              -   c201.0d08.0000  ARPA   FastEthernet0/0
Internet  10.1.146.4             32   c200.0d08.0000  ARPA   FastEthernet0/0    <--- MAC Address
Internet  10.1.146.6             32   c205.1488.0000  ARPA   FastEthernet0/0

* Now we know how to forward traffic out the interface.
* If no one filtering ARPs we have basic connectivity.

#Configure incorrect ARP entry.

R1(config)#arp 10.1.146.4 aaaa.aaaa.aaa4 arpa

R1#show arp 
Protocol  Address          Age (min)  Hardware Addr   Type   Interface
Internet  10.1.146.1              -   c201.0d08.0000  ARPA   FastEthernet0/0
Internet  10.1.146.4              -   aaaa.aaaa.aaa4  ARPA                       <--- Static ARP entry
Internet  10.1.146.6             41   c205.1488.0000  ARPA   FastEthernet0/0

R1#ping 10.1.146.4
Sending 5, 100-byte ICMP Echos to 10.1.146.4, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)

* The connectivity filed.

# Configure Route to reach Lo 0 of R4

R1(config)#ip route 10.1.4.0 255.255.255.0 10.1.146.4

R1#ping 10.1.4.4
Sending 5, 100-byte ICMP Echos to 10.1.4.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/25/32 ms

R1#show ip cef exact-route 10.1.146.1 10.1.4.4
10.1.146.1      -> 10.1.4.4       : FastEthernet0/0 (next hop 10.1.146.4) 

R1#show ip route static
     10.0.0.0/24 is subnetted, 4 subnets
S       10.1.4.0 [1/0] via 10.1.146.4

* Now I have to know how to reach 10.1.146.4

R1#show ip route 10.1.146.4
Routing entry for 10.1.146.0/24
  Known via "connected", distance 0, metric 0 (connected, via interface)
  Routing Descriptor Blocks:
  * directly connected, via FastEthernet0/0    
      Route metric is 0, traffic share count is 1

# Configure Incorrect more specific route.
 
R1(config)#ip route 10.1.146.4 255.255.255.255 serial 0/0

R1(config)#do ping 10.1.146.4
Sending 5, 100-byte ICMP Echos to 10.1.146.4, timeout is 2 seconds:
UUUUU
Success rate is 0 percent (0/5)

* The connectivity filed.

# Debug 

R1(config)#do debug ip icmp 
ICMP packet debugging is on
R1(config)#do ping 10.1.146.4
Sending 5, 100-byte ICMP Echos to 10.1.146.4, timeout is 2 seconds:
UUUUU
Success rate is 0 percent (0/5)

*Mar  1 01:38:04.599: ICMP: dst (10.1.13.1) host unreachable rcv from 10.1.13.3
*Mar  1 01:38:04.627: ICMP: dst (10.1.13.1) host unreachable rcv from 10.1.13.3
*Mar  1 01:38:04.635: ICMP: dst (10.1.13.1) host unreachable rcv from 10.1.13.3
*Mar  1 01:38:04.635: ICMP: dst (10.1.13.1) host unreachable rcv from 10.1.13.3
*Mar  1 01:38:04.639: ICMP: dst (10.1.13.1) host unreachable rcv from 10.1.13.3

* Its says that R3 doesn't have destination route.

#Configure incorrect out interface.

R1(config)#ip route 10.1.4.4 255.255.255.255 ser0/0 10.1.146.4

R1#show ip route 10.1.4.4  
Routing entry for 10.1.4.4/32
  Known via "static", distance 1, metric 0
  Routing Descriptor Blocks:
  * 10.1.146.4, via Serial0/0              <--- incorrect out interface
      Route metric is 0, traffic share count is 1