cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6117
Views
10
Helpful
4
Replies

Gateway of last resort not set on 2911 - ip routing enabled

murraymwps
Level 1
Level 1

I'm getting a "gateway of last resort is not set" on a 2911 after entering "ip routing" and a route statement for 0.0.0.0 0.0.0.0. What am I missing:

br1#sh  ip  route

Codes: L - local, 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, H - NHRP, l - LISP

       a - application route

       + - replicated route, % - next hop override

Gateway of last resort is not set

      10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks

C        10.0.0.0/24 is directly connected, GigabitEthernet0/0

L        10.0.0.10/32 is directly connected, GigabitEthernet0/0

br1#sr
Building configuration...

Current configuration : 1757 bytes
!
! Last configuration change at 13:10:36 UTC Fri Aug 11 2017
!
version 15.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname br1
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
!
!
!
!
!
!
!
!
!
!
!
!
!
!
no ip domain lookup
ip cef
no ipv6 cef
!
multilink bundle-name authenticated
!
!
cts logging verbose
!
!
!
!
redundancy
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Embedded-Service-Engine0/0
no ip address
shutdown
!
interface GigabitEthernet0/0
description Uplink to Cat3850 Gi0/24
ip address 10.0.0.10 255.255.255.0
duplex auto
speed auto
!
interface GigabitEthernet0/1
description Internal
ip address X.X.X.X 255.255.255.192
duplex auto
speed auto
!
interface GigabitEthernet0/2
ip address X.X.X.X 255.255.255.248
duplex auto
speed auto
!
interface GigabitEthernet0/0/0
ip address X.X.X.X 255.255.255.252
duplex full
speed 1000
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
!
!
!
!
control-plane
!
!
alias exec s show ip int br
alias exec srt show ip route
alias exec sc show cdp nei | e SEP|AIR
alias exec sri show run | i
alias exec srb show run | b
alias exec sr show run
!
line con 0
line aux 0
line 2
no activation-character
no exec
transport preferred none
transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
stopbits 1
line vty 0 4
login local
transport input telnet ssh
!
scheduler allocate 20000 1000
!
end

4 Replies 4

Hi

You should have a default route into the routing table. The last resort is basically the default gateway. The last resort is basically used for unknown subnets. All the known subnets are included into the routing table but the unkown subnets or destination are forward to the default route 0.0.0.0/0

You should have something like:

ip route 0.0.0.0 0.0.0.0 <Next Hop IP or local interface>

or learn a default route 0.0.0.0/0 via a dynamic routing protocol, also you can try for testing with.

ip route 0.0.0.0 0.0.0.0 null0 

Because you need a valid entry.

Hope it is useful

:-)




>> Marcar como útil o contestado, si la respuesta resolvió la duda, esto ayuda a futuras consultas de otros miembros de la comunidad. <<

Hello

route statement for 0.0.0.0 0.0.0.0. What am I missing:

C        10.0.0.0/24 is directly connected, GigabitEthernet0/0

L        10.0.0.10/32 is directly connected, GigabitEthernet0/0

What route statement would that be , your not showing anything?

As stated a learned default from routing protocol or a default static with valid next hop defined would do it

res
Paul


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

murraymwps
Level 1
Level 1

So.... dumb mistake. The interface was down. As soon as I plugged it in the route showed up. Yes - the route was in there. I didn't realize it when I cut and paste the config that it wasn't in the output. As I mentioned even after entering the route it didn't show up until the interface was up. Rookie mistake.

Thanks for posting back to let us know that you found the solution to your own problem. Yes it was a rookie mistake. But most of us have made mistakes like that at some point. And we learn from the mistakes that we make (sometimes learn more from mistakes than we do from doing something that worked right from the start).

HTH

Rick

HTH

Rick
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: