400 likes | 414 Views
This comprehensive guide covers the role of routers, best path selection, router components, interface configuration, static routing, and more in a network environment. Learn about the functions of a router, how data is forwarded, and the importance of routing tables for directing packets efficiently. Understand the key components of a router, configuration processes for interfaces, and the differences between static and dynamic routing methods. Master the concepts of routing protocols and enhance your networking knowledge today.
E N D
General Role of the Router • Functions of a Router • Best Path Selections • Forwarding packets to destination
Routing Protocol and Concepts • Data is sent in form of packets between 2 end devices • Routers are used to direct packet to its destination
Routing Protocol and Concepts • Routers examine a packet’s destination IP address and determine the best path by enlisting the aid of a routing table
Routing Protocol and Concepts • ส่วนประกอบของ router และ ฟังก์ชั่นการทำงาน • CPU • Random access memory (RAM) • Read-only memory (ROM) • Non-volatile RAM (NVRAM) • Flash memory • Interfaces • -Ethernet / fast Ethernet interfaces • -Serial interfaces • -Management interfaces
Routing Protocol and Concepts • Router components
Routing Protocol and Concepts • กระบวนการทำงานของ router • Test router hardware • Power-On Self Test (POST) • Execute bootstrap loader • Locate & load Cisco IOS software • -Locate IOS • -Load IOS • Locate & load startup configuration file or enter setup mode • -Bootstrap program looks for configuration file
Routing Protocol and Concepts • การตรวจสอบข้อมูลของตัว router • -The show version command is used to view information about the router during the bootup process. Information includes: • Platform model number • Image name & IOS version • Bootstrap version stored in ROM • Image file name & where it was loaded from • Number & type of interfaces • Amount of NVRAM • Amount of flash • Configuration register
Routing Protocol and Concepts • Router Interface is a physical connector that enables a router to send or receive packets • Each interface connects to a separate network • Consist of socket or jack found on the outside of a router • Types of router interfaces: • -Ethernet • -Fastethernet • -Serial • -DSL • -ISDN • -Cable
Interfaces • Configuring an Ethernet interface • -By default all serial and Ethernet interfaces are down • -To enable an interface use the No Shutdown command
Interfaces • Configuring a Serial interface • -Enter interface configuration mode • -Enter in the ip address and subnet mask • -Enter in the no shutdown command • Example: • -R1(config)#interface serial 0/0 • -R1(config-if)#ip address 172.16.2.1 255.255.255.0 • -R1(config-if)#no shutdown
Physically connecting a WAN Interface • Data Circuit-terminating Equipment (DCE) – This is the service provider. • CSU/DSU is a DCE device. • Data Terminal Equipment (DTE) – Typically the router is the DTE device.
Interfaces • Configuring serial links in a lab environment • One side of a serial connection must be considered a DCE • This requires placing a clocking signal – use the clock rate command. • Example: • -R1(config)#interface serial 0/0 • -R1(config-if)#clockrate 64000 • Serial Interfaces require a clock signal to control the timing of the communications.
configure an Ethernet interface • To configure an Ethernet interface • Example: • -R2(config)#interface fastethernet 0/0 • -R2(config-if)#ip address 172.16.1.1 255.255.255.0 • -R2(config-if)#no shutdown
Directly connected route • When a router only has its interfaces configured&no other routing protocols are configured then: • -The routing table contains only the directly connected networks • -Only devices on the directly connected networks are reachable
Routing Table and CDP Protocol • Purpose of CDP • A layer 2 cisco proprietary tool used to gather information about other directly connected Cisco devices. • Disabling CDP • To disable CDP globally use the following command • Router(config)#no cdp run
Routing Protocol and Concepts • Static Routing : หมายถึงตาราง Routing Table ของ Router แต่ละตัวจะไม่เปลี่ยน ปกติตารางนี้จะถูกกำหนดจาก Network Administrationคือตารางนี้จะได้จากการทำ Configuration ของ Router • Dynamic Routing : หมายถึงตาราง Routing Table สามารถเปลี่ยนได้ ตามสภาวะความคับคั่งของ Network ขณะนั้นหรือจากปัจจัยอื่นๆ โดยมันจะมีการ Update ตลอดเวลา
General Role of the Router • Functions of a Router • Best Path Selections • Forwarding packets to destination
Static Routes • Purpose of a static route
Static Routes • IP routecommand
Next-Hop Options The next hop can be identified by an IP address, exit interface, or both. • Next-hop - Only the next-hop IP address is specified. • Directly connected - Only the router exit interface is specified. • Fully specified - The next-hop IP address and exit interface are specified.
Static Routes • Demo…
Zinin’s 3 routing principles • Principle 1: "Every router makes its decision alone, based on the information it has in its own routing table. " • Principle 2: "The fact that one router has certain information in its routing table does not mean that other routers have the same information. " • Principle 3: "Routing information about a path from one network to another does not provide routing information about the reverse, or return path."
Static Routes with Exit Interfaces • Modifying Static routes • Existing static routescannot be modified. The old static route must be deleted by placing noin front of the ip route • Example: -no ip route 192.168.2.0 255.255.255.0 172.16.2.2 • A new static route must be rewritten in the configuration
Verify a Static Route Along with ping and traceroute, useful commands to verify static routes include: • show ip route • show ip route static • show ip route network
Floating Static Route • Floating static routes are static routes that are used to provide a backup path to a primary static or dynamic route, in the event of a link failure. • The floating static route is only used when the primary route is not available. • To accomplishthis, the floating static route is configured with a higher administrative distance than the primaryroute.
Summary • Summarizing routesreduces the size of the routing table. • Route summarization is the process of combining a number of static routes into a single static route.
The ipv6 route Command Most of parameters are identical to the IPv4 version of the command. IPv6 static routes can also be implemented as: • Standard IPv6 static route • Default IPv6 static route • Summary IPv6 static route • Floating IPv6 static route
Troubleshoot a Missing Route Common IOS troubleshooting commands include: • ping • traceroute • show ip route • show ip interface brief • show cdp neighbors detail
Summary • ข้อดีของ Static Routing คือง่าย และไม่ต้องใช้ Routing Software(Router จะทำงานน้อยลง) นอกจากนี้จะไม่ใช้ Resource ของ Network เพราะ Router ไม่ต้องแลกเปลี่ยนข้อมูลกัน • ข้อเสียคือ ตารางเปลี่ยนไม่ได้ ถ้ามี Link Down หรือ Router Down เส้นทางนั้นจะใช้ไม่ได้ ทำให้การส่งข้อมูลที่กำหนดเส้นทางนั้นหยุดชะงักหรือใช้กำหนดสำหรับ Host ที่เชื่อมต่อกับ Network ที่มีทางออกผ่าน Router ตัวเดียว(คือค่า Gateway) • การใช้ Static Route ควรมีการกำหนด Default Route เสมอ • การทำ Static Route ต้องตรวจสอบให้ดีว่าจะไม่มี Route Loop