1
00:00:00,000 --> 00:00:04,000
See here’s router 1 acting as PC 1

2
00:00:04,000 --> 00:00:09,000
ping 10.1.10.254

3
00:00:09,000 --> 00:00:13,000
it’s the device that we're going to configure is its default gateway

4
00:00:13,000 --> 00:00:18,000
I'll turn off debugging and use the command sh ip route

5
00:00:18,000 --> 00:00:24,000
Notice the router has no gateway of last resort set and has no static routes.

6
00:00:24,000 --> 00:00:27,000
Now we need to configure the device

7
00:00:27,000 --> 00:00:30,000
with a default gateway or static default route.

8
00:00:30,000 --> 00:00:33,000
Routing is currently enabled on this router

9
00:00:33,000 --> 00:00:36,000
so I need to use the command ip route

10
00:00:36,000 --> 00:00:41,000
and specify a static default route of 10.1.10.254

11
00:00:41,000 --> 00:00:45,000
so now show ip route

12
00:00:45,000 --> 00:00:52,000
shows us that the gateway of last resort is 10.1.10.254

13
00:00:52,000 --> 00:00:54,000
which is the HSRP router

14
00:00:54,000 --> 00:00:57,000
and we have a static default route configured.

15
00:00:57,000 --> 00:01:03,000
Here is PC 2, so let’s do something different on PC 2.

16
00:01:03,000 --> 00:01:10,000
So here’s router 2 acting as PC 2 enable sh ip route

17
00:01:10,000 --> 00:01:14,000
Now what I’m going to do is type no ip routing

18
00:01:14,000 --> 00:01:19,000
this will disable routing on this router

19
00:01:19,000 --> 00:01:22,000
so when I use the command sh ip route now

20
00:01:22,000 --> 00:01:26,000
notice we don’t see the routes that we saw previously.

21
00:01:26,000 --> 00:01:30,000
Now when you disable IP routing on a router

22
00:01:30,000 --> 00:01:33,000
you need to use the command IP default gateway

23
00:01:33,000 --> 00:01:37,000
and not the command IP route and specify static route.

24
00:01:37,000 --> 00:01:42,000
On router 1, I configured a static default route

25
00:01:42,000 --> 00:01:45,000
because routing is enabled on this router.

26
00:01:45,000 --> 00:01:47,000
We can see as an example the routing table

27
00:01:47,000 --> 00:01:51,000
but on this device, because routing is disabled

28
00:01:51,000 --> 00:01:54,000
I need to use the IP default gateway command

29
00:01:54,000 --> 00:02:00,000
and in this case, the default gateway is the HSRP router on VLAN 20.

30
00:02:00,000 --> 00:02:06,000
So can it ping the HSRP router on VLAN 20? Yes, it can.

31
00:02:06,000 --> 00:02:15,000
Can it ping router 1 10.1.10.11 this IP address? Yes, it can.

32
00:02:15,000 --> 00:02:23,000
Can router 1 ping 10.1.20.12 in other words, this IP address

33
00:02:23,000 --> 00:02:27,000
which is the IP address of router 2? Yes, it can.

34
00:02:27,000 --> 00:02:33,000
Now we can prove that the pings are working by doing debug ip icmp again

35
00:02:33,000 --> 00:02:38,000
and then running the ping and notice we see the output.

36
00:02:38,000 --> 00:02:45,000
So I'll move it up a bit and there you can see the echo replies being sent.

37
00:02:45,000 --> 00:02:50,000
So pings are working between router 1 and router 2.
