cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3287
Views
0
Helpful
13
Replies

Static IP Route

jprudencio7591
Beginner
Beginner

Hello,

 

I'm looking at setting up a new router for another branch that will be opening up. I cannot seem to get a static route to work. We are setup for VPLS through our ISP so all routes are pointed to 192.168.10.6 which is our hub site. Below is the sh run output for one of our other branches. What am I doing wrong? Why does it say "Gateway of last resort is 192.168.10.6 to network 0.0.0.0" instead of a static route?

 

Thanks,

 

version 15.4
ip dhcp excluded-address 10.10.10.1
ip dhcp excluded-address 10.0.3.1 10.0.3.189
ip dhcp excluded-address 10.0.3.204
ip dhcp excluded-address 10.0.3.250 10.0.3.255
!
ip dhcp pool ccp-pool
import all
network 10.10.10.0 255.255.255.128
default-router 10.10.10.1
lease 0 2
!
ip dhcp pool pool1
network 10.0.3.0 255.255.255.0
default-router 10.0.3.1
dns-server 10.0.2.9 8.8.8.8
lease 0 0 15
!
!
!
ip domain name
ip name-server 10.0.2.9
ip name-server 8.8.8.8
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 to VPLS (192.168.10.6)
ip address 192.168.10.5 255.255.255.0
duplex auto
speed auto
!
interface GigabitEthernet0/1
description LAN
ip address 10.0.3.1 255.255.255.0
duplex auto
speed auto
!
ip forward-protocol nd
!
ip http server
ip http authentication local
ip http secure-server
ip http timeout-policy idle 60 life 86400 requests 10000
!
ip route 0.0.0.0 0.0.0.0 192.168.10.6
!
!


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 192.168.10.6 to network 0.0.0.0

S* 0.0.0.0/0 [1/0] via 192.168.10.6
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.0.3.0/24 is directly connected, GigabitEthernet0/1
L 10.0.3.1/32 is directly connected, GigabitEthernet0/1
192.168.10.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.10.0/24 is directly connected, GigabitEthernet0/0
L 192.168.10.5/32 is directly connected, GigabitEthernet0/0

 

1 Accepted Solution

Accepted Solutions

In the recent post you tell us "The configuration you are looking at does work however I have not been able to get it to work with CPT ". If your concern is that it does not seem to work in CPT then I would not be too worried. I do not know why the emulator works differently but I am confident that the config that you show us should work fine on a real router.

 

HTH

 

Rick

 

 

 

HTH

Rick

View solution in original post

13 Replies 13

Harold Ritter
Cisco Employee
Cisco Employee

According to the "show ip route" that you provided, your static route is properly installed.

 

S* 0.0.0.0/0 [1/0] via 192.168.10.6

 

Do you have any connectivity issue with this new site?

 

Regards,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

I agree with Harold that the output shows that things appear to be configured correctly and that the configured static default route should be working. Perhaps we should ask the original poster why he is concerned with the statement about the gateway of last resort? Perhaps he does not recognize that any time that the routing logic has a default gateway, whether it is learned from a dynamic routing protocol or is configured with a static default route that the routing table information will identify the gateway of last resort without identifying how it was learned. Perhaps the confusion is just about the syntax of the statement.

 

HTH

 

Rick 

HTH

Rick

Hello,

I have not physically installed this router at the new branch. I have been planning the configuration with Cisco Packet Tracer. The configuration you are looking at does work however I have not been able to get it to work with CPT. I think I'm going to have to physically install and configure it and go from there. This new router should have the same routing table though correct? Since we are running VPLS all branch routes point to the same interface on the "Hub" site so the route would be the same

 

ip route 0.0.0.0 0.0.0.0 192.10.168.6

 

Adding that route to the new router should work correct?

 

Thanks

In the recent post you tell us "The configuration you are looking at does work however I have not been able to get it to work with CPT ". If your concern is that it does not seem to work in CPT then I would not be too worried. I do not know why the emulator works differently but I am confident that the config that you show us should work fine on a real router.

 

HTH

 

Rick

 

 

 

HTH

Rick

Thank you Rick. I'll be installing it tomorrow.

Thank you Harold as well