设为首页收藏本站language 语言切换
查看: 1107|回复: 3
收起左侧

[分享] CCNA LAB 106: Configuring Routing

[复制链接]
 成长值: 63730
发表于 2023-2-8 09:14:39 | 显示全部楼层 |阅读模式
本帖最后由 小乔 于 2023-2-8 09:20 编辑


Once, you are have configured basic configuration, such as hostname, IP address, password etc. the next step towards earning your CCNA certification is Configuring Routing. In the previous exercises, we have explained the basics of Routing and Routing Protocols. Now, we will start to perform routing methods. For this, we will start from the Static Routing configuration.


Routing is a process by which routers learn and share the routing information to each other. A Router requires route information in order to forward a packet to correct destination. When a router receives a packet, it checks its routing table to match the source and destination IP addresses of received packet and then decides where to forward this packet. If the destination route information is not found in the routing table, router discards the packet and sends the Destination host unreachable message to the source device. Routing process can be divided in to two categories: Static routing and Dynamic routing.

Static vs Dynamic Routing
The following table lists the basic differences between static and dynamic routing.

1Difficult to configurePhần mềm1Difficult to configurePhần mềm1Difficult to configurePhần mềm

Sr. No.        Static routing        Dynamic routing
1        Difficult to configure        Easy to configure
2        Requires more manual user interaction        Requires less user interaction
3        Suitable for small networks        Suitable for large networks
4        Consumes less hardware resources        Consumes more hardware resources
5        More reliable method        Less reliable method
Configuring Static Routing
In this exercise, we will configure the static routing. To do so, load the topology that we have created in Cisco Packet Tracer.
106.jpg


Before performing this lab exercise, we assume that you created the preceding topology and also configured the appropriate IP addresses on each device as mentioned in the topology. If you have not done yet, please create the topology and configure IP addresses before proceed to next.

Add Route Command Syntax
The add route command is used to configure the static routing. The syntax of the add route command is given as follows:

ip route add < destination prefix > < destination prefix mask > < default gateway/ exit interface > < optionally metric >
Steps to configure Static Routing
To configure static routing for the preceding topology, you need to perform the following steps:

1.  On Router1, execute the following command to add 20.0.0.0/ 8 network.


Router1( config)# ip route 20.0.0.0 255.0.0.0 192.168.1.2
Router1( config)# exit
Router1# show ip route
2.  Verify that a static route is added in the routing table.



3.  Switch to Router2, open the CLI interface, and execute the following commands at the global configuration mode.

Router2( config)# ip route 10.0.0.0 255.0.0.0 192.168.1.1
Router2( config)# exit
Router2# show ip route
Testing Configuration
Once you have configured the static routing, test your configuration by checking connectivity between PC0 (10.0.0.2) and PC2 (20.0.0.3). To verify the configuration, open the Command Prompt window of PC0, and type the following command:


Tracert 20.0.0.3
Ping 20.0.0.3


Verify that you get the successful reply from PC3.

Removing Static Routes from the Routing Table
1.  To remove static routes from the routing table, you need to execute the following command at the global configuration mode:

Router1( config)# no ip route 20.0.0.0 255.0.0.0 192.168.1.2
Router2( config)# no ip route 10.0.0.0 255.0.0.0 192.168.1.1
2.  Close the Router1 and Router2 consoles and reload the Topology file to perform the next exercise.



来源: CCNA LAB 99: Configuring eBGP Advanced
来源: CCNA LAB 100: Configuring GRE Point-To-Point Tunnels
来源: CCNA LAB 101: Configuring IPv6 Traffic Filters
来源: CCNA LAB 102: Implementing HSRP
来源: CCNA LAB 103: Configuring IP SLA
来源: CCNA LAB 104: Configuring SNMPv3
来源: CCNA LAB  105: Configuring SNMPv2
发表于 2023-3-17 13:54:08 | 显示全部楼层
谢谢楼主分享!
沙发 2023-3-17 13:54:08 回复 收起回复
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-2-24 10:07 , Processed in 0.064097 second(s), 25 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表