< Return to Video

Basic Cisco network troubleshooting

  • 0:01 - 0:03
    Hello, guys. Welcome back. My name is David,
  • 0:03 - 0:05
    and today we are going to troubleshoot the
  • 0:05 - 0:08
    Symposium Cisco network. So what I mean is I
  • 0:08 - 0:10
    have one computer and one router.
  • 0:10 - 0:13
    This router was configured to pass the
  • 0:13 - 0:15
    traffic to translate this traffic into a
  • 0:15 - 0:18
    public IP so the computer can serve the
  • 0:18 - 0:20
    Internet. Now, what I did, I broke the
  • 0:20 - 0:22
    configuration in several places, and we
  • 0:22 - 0:24
    are going to start from the beginning to the
  • 0:24 - 0:27
    end. We'll find all the problems and try
  • 0:27 - 0:29
    to fix them. Stay with me.
  • 0:29 - 0:32
    [Music].
  • 0:32 - 0:36
    Okay. Let's start. This is my computer.
  • 0:36 - 0:37
    This computer is supposed to have the IP
  • 0:37 - 0:40
    address and DNS IP address, right? And the
  • 0:40 - 0:42
    gateway, of course. Then traffic comes
  • 0:42 - 0:44
    here on the Cisco router, and then from
  • 0:44 - 0:46
    the router, it goes to the Internet.
  • 0:46 - 0:50
    But here, we need to do NAT, right? Network Address
  • 0:50 - 0:53
    Translation. So let's start and find all
  • 0:53 - 0:56
    the problems I caused in the configuration.
  • 0:56 - 0:59
    So, in order for the traffic to leave the
  • 0:59 - 1:01
    computer, the computer is supposed to have
  • 1:01 - 1:03
    the IP address. Let's make sure the computer
  • 1:03 - 1:04
    has the IP address.
  • 1:06 - 1:09
    And when we say, “Let’s make sure the computer
  • 1:09 - 1:12
    has the IP address,”
  • 1:12 - 1:15
    let's test the actual status of the IP
  • 1:15 - 1:17
    address, not the configuration. And what I
  • 1:17 - 1:19
    mean by that is
  • 1:19 - 1:21
    you can go into a configuration and make
  • 1:21 - 1:23
    sure the configuration is there by
  • 1:23 - 1:24
    clicking this button,
  • 1:24 - 1:27
    but that's not the way I want you to test it.
  • 1:27 - 1:29
    I want to test
  • 1:29 - 1:31
    the actual status of the configuration.
  • 1:31 - 1:33
    That means you can either click here,
  • 1:33 - 1:36
    “Details,” or in the CLI.
  • 1:36 - 1:38
    Now, what's the difference, you might say?
  • 1:38 - 1:40
    The difference is that sometimes, when
  • 1:40 - 1:42
    you configure the IP address, Windows is
  • 1:42 - 1:45
    not taking this IP address for some reason.
  • 1:45 - 1:47
    There can be many, many reasons, but the
  • 1:47 - 1:50
    configuration doesn't always work. So
  • 1:50 - 1:51
    when you check the configuration on the
  • 1:51 - 1:53
    IP address, it's not necessarily the case that the
  • 1:53 - 1:55
    computer is using that IP address. So what we're
  • 1:55 - 1:57
    going to do, we want to check the actual
  • 1:57 - 2:00
    status of this configuration. Okay. So
  • 2:00 - 2:02
    let's see what we have. We have the IP
  • 2:02 - 2:04
    address here, as you can see,
  • 2:04 - 2:06
    and we have the gateway. So we know the
  • 2:06 - 2:08
    IP address is there, and probably the
  • 2:08 - 2:12
    IP address works. We can ping the IP address itself,
  • 2:12 - 2:18
    and yes, well, the IP stack, the TCP/IP stack, works on the computer.
  • 2:18 - 2:19
    That's good. So now let's test
  • 2:19 - 2:21
    the gateway and make sure the gateway works.
  • 2:21 - 2:23
    Here's the gateway,
  • 2:23 - 2:25
    and we want to ping that gateway to make
  • 2:25 - 2:28
    sure the gateway is on the network.
  • 2:28 - 2:30
    Now, you might already see that the gateway
  • 2:30 - 2:33
    is .1 on the topology, so the
  • 2:33 - 2:35
    gateway is wrong, but let's try and ping it.
  • 2:35 - 2:40
    Ping 192.168.1.254,
  • 2:40 - 2:42
    and the gateway is not pingable. And how
  • 2:42 - 2:44
    do--let's say we don't know if the
  • 2:44 - 2:46
    gateway is correct or not,
  • 2:46 - 2:48
    or we know the gateway is correct, but we
  • 2:48 - 2:51
    are not sure why we can't ping it. Ping
  • 2:51 - 2:53
    could be closed. Nobody closed ICMP
  • 2:53 - 2:55
    on the gateway, but let's say it's closed.
  • 2:55 - 2:58
    You want to make sure the gateway is on
  • 2:58 - 3:00
    the network, and for that, we can check the ARP.
  • 3:00 - 3:02
    Let's go ahead on the Windows
  • 3:02 - 3:05
    machine and type arp -a,
  • 3:05 - 3:07
    and this will show you the ARP cache and, you
  • 3:07 - 3:09
    know, the IP address mapped to the MAC address.
  • 3:09 - 3:12
    So let's see if we have 254 here in the
  • 3:12 - 3:14
    ARP cache--and we don't have it.
  • 3:14 - 3:17
    But we have .1,
  • 3:17 - 3:19
    and let's try and ping it--.1.
  • 3:22 - 3:25
    It's not pingable. That's weird. But, well,
  • 3:25 - 3:27
    at least we know it's .1, but let's
  • 3:27 - 3:30
    go ahead and change that one.
  • 3:30 - 3:32
    You know what? We have the Cisco router,
  • 3:32 - 3:35
    and we have the interface G3--Gigabit Ethernet 3--and
  • 3:35 - 3:37
    let's see what's the IP address on the interface.
  • 3:37 - 3:38
    Show
  • 3:38 - 3:42
    run--not sure--show interface G3--
  • 3:43 - 3:44
    address.
  • 3:45 - 3:48
    And as you can see, this is the IP
  • 3:48 - 3:49
    address
  • 3:49 - 3:52
    of the Cisco router. So yes, the computer
  • 3:52 - 3:56
    is supposed to have .1 as a gateway, not 254.
  • 3:57 - 4:00
    So let's go ahead and fix that on the computer.
  • 4:00 - 4:06
    We are one step closer to fixing the problem.
  • 4:06 - 4:08
    And let's do .1.
  • 4:08 - 4:10
    Now
  • 4:10 - 4:13
    remember, .1 wasn't pingable from
  • 4:13 - 4:15
    the computer,
  • 4:15 - 4:17
    and we want to find out why we cannot
  • 4:17 - 4:20
    ping it. Should it be pingable? Should it not?
  • 4:20 - 4:22
    Let's go ahead and check if there's
  • 4:22 - 4:25
    any access list on the Cisco router
  • 4:25 - 4:29
    on the inside interface. Show run
  • 4:30 - 4:35
    inside interface Gigabit 3/3, and | include for
  • 4:35 - 4:38
    the inbound. And sure, there is an access list.
  • 4:38 - 4:41
    Let's check what's inside.
  • 4:42 - 4:47
    Okay, we have permit ip 192.168.3.
  • 4:47 - 4:48
    Okay.
  • 4:48 - 4:50
    And /24.
  • 4:50 - 4:54
    So the access list is not permitting our
  • 4:54 - 4:55
    traffic coming from the computer because,
  • 4:55 - 4:58
    remember, our IP address or subnet on
  • 4:58 - 5:03
    the computer is 192.168.1.--
  • 5:03 - 5:06
    not 3, but 1--on the third octet. And the
  • 5:06 - 5:10
    access list on the Cisco router is not having this .1.
  • 5:10 - 5:12
    So let's go ahead and fix that.
  • 5:14 - 5:17
    We need to go into the access list--
  • 5:17 - 5:18
    extended--
  • 5:18 - 5:21
    inside inbound. And, you know, we know
  • 5:21 - 5:23
    for sure that there is not
  • 5:23 - 5:25
    supposed to be the 3
  • 5:25 - 5:28
    network on this LAN, right? So it's okay
  • 5:28 - 5:31
    to remove this IP address and fix that.
  • 5:32 - 5:42
    Node 20, and then permit ip 192.168.1.0 0.0.0.255 any.
  • 5:42 - 5:44
    Okay.
  • 5:44 - 5:46
    Now it looks great.
  • 5:46 - 5:48
    Let's see if we can ping the router.
  • 5:56 - 5:58
    Okay. We can ping the router.
  • 5:58 - 6:02
    Great. Now let's check--do we have the Internet?
  • 6:03 - 6:07
    And no, we don't. Okay.
  • 6:07 - 6:08
    Let's see
  • 6:08 - 6:11
    what else we are missing here. Do we have
  • 6:11 - 6:12
    the route?
  • 6:13 - 6:16
    No. Actually, let's make sure the Cisco
  • 6:16 - 6:20
    router has the Internet. Ping 8.8.8.8.
  • 6:20 - 6:21
    Cisco router
  • 6:21 - 6:24
    doesn't have the Internet. Let's fix that.
  • 6:24 - 6:26
    So what do you need on the router to
  • 6:26 - 6:28
    have the Internet? You need the IP
  • 6:28 - 6:29
    address, you need the next hop, which is
  • 6:29 - 6:32
    that .1, and you need a connection between
  • 6:32 - 6:34
    ISP and the router.
  • 6:34 - 6:36
    Let's check what is the interface on the
  • 6:36 - 6:38
    Gigabit1,
  • 6:38 - 6:41
    and what is the IP address here?
  • 6:46 - 6:47
    Okay,
  • 6:47 - 6:49
    that's great. Now, what's the gateway? Show
  • 6:49 - 6:51
    ip route.
  • 6:51 - 6:54
    And our gateway is .3.
  • 6:54 - 6:55
    But remember,
  • 6:55 - 6:57
    our ISP has .1, not .3. So
  • 6:57 - 7:00
    let's go ahead and fix that too.
  • 7:00 - 7:02
    Here's my route, which I need to remove
  • 7:02 - 7:05
    and add the new one.
  • 7:05 - 7:08
    Now remember, if you just add the route,
  • 7:08 - 7:10
    you'll have two routes. It's not going to
  • 7:10 - 7:12
    replace--even though it has the same destination.
  • 7:12 - 7:14
    It's not going to replace. So
  • 7:14 - 7:18
    you want to remove the old route and add the new one.
  • 7:20 - 7:23
    Okay. Now we have the route in the
  • 7:23 - 7:25
    routing table--proper route. Now let's see if we
  • 7:25 - 7:28
    can ping Google. Ping Google
  • 7:28 - 7:30
    from the Cisco router.
  • 7:30 - 7:31
    Okay.
  • 7:31 - 7:33
    Cisco router has the Internet. Now let's
  • 7:33 - 7:35
    come back to the computer and see
  • 7:35 - 7:38
    if the computer also has the Internet.
  • 7:38 - 7:42
    Well, no. Computer doesn't have the Internet. Okay.
  • 7:42 - 7:45
    Let's think. What do we need to do?
  • 7:45 - 7:48
    What do we need to have on the Cisco router
  • 7:48 - 7:50
    to allow Internet access from
  • 7:50 - 7:52
    the computer
  • 7:52 - 7:54
    so the computer can serve Internet
  • 7:54 - 7:57
    sites--websites? Okay? So first,
  • 7:57 - 7:59
    the computer has the private IP address. You
  • 7:59 - 8:02
    see? And the Cisco router external
  • 8:02 - 8:05
    interface is the public IP address. So we
  • 8:05 - 8:07
    want to translate our private IP subnet
  • 8:07 - 8:10
    into a public IP address of the router. And for
  • 8:10 - 8:13
    that, we need to do the NAT.
  • 8:13 - 8:15
    And let's make sure we have the NAT
  • 8:15 - 8:18
    translations on the Cisco router. So
  • 8:18 - 8:20
    let's go ahead and try to ping--
  • 8:20 - 8:23
    actually, it does not--
  • 8:23 - 8:26
    let's ping and come back here and see
  • 8:26 - 8:29
    if we have NAT translations.
  • 8:33 - 8:36
    And we have some NAT translations,
  • 8:39 - 8:42
    which are not our Google IP addresses.
  • 8:42 - 8:43
    So let's clear up:
  • 8:43 - 8:46
    clear ip nat translation *
  • 8:46 - 8:48
    dynamic I believe here.
  • 8:48 - 8:50
    No. Just everything.
  • 8:51 - 8:54
    Okay. Show ip nat translations.
  • 8:54 - 8:56
    We don't have new translations. That
  • 8:56 - 8:58
    means the Cisco router is not translating
  • 8:58 - 9:02
    our traffic from the private subnet into the public IP.
  • 9:02 - 9:04
    And let's troubleshoot that. We need to
  • 9:04 - 9:06
    have the configuration for that, right? So
  • 9:06 - 9:08
    let's go ahead and do this: show
  • 9:08 - 9:11
    run interface Gigabit3. And does it
  • 9:11 - 9:14
    have the NAT configuration on the Gigabit3?
  • 9:14 - 9:17
    It does. And it has no IP NAT inside.
  • 9:17 - 9:19
    That's great. Now, the
  • 9:19 - 9:21
    inside interface is supposed to have IP
  • 9:21 - 9:24
    NAT inside. The outside interface, though, is
  • 9:24 - 9:26
    supposed to have IP NAT outside.
  • 9:26 - 9:27
    Let's check that.
  • 9:31 - 9:33
    Oh, the outside interface doesn't have IP NAT
  • 9:33 - 9:36
    outside at all. So let's go ahead and
  • 9:36 - 9:37
    configure that--
  • 9:37 - 9:39
    IP NAT outside.
  • 9:39 - 9:41
    And now
  • 9:41 - 9:45
    we've fixed NAT, well, at least partially, on
  • 9:45 - 9:47
    the Cisco router. Now we know that the
  • 9:47 - 9:49
    inside interface and outside interface--
  • 9:49 - 9:51
    they both have NAT configuration on them.
  • 9:51 - 9:55
    Let's go ahead and check IP NAT translation again.
  • 9:57 - 10:00
    Alright. We have some traffic here.
  • 10:00 - 10:03
    This is our IP address,
  • 10:03 - 10:05
    right? Right?
  • 10:05 - 10:08
    And this is what we are trying to ping.
  • 10:08 - 10:10
    And this is the ICMP protocol, and this
  • 10:10 - 10:13
    is the IP address we are translated into.
  • 10:13 - 10:15
    So if we check this IP address on the
  • 10:15 - 10:19
    interface, that's our IP address. We know
  • 10:19 - 10:23
    that the Cisco router translates the packet into a public IP.
  • 10:23 - 10:26
    Now what we need to do is--we know
  • 10:26 - 10:28
    traffic comes here on the router, it's
  • 10:28 - 10:30
    translated, and we need to make sure
  • 10:30 - 10:32
    traffic can leave the interface. Now, how
  • 10:32 - 10:34
    do we check that?
  • 10:34 - 10:37
    Well, usually, if you have the route and there
  • 10:37 - 10:38
    is no restriction on the interface,
  • 10:38 - 10:41
    traffic leaves the interface. So let's go
  • 10:41 - 10:45
    ahead and check that. Do we have any access list?
  • 10:45 - 10:47
    We don't.
  • 10:47 - 10:49
    But do we want to put the access list to
  • 10:49 - 10:51
    make sure traffic leaves the interface?
  • 10:51 - 10:53
    You know, you can use, probably, packet
  • 10:53 - 10:55
    capture--if you know how to do that. But
  • 10:55 - 10:58
    if not, what you can do is do a quick
  • 10:58 - 11:00
    configuration--show IP access list
  • 11:00 - 11:02
    extended, for example,
  • 11:02 - 11:04
    and match our traffic. In our case,
  • 11:04 - 11:08
    let's say outside
  • 11:08 - 11:11
    ISP is going to be--no--untold.
  • 11:11 - 11:15
    Outside outbound--
  • 11:15 - 11:17
    that's the access list name. And permit
  • 11:17 - 11:20
    our traffic. What is our traffic?
  • 11:20 - 11:24
    IP host 192.168.0.10.1
  • 11:24 - 11:25
    into
  • 11:25 - 11:27
    Google DNS.
  • 11:27 - 11:31
    And we want it to be ICMP--but IP will
  • 11:31 - 11:34
    work as well--but let's do ICMP only.
  • 11:34 - 11:36
    And now
  • 11:36 - 11:38
    we want to assign this access list on
  • 11:38 - 11:41
    the public interface. But remember,
  • 11:41 - 11:42
    right now the interface doesn't have the
  • 11:42 - 11:44
    access, which means once you assign this
  • 11:44 - 11:46
    access list, you'll permit only the
  • 11:46 - 11:48
    things you have in the access list. And
  • 11:48 - 11:51
    in our case, that's only the ICMP packet
  • 11:51 - 11:52
    coming from our computer going to
  • 11:52 - 11:55
    Google. But for the rest of the users,
  • 11:55 - 11:57
    we're going to break the Internet--well, if
  • 11:57 - 12:00
    they have it already. So what we want to do
  • 12:00 - 12:02
    is add permit any any at the end of
  • 12:02 - 12:04
    the access list,
  • 12:06 - 12:08
    which means if we assign this access
  • 12:08 - 12:10
    list on the outbound interface
  • 12:10 - 12:13
    for the outbound traffic,
  • 12:13 - 12:15
    we'll get the match here,
  • 12:15 - 12:17
    and hit count will increase if the
  • 12:17 - 12:20
    packet leaves the router. And for the
  • 12:20 - 12:21
    rest of the traffic--to not block them--
  • 12:21 - 12:23
    here's the permit ip any any. So let's
  • 12:23 - 12:28
    go ahead and do: interface GigabitEthernet1,
  • 12:28 - 12:33
    ip access-group outside-outbound out.
  • 12:36 - 12:39
    And now--now you see there's a match
  • 12:39 - 12:41
    on IP and ENA--
  • 12:41 - 12:44
    probably some kind of, you know,
  • 12:44 - 12:45
    different traffic coming from the
  • 12:45 - 12:46
    computer, checking the updates or
  • 12:46 - 12:48
    something like that. Our traffic
  • 12:48 - 12:50
    doesn't have the match. Let's generate
  • 12:50 - 12:53
    the traffic on the computer.
  • 12:53 - 12:55
    This is our traffic.
  • 12:55 - 12:56
    One,
  • 12:57 - 12:59
    two.
  • 13:01 - 13:02
    Okay.
  • 13:02 - 13:04
    And now let's check if we have the match
  • 13:04 - 13:06
    on the access list.
  • 13:08 - 13:09
    We don't.
  • 13:11 - 13:13
    That's weird.
  • 13:13 - 13:16
    Isn't our IP address--
  • 13:16 - 13:19
    oh, oh, I'm sorry. Guys,
  • 13:19 - 13:22
    this is ridiculous. Remember, we translated
  • 13:22 - 13:25
    traffic into a public IP, so there's no way
  • 13:25 - 13:28
    to match the 192.168.1.10
  • 13:28 - 13:30
    on the egress interface. So we want
  • 13:30 - 13:33
    to do something else.
  • 13:33 - 13:36
    Let's go ahead and, you know, fix that.
  • 13:39 - 13:40
    We want to remove
  • 13:40 - 13:43
    line 10 and add the new--new line:
  • 13:45 - 13:47
    ip access-list extended ..., permit icmp host
  • 13:47 - 13:49
    [our public IP address] host 8.8.8.8. What’s the public IP address of the
  • 13:49 - 13:57
    router? It is 100.100, I believe. This is the IP address.
  • 13:57 - 14:01
    And then we are going to ping Google DNS.
  • 14:02 - 14:05
    Here's the access list. Now--
  • 14:07 - 14:09
    now we need to
  • 14:10 - 14:13
    renumber this because it's incorrect.
  • 14:13 - 14:16
    We want to have permit any any at the end. So:
  • 14:16 - 14:20
    remove 20, permit ip any any.
  • 14:21 - 14:24
    And now it's correct. Okay. Now let's ping and
  • 14:24 - 14:28
    see if the packet leaves the router.
  • 14:37 - 14:40
    We still don't have the match
  • 14:40 - 14:42
    on the interface. Okay. Here's the match.
  • 14:42 - 14:45
    I was like, what's going on?
  • 14:45 - 14:47
    So we have a match,
  • 14:47 - 14:49
    and that confirms two things--
  • 14:49 - 14:51
    not two, actually several:
  • 14:51 - 14:53
    We have the working gateway for the
  • 14:53 - 14:57
    Cisco router, so traffic can leave the interface.
  • 14:57 - 14:59
    Because the match is for the public
  • 14:59 - 15:02
    IP address, we also know that the traffic
  • 15:02 - 15:04
    is being translated--so even if you
  • 15:04 - 15:06
    didn’t check the IP NAT translation, this
  • 15:06 - 15:08
    confirms that there was a translation
  • 15:08 - 15:10
    and the private IP address is translated into a
  • 15:10 - 15:13
    public IP address. And third, the
  • 15:13 - 15:15
    packet leaves the router.
  • 15:15 - 15:17
    Okay, now
  • 15:17 - 15:19
    that's good--it leaves the router. But is it
  • 15:19 - 15:21
    coming back?
  • 15:21 - 15:25
    No. It might be coming back, or it might
  • 15:25 - 15:29
    not be coming back--depends on the problems on the Internet.
  • 15:29 - 15:31
    So since this video is about
  • 15:31 - 15:32
    troubleshooting, let's make sure the
  • 15:32 - 15:34
    traffic is coming back.
  • 15:34 - 15:37
    And for that, we again can capture the
  • 15:37 - 15:39
    traffic, or we can assign a similar
  • 15:39 - 15:42
    access list on the inbound traffic.
  • 15:45 - 15:49
    Extended--and that would be outside-inbound.
  • 15:50 - 15:53
    And now what do we want to match here?
  • 15:53 - 15:56
    We want to match Google DNS as a source
  • 15:56 - 15:57
    because, remember,
  • 15:57 - 16:00
    the answer is coming from Google now.
  • 16:00 - 16:02
    And we want to set the
  • 16:02 - 16:05
    destination to be our IP
  • 16:05 - 16:09
    address on the public interface--on the outside interface.
  • 16:09 - 16:11
    And the protocol is ICMP.
  • 16:11 - 16:12
    Also, you can use
  • 16:12 - 16:15
    echo-reply if you want--
  • 16:15 - 16:19
    not necessary for this purpose, but you can.
  • 16:19 - 16:22
    Like, if you are troubleshooting with
  • 16:22 - 16:25
    someone else on the other side and they
  • 16:25 - 16:27
    are pinging your IP address as well, you
  • 16:27 - 16:29
    might want to add echo-reply to make
  • 16:29 - 16:31
    sure this is your reply and not their ping.
  • 16:31 - 16:34
    But Google is not going to ping us, so
  • 16:34 - 16:37
    it's okay to not put the echo-reply.
  • 16:37 - 16:42
    Any ICMP we match here--we know it's our reply from Google DNS.
  • 16:42 - 16:45
    And now let's permit ip any any because we
  • 16:45 - 16:48
    don't want to block any other traffic on the interface.
  • 16:48 - 16:49
    Because right now there's
  • 16:49 - 16:50
    no access--again, there's no access
  • 16:50 - 16:53
    list--and if we assign the access list,
  • 16:53 - 16:55
    we'll block everything that is not
  • 16:55 - 16:57
    permitted on the access list.
  • 16:57 - 17:00
    So let's go ahead and configure the
  • 17:00 - 17:04
    Ethernet--GigabitEthernet1:
  • 17:04 - 17:09
    ip access-group [access list name]
  • 17:09 - 17:10
    and
  • 17:10 - 17:12
    here we use inbound.
  • 17:12 - 17:14
    Okay. In.
  • 17:14 - 17:15
    Now
  • 17:15 - 17:18
    let's check what match we have on the
  • 17:18 - 17:22
    interface for inbound traffic.
  • 17:22 - 17:24
    Is there any reply from Google?
  • 17:31 - 17:33
    And there is a reply.
  • 17:33 - 17:36
    So we know now that the traffic not only
  • 17:36 - 17:38
    leaves the router, but it's also coming
  • 17:38 - 17:40
    back from Google. So the Internet in between--
  • 17:40 - 17:43
    Google DNS and our ISP--is okay. We
  • 17:43 - 17:45
    received the traffic, but the
  • 17:45 - 17:48
    computer still cannot ping that.
  • 17:48 - 17:49
    How come?
  • 17:49 - 17:52
    We need the ping on the computer.
  • 17:52 - 17:54
    So what else is left?
  • 17:54 - 17:57
    When traffic comes back
  • 17:57 - 17:58
    to the router--
  • 17:58 - 18:00
    let me try to draw it here.
  • 18:08 - 18:09
    When traffic
  • 18:09 - 18:12
    leaves, okay, we have this traffic.
  • 18:12 - 18:14
    It left the router,
  • 18:14 - 18:18
    went to the ISP--not ISP, Google DNS--
  • 18:18 - 18:20
    and came back. And it comes here. We
  • 18:20 - 18:23
    have this match on this interface. Now
  • 18:23 - 18:26
    what's supposed to happen? Well, NAT will
  • 18:26 - 18:28
    catch the traffic, will check the port
  • 18:28 - 18:30
    translations, and will figure out--okay,
  • 18:30 - 18:32
    that's the returning traffic for this
  • 18:32 - 18:34
    ping. The guy's pinging from the
  • 18:34 - 18:38
    Windows 7 machine. And now this packet--sorry--
  • 18:38 - 18:40
    now this packet is supposed to leave this
  • 18:40 - 18:42
    interface,
  • 18:42 - 18:47
    okay, to be delivered to the computer.
  • 18:47 - 18:50
    And let's make sure that is happening.
  • 18:50 - 18:51
    For that,
  • 18:51 - 18:54
    what we are going to do is...
  • 18:54 - 18:56
    we are--
  • 18:59 - 19:00
    for that, we are going to check if the
  • 19:00 - 19:03
    traffic leaves the Cisco router.
  • 19:03 - 19:06
    Again, this is the same as we did on the
  • 19:06 - 19:07
    outside interface. You can capture
  • 19:07 - 19:09
    traffic if you know how to capture. If
  • 19:09 - 19:11
    not, you can assign the interface on the
  • 19:11 - 19:13
    address. Let's first make sure there is
  • 19:13 - 19:16
    no access list on the router.
  • 19:19 - 19:21
    And let's do out.
  • 19:22 - 19:25
    There is an access list. Okay.
  • 19:25 - 19:28
    Now, let's check what this access list has in it.
  • 19:31 - 19:34
    Does it have any match?
  • 19:34 - 19:37
    It doesn't. But look at this--
  • 19:37 - 19:39
    this subnet is not what we are expecting
  • 19:39 - 19:43
    to have because, remember, our subnet is
  • 19:43 - 19:46
    192.168.0.1,
  • 19:46 - 19:49
    and here we see 2. So again, the subnet
  • 19:49 - 19:51
    on the access list is wrong.
  • 19:51 - 19:53
    Let's try and fix that.
  • 20:07 - 20:09
    Now it's correct.
  • 20:09 - 20:12
    So remember, the traffic leaves the router.
  • 20:12 - 20:16
    So the source here is gonna be any--in
  • 20:16 - 20:18
    our case, it's Google DNS--and the destination
  • 20:18 - 20:20
    is our computer. So the access list order,
  • 20:20 - 20:23
    like from any to subnet, is correct.
  • 20:23 - 20:26
    And let's see if we can finally ping it.
  • 20:29 - 20:31
    We still cannot ping it.
  • 20:31 - 20:32
    Wow.
  • 20:32 - 20:34
    Let's see what's going on.
  • 20:34 - 20:36
    Is it leaving the interface?
  • 20:41 - 20:44
    It is--actually, my bad.
  • 20:44 - 20:46
    I did 2 again.
  • 20:47 - 20:50
    Okay, this is wrong.
  • 20:53 - 20:56
    This is what happens when you rush.
  • 20:57 - 21:00
    And
  • 21:00 - 21:02
    actually--10.
  • 21:02 - 21:07
    And then we need to do 1.
  • 21:07 - 21:10
    Yeah. Once you remove all lines from
  • 21:10 - 21:11
    the access list, that access list doesn't work
  • 21:11 - 21:13
    anymore. So there's no deny any any at the
  • 21:13 - 21:16
    end if there's no line in the access list.
  • 21:16 - 21:19
    So as soon as we removed 10, we started
  • 21:19 - 21:22
    pinging. And then we added the
  • 21:22 - 21:24
    correct line here,
  • 21:24 - 21:26
    and we can still ping it.
  • 21:27 - 21:29
    And we have hit counts.
  • 21:29 - 21:34
    So this is how you troubleshoot a simple, basic Cisco network.
  • 21:34 - 21:36
    Not only Cisco networks--pretty much any
  • 21:36 - 21:38
    network. You need to know what you're
  • 21:38 - 21:41
    troubleshooting. You need to know how traffic goes,
  • 21:41 - 21:43
    what gateway you're supposed to have on
  • 21:43 - 21:44
    the computer. You need to know all the
  • 21:44 - 21:47
    things to troubleshoot, and
  • 21:47 - 21:49
    after several months or years, you'll
  • 21:49 - 21:51
    have enough experience to skip some
  • 21:51 - 21:53
    of the steps. For example, you might know
  • 21:53 - 21:54
    the gateway
  • 21:54 - 21:57
    on the router is correct because you
  • 21:57 - 21:59
    connected to the router remotely and
  • 21:59 - 22:01
    from the Internet, so the router most
  • 22:01 - 22:04
    likely has the default gateway. Or you
  • 22:04 - 22:05
    might know that
  • 22:05 - 22:08
    the access list is not supposed to be checked
  • 22:08 - 22:09
    on the inside device because the user told
  • 22:09 - 22:14
    you that they can ping the IP address of the gateway.
  • 22:14 - 22:17
    So many, many things can be skipped based
  • 22:17 - 22:19
    on your experience. But this is from
  • 22:19 - 22:22
    starting to the end. You check from the
  • 22:22 - 22:24
    beginning where you have the problem. You
  • 22:24 - 22:27
    don't check at the end if the Cisco has
  • 22:27 - 22:28
    the Internet. First, you make sure you
  • 22:28 - 22:32
    have everything you need to leave the
  • 22:32 - 22:35
    area--to leave the subnet. Now, let's see
  • 22:35 - 22:39
    if we can ping Google--the actual Google website--
  • 22:39 - 22:41
    directly using DNS.
  • 22:41 - 22:43
    And we can ping. So if I go
  • 22:43 - 22:48
    on a browser here, it'll try to open the Google website.
  • 22:48 - 22:50
    I should be able to open it.
  • 22:52 - 22:53
    And sure enough,
  • 22:53 - 22:57
    I can open it. And it works. Perfect.
  • 22:58 - 23:00
    I hope this was useful for you guys, and
  • 23:00 - 23:02
    at some point, you'll use it.
  • 23:02 - 23:04
    That's it.
  • 23:04 - 23:06
    So guys, if you like these videos, please
  • 23:06 - 23:08
    like the video and hit the subscribe
  • 23:08 - 23:10
    button if you want to see more videos
  • 23:10 - 23:12
    like this. Also, I'm looking for ideas on
  • 23:12 - 23:14
    what kind of videos to create. So if you
  • 23:14 - 23:16
    have any idea and you're looking for
  • 23:16 - 23:19
    some kind of configuration on the Cisco
  • 23:19 - 23:21
    or similar network, you can put in the
  • 23:21 - 23:23
    comments what you want to see in the
  • 23:23 - 23:27
    next video. Thanks for watching, and have a good one.
Title:
Basic Cisco network troubleshooting
Description:

more » « less
Video Language:
English
Duration:
23:37

English subtitles

Revisions Compare revisions