Gateway of last resort is not set

hjorhjor Member Posts: 24 ■□□□□□□□□□
Gateway of last resort is not set - that's a problem.

And I need to create a static route and a default route.

There are two routers. router 2 is ISP.

router 1

- fastethernet 10.10.10.1 255.255.255.0
- serial 0 address 200.2.2.18 255.255.255.252
- DTE


router 2 ISP

- fastethernet - no ip address
- DCE
- serial 0 address 200.2.2.17 255.255.255.252
- loopback 0 address 172.16.1.1.255.255.255.255


And when I type a static route on ISP;

ip route 199.99.9.32 255.255.255.224 200.2.2.18

and after that "show ip route",
I always get: "Gateway of last resort is not set"

And when I type a default route on router 1;

ip route 0.0.0.0 0.0.0.0 200.2.2.17

and after that "show ip route",
I always get: "Gateway of last resort is not set"

I checked that interfaces were up.
I didn't put routing protocol - I need it, right? I think
ospf would be best here. ?

If ospf will be on both routers, would it be like this:

router ospf
network 200.2.2.0 ??
network 10.10.10.0
no auto-summary ??


So will I have to use OSPF? If so, what else do I need?;

- ip ospf message digest,
- hello interval,
- dead interval,
- no auto-summary,
- wildcards
- Default-information originate?

Comments

  • networker050184networker050184 Mod Posts: 11,962 Mod
    You don't need a routing protocol. If you type ip route 0.0.0.0 0.0.0.0 (next hop) it will create a default route and the gateway of last resort will be set.

    ip route 199.99.9.32 255.255.255.224 200.2.2.18 is not a default route, just a static route.

    Ensure your next hop is reachable from your router by pinging it.
    An expert is a man who has made all the mistakes which can be made.
Sign In or Register to comment.