howtonetwork.net

Cisco Certification Training

  • Products
  • CCNA
    • CCNA Videos
    • CCNA Lectures
    • CCNA Practice Exams
    • Challenge Labs
      • Challenge Video Solutions
    • Cisco Commands
  • CCNP ROUTE
    • ROUTE Exams
  • CCNP SWITCH
    • SWITCH Exams
  • CCNP TSHOOT
  • Home
  • Join
  • Downloads
  • About Us
  • Whitepapers
  • Feature Articles
  • Helpdesk
  • FAQ
  • Free Training
You are here: Home / Distribute-List

Distribute-List

Command

Distribute-List

Use

Allows you to filter routes from the routing table. For CCNA purposes, usually this is done through access lists.

Syntax

Router(config-router)#distribute-list <list> <in/out>
OR
Router(config-router)#distribute-list <list> <in/out> <interface>

Options

<list> Access list
<in/out> Whether the router is receiving or sending the route

Example

simple

In this example, a distribute-list is applied to R2.

R2(config-router)#access-list 66 permit 1.1.1.1
R2(config-router)#distribute-list 66 out

Here is the route table from R3 before applying the distribute-list

R3(config-router)#do show ip route rip
1.0.0.0/32 is subnetted, 3 subnets
R 1.1.1.1 [120/2] via 10.2.2.2, 00:00:05, FastEthernet0/0
R 1.3.3.3 [120/2] via 10.2.2.2, 00:00:05, FastEthernet0/0
R 1.2.2.2 [120/2] via 10.2.2.2, 00:00:05, FastEthernet0/0
2.0.0.0/32 is subnetted, 1 subnets
R 2.2.2.2 [120/1] via 10.2.2.2, 00:00:05, FastEthernet0/0
10.0.0.0/24 is subnetted, 2 subnets
R 10.1.1.0 [120/1] via 10.2.2.2, 00:00:05, FastEthernet0/0

After applying the distribute-list, the only route that is passed from R2 is 1.1.1.1.

R3(config-router)#do show ip route rip
1.0.0.0/32 is subnetted, 1 subnets
R 1.1.1.1 [120/2] via 10.2.2.2, 00:00:05, FastEthernet0/0

Also, R1 no longer has any routes.

R1(config-router)#do show ip route ripR1(config-router)#
Get access to over 5 hours of IT webinar videos as well as regular study tips and ideas when you
join our mailing list

About This Site

We replaced this site some time ago with an upgraded version. Please feel free to enjoy the content and if you like what you see check out our brilliant new site:

howtonetwork.com

Keep In Touch

About Us

This is a free access website which has now been replaced by howtonetwork.com.

Navigation

  • Home
  • Join
  • Downloads
  • About Us
  • Whitepapers
  • Feature Articles
  • Helpdesk
  • FAQ
  • Free Training

Copyright

All content is protected by international copyright laws. Copyright Reality Press Ltd.

Copyright © 2023 · Dynamik Website Builder on Genesis Framework · WordPress · Log in