CISCO ROUTER CONFIGURATION


CISCO ROUTER CONFIGURATION Router duty to deliver data packets from one network to another network, the network sender only knows that the goal is far from the router. And routerlah that govern the delivery mechanism other than that the router also choose the "best way" to achieve the goal. There are two types of routers based on the routing of his way, namely Router Router Static and Dynamic.
1. Static Router   
Static Router is the Router to Route specific path specified by the user to forward packets from source to destination. This route is determined by the administrator to control the behavior of IP routing "internetwork". Static Routes - Routes that are learned by the router as an administrator to form a route manually. Administrators need to update or to "update" this static route manually when topology changes occur between the network (internetwork). Configure your router is by entering a static routing table manually. No changes the dynamic in this table for the path / route is active. 

2. Dynamic Router Dynamic Router is the Router to Route path formed automatically by the router itself according to the configuration are made. If there are changes in inter-network topology, the router will automatically create a new routing. Routing Table So that the router can serve a request to forward data transmission, the router must have a table that is used as benchmark data should be sent to the network which one? The table that belongs to the router called a routing table that contains NETID and Default gateway. 192.168.1.5192.168.2.36192.168.1/24192.168.2/24Router192.168.1.13192.168.2.43 Figure 1. Example network design with two subnets Configuring a Cisco Router Based on Figure 1, the following is the scenario of sending data from computer to computer 192.168.1.5 192.168.2.36: 1. Computer 192.168.1.5 wants to send data to 192.168.2.36, realizing that the destination address is not on local network, then the computer looking for a list of "default gateway" on the property TCP / IP is 192.168.1.13. Data packets are then sent to the Gateway. 2. On the computer 192.168.1.13 packet re-examined, and found in the routing table that the package can be sent to the network via IP 192.168.2.43 192.168.2 3. Via IP 192.168.2.43 finally data can be transmitted to the destination is 192.168.2.36 Configure static routing Building a static routing on the routers are not that difficult. You can just enter global configuration mode and run the following formula on each router to be configured: Ip route <destination> <mask> <next_hop_address> Here are details for each option: Ip route: command to create a static routing itself Destination: network goals to be added to the routing table Mask: subnet mask used in the network Next_hop_address: address of next hop router, ie who will receive the packet and forwards it to the remote network. No other form of interface of the router from the network router is connected directly. Example: Router (config) # ip route 10.252.0.0 255.255.255.0 172.16.0.2 Meaning: Ip network destination: 10.252.0.0 Mask: 255.255.255.0 IP Next-hop: 172.16.0.2 1.1. Configuring static routing in Packet Tracer Simulate network design below, use the Static Routing Cisco Router Configuration 2 Figure 2. Example of Network Configuration with a Static Router 1. Configuring each PC: PC 1: 192.168.2.2 PC 2: 192.168.2.3 PC 3: 192.168.1.2 PC 4: 192.168.1.4 PC 5: 10.0.0.3 PC 6: 10.0.0.5 PC 7: 10.0.1.2 PC 8: 10.0.1.6 Click on the PC to be set. Select the Desktop menu. In the IP Configuration, type the IP Address, subnet mask and default gateway (the IP number of routers that connect directly to a PC.) Figure 3. PC Configuration Cisco Router Configuration 3 2. Configuration of each router Click a router to be configured. Select the Config menu. Select Interface 􀃆 Serial 1 / 0. Fill the IP Address and Subnet Mask it. Do not forget ON Port Status. Do the same for the other interfaces (serial and FastEthernet). Especially for a serial connection, if the router is configured DCE side, fill a large clock rate depending on the desired setting. Router 2 Serial 1 / 0: 172.16.1.1 􀃆 DCE Fe 0 / 0: 192.168.2.1 Router 0 Serial 1 / 0: 172.16.1.2 􀃆 DTE Serial 2 / 0: 172.16.0.1 􀃆 DCE Fe 0 / 0: 192.168.1.1 Router 1: Serial 1 / 0: 172.16.0.2 􀃆 DTE Fe 0 / 0: 10.0.0.1 Fe 0 / 1: 10.0.1.1 Figure 4. Router Configuration 3. If all configured devices is complete, check the connection between each device with the ping command. Cisco Router Configuration 4 Figure 5. Ping command from the PC 1 (192.168.2.2) to the PC 2 (192.168.2.3) 4. Configuration in Figure 2 is incomplete, because of the unavailability of routing table on each router. If implemented the ping command from one device within a network segment to another device on another network segment, then the connection will not connect. Routing tables are made at each router to the networks that do not connect directly to the router serve targeted. Discussion detail about Table Routing is explained in another section. 1.2. Configure static routing on Router Physical Design the same network as figure 2. Prepare the equipment as follows: 3 pieces routers (2811), 4 switches (2960) and 8 PCs. The steps are as follows: 1. Connect the serial interface on the empty slot on the router. How to install the same as described in Packet Tracer. Cisco Router Configuration 5 Figure 6. The assembly interface on slot Router 2. Prepare Rollover cable. Connect the RJ-45 connector to the Console on the router and the DB 9 connector to the serial port COM 1. Figure 7. Console terminal connection 3. ON my device. On the PC, go into Hyperterminal. Set parameters of bits per second, data bits, parity, stop bits and flow control with a value of 9600,8, N, 1, N as shown 8. Figure 8. Console Terminal Settings using Hyperterminal Cisco Router Configuration 6 4. Wait until there is response from the router in question. Fill in your user id and password required. Next on my display as follows: Router> enable 􀃆 type (to enable the relevant routers.) Think of this as a Router Router 2. We will set the router in accordance with the configuration of Router 2 that there is in figure 1 Router 2: Router> enable 􀃆 enable the router in question Router # conf t Router (config) # interface serial 0/1/0 Router (config-if) # ip address 172.16.1.1 255 255 255 252 Router (config-if) # no shutdown Router (config-if) # clock rate 9600 Router (config-if) # exit Router (config) # interface fasethernet 0 / 0 Router (config-if) # ip address 192.168.2.1 255.255.255.0 Router (config-if) # no shutdown Router (config-if) # exit Router 0: Router> enable Router # conf t Router (config) # interface serial 0/1/0 Router (config-if) # ip address 172.16.1.2 255 255 255 252 Router (config-if) # no shutdown Router (config-if) # exit Router (config) # interface serial 0/1/1 Router (config-if) # ip address 172.16.0.1 255 255 255 252 Router (config-if) # no shutdown Router (config-if) # clock rate 9600 Router (config-if) # exit Router (config) # interface fasethernet 0 / 0 Router (config-if) # ip address 192.168.1.1 255.255.255.0 Router (config-if) # no shutdown Router (config-if) # exit Router 1: Router> enable Router # conf t Router (config) # interface serial 0/1/0 Router (config-if) # ip address 172.16.0.2 255 255 255 252 Router (config-if) # no shutdown Router (config-if) # exit Router (config) # interface fasethernet 0 / 0 Router (config-if) # ip address 10.0.0.1 255.255.255.0 Cisco Router Configuration 7 Router (config-if) # no shutdown Router (config-if) # exit Router (config) # interface fasethernet 0 / 1 Router (config-if) # ip address 10.0.1.1 255.255.255.0 Router (config-if) # no shutdown Router (config-if) # exit To check the configuration on each router, type the command: Router # show running-startup 5. Connect each routers to the switch using a straight through cable partners and their respective switches to PCs connected to it also with a straight through cable. Set the IP address of the PC in accordance with the configuration in Figure 2. Click Control Panel, select Network Connections, click 2 times on the image LAN. On the LAN Status click the Properties button. Type the IP number, Subnet mask and default gateway as designed in Figure 2. Content here Figure 9. Configuring the IP Address on your PC Creating a Static Routing Table After all devices are configured, it should be added to routing table in each router. Routing Table, it points to the network (network) is not connected directly with the router .. As previously mentioned, Static Routing Table is made by the Administrator manually. This table needs to be updated if any changes in network configuration. Static Routing Table form shown in figure 10. Cisco Router Configuration 8 ROUTER 1NetworkSubnet MaskNext Hop192.168.1.0255.255.255.0172.16.0.1172.16.1.0255.255.255.252172.16.0.1192.168.2.0255.255.255.0172.16.0.1192.168.3.0255.255.25.0172.16.0.1ROUTER 0NetworkSubnet MaskNext Hop10.0.0.0255.255.255.0172 ROUTER .16.0.2192.168.2.0255.255.255.0172.16.1.1192.168.3.0255.255.255.0172.16.1.1 2NetworkSubnet MaskNext Hop10.0.0.0255.255.255.0172.16.1.2192.168.1.0255.255.255.0172.16.1.2172.16.0.0255.255.255.252172. 16.1.2 Figure 10. Routing tables for the network konfigurai Figure 1 - On each router add the command: ip route <network IP> <netmask> <next hop> Router 0: Router (config) # ip route 10.0.0.0 255.255.255.0 172.16.0.2 Router (config) # ip route 192.168.2.0 255.255.255.0 172.16.1.1 Router (config) # ip route 192.168.3.0 255.255.255.0 172.16.1.1 Router 1: Router (config) # ip route 192.168.1.0 255.255.255.0 172.16.0.1 Router (config) # ip route 172.16.1.0 172.16.0.1 255 255 255 252 Router (config) # ip route 192.168.2.0 255.255.255.0 172.16.0.1 Router (config) # ip route 192.168.3.0 255.255.255.0 172.16.0.1 Router 2: Router (config) # ip route 10.0.0.0 255.255.255.0 172.16.1.2 Router (config) # ip route 192.168.1.0 255.255.255.0 172.16.1.2 Router (config) # ip route 172.16.0.0 255.255.255.0 172.16.1.2 To view the entire configuration ip route on each router, type the command show ip route 􀃆 in priviledged mode Cisco Router Configuration 9 Creating a Dynamic Table Routing a) Routing RIP (Routing Information Protocol) Steps: 1. Creating routes with RIP model router rip 􀃆 in priviledged mode network <IP network> 􀃆 in Global Configuration mode write to 􀃆 - "- 2. view all routes to each other routers show ip route 􀃆 in priviledged mode 3. just see RIP routes only show ip route rip 􀃆 in priviledged mode Example: The configuration of figure 1 - Creating a route with rip models in each router Router 0: Router # router rip Router (config-router) # network 172.16.1.0 Router (config-router) # network 172.16.0.0 Router (config-router) # network 192.168.1.0 Network is directly connected to the router 0 Router 1: Router # router rip Router (config-router) # network 172.16.0.0 Router (config-router) # network 10.0.0.0 Router (config-router) # network 10.0.1.0 Network that directly connect with router 1 Router 2: Router # router rip Router (config-router) # network 172.16.1.0 Router (config-router) # network 192.168.2.0 Network that directly connect with router 2 - View the entire route configuration on the router (into tissues that are not connected directly to the router) Router # show ip route Will be displayed: (For Router 0) R 192.168.2.0/24 via 172.16.1.1 serial 0 / 0 R 10.0.0.0/24 via 172.16.0.2 serial 0 / 1 R 10.0.1.0/24 via 172.16.0.2 serial 0 / 1 C 172.16.1.0 directly connected serial 0 / 0 C 172.16.0.0 directly connected serial 0 / 1 C 192.168.1.0 directly connected FastEthernet 0 / 0 Cisco Router Configuration 10 R 􀃎 RIP Routing C 􀃎 Directly Connected (For Routers 1) R 172.16.1.0/30 via 172.16.0.1 serial 0 / 0 R 192.168.1.0/24 via 172.16.0.1 serial 0 / 0 R 192.168.2.0/24 via 172.16.0.1 serial 0 / 0 C 172.16.0.0 directly connected serial 0 / 0 C 10.0.0/24 directly connected FastEthernet 0 / 0 C 10.0.1.0/24 directly connected FastEthernet 0 / 1 (For Router 2 please look for yourself) b) Routing EIGRP (Enhanced Interior Gateway Routing Protocol) Steps: 1. Creating routes with EIGRP model router eigrp <autonomous system number> 􀃆 in priviledged mode network <IP network> <wildcard-mask> 􀃆 in Global Configuration mode write to 􀃆 - "- 2. Seeing all the routes to each other routers show ip route 􀃆 in priviledged mode Example: The configuration of figure 1 - Creating a route with rip models in each router Router 0: Router # router eigrp 100 Network is directly connected to the router 0 Router (config-router) # network 172.16.1.0 0 0.0.3 Router (config-router) # network 172.16.0.0 0.0.0.3 Router (config-router) # network 192.168.1.0 0.0.0.255 Router 1: Router # router eigrp 100 Router (config-router) # network 172.16.0.0 0 0.0.3 Router (config-router) # network 10.0.0.0 0.0.0.255 Network that directly connect with router 1 Router (config-router) # network 10.0.1.0 0.0.0.255 Router 2: Router # router eigrp 100 Router (config-router) # network 172.16.1.0 0.0.0.3 Router (config-router) # network 192.168.2.0 0.0.0.255 Network that directly connect with router 2 - View the entire route configuration on the router (into tissues that are not connected directly to the router) Router # show ip route Cisco Router Configuration 11 Will be displayed: (For Router 0) D 192.168.2.0/24 via 172.16.1.1 serial 0 / 0 D 10.0.0.0/24 via 172.16.0.2 serial 0 / 1 D 10.0.1.0/24 via 172.16.0.2 serial 0 / 1 C 172.16.1.0 directly connected serial 0 / 0 C 172.16.0.0 directly connected serial 0 / 1 C 192.168.1.0 directly connected FastEthernet 0 / 0 D 􀃎 EIGRP Routing c) Routing OSPF (Open Shortest Path First) Creating Routing with OSPF models OSPF routers <process id> <ip network network> - The command to view the route from the sender to the terminal objectives: Router # traceroute <ip tujuan> (To be shown the route through any network to the destination) taken from: 1. Ppt notes of his Pak Amang 2. Hint practicum Jarkom D4-LJ 3. Cisco Router training records Aug. Cisco Router Configuration 12