Cisco Router Konfigurasi Tutorial

1. What this document covers Apa dokumen ini mencakup

There are several methods available for configuring Cisco routers. Ada beberapa metode yang tersedia untuk mengkonfigurasi router Cisco. It can be done over the network from a TFTP server. Hal ini dapat dilakukan melalui jaringan dari server TFTP. It can be done through the menu interface provided at bootup, and it can be done from the menu interface provided by using the command setup . Hal ini dapat dilakukan melalui antarmuka menu yang disediakan saat bootup, dan dapat dilakukan dari antarmuka menu yang disediakan dengan menggunakan perintah setup . This tutorial does not cover these methods. Tutorial ini tidak meliputi metode ini. It covers configuration from the IOS command-line interface only. Ini mencakup konfigurasi dari antarmuka baris perintah IOS saja. Useful for anyone new to Cisco routers, and those studying for CCNA. Berguna bagi siapa saja baru untuk router Cisco, dan mereka belajar untuk CCNA.

Note that this tutorial does not cover physically connecting the router to the networks it will be routing for. Perhatikan bahwa tutorial ini tidak mencakup secara fisik menghubungkan router ke jaringan maka akan routing. It covers operating system configuration only. Ini mencakup konfigurasi sistem operasi saja.

1.1 Reasons for using the command-line 1.1 Alasan untuk menggunakan baris perintah

The main reason for using the command-line interface instead of a menu driven interface is speed. Alasan utama untuk menggunakan antarmuka baris perintah, bukan sebuah tampilan dengan menu didorong adalah kecepatan. Once you have invested the time to learn the command-line commands, you can perform many operations much more quickly than by using a menu. Setelah Anda telah menginvestasikan waktu untuk mempelajari perintah command-line, Anda dapat melakukan banyak operasi jauh lebih cepat daripada dengan menggunakan menu. This is basically true of all command-line vs. menu interfaces. Hal ini pada dasarnya berlaku untuk semua baris-perintah vs antarmuka menu. What makes it especially efficient to learn the command-line interface of the Cisco IOS is that it is standard across all Cisco routers. Apa yang membuatnya sangat efisien untuk mempelajari antarmuka baris perintah IOS Cisco adalah bahwa hal itu merupakan standar di semua router Cisco. Also, some questions on the CCNA exam require you to know command-line commands. Juga, beberapa pertanyaan pada ujian CCNA meminta Anda untuk mengetahui perintah-perintah baris.

2. 2. Getting started with Cisco Memulai dengan Cisco

Initially you will probably configure your router from a terminal. Awalnya Anda mungkin akan mengkonfigurasi router Anda dari terminal. If the router is already configured and at least one port is configured with an IP address, and it has a physical connection to the network, you might be able to telnet to the router and configure it across the network. Jika router sudah dikonfigurasi dan setidaknya satu port yang dikonfigurasi dengan alamat IP, dan memiliki koneksi fisik ke jaringan, Anda mungkin bisa telnet ke router dan konfigurasi di seluruh jaringan. If it is not already configured, then you will have to directly connect to it with a terminal and a serial cable. Jika tidak sudah dikonfigurasi, maka Anda akan harus terhubung secara langsung dengan dengan sebuah terminal dan kabel serial. With any Windows box you can use Hyperterminal to easily connect to the router. Dengan kotak Windows Anda dapat menggunakan Hyperterminal untuk dengan mudah terhubung ke router. Plug a serial cable into a serial (COM) port on the PC and the other end into the console port on the Cisco router. Hubungkan kabel serial ke port (COM) urut pada PC dan ujung lainnya ke port console pada router Cisco. Start Hyperterminal, tell it which COM port to use and click OK . Mulai Hyperterminal, katakan itu COM port yang digunakan dan klik OK . Set the speed of the connection to 9600 baud and click OK . Mengatur kecepatan koneksi ke 9600 baud dan klik OK . If the router is not on, turn it on. Jika router tidak aktif, hidupkan.

If you wish to configure the router from a Linux box, either Seyon or Minicom should work. Jika Anda ingin mengkonfigurasi router dari kotak Linux, baik Seyon atau minicom harus bekerja. At least one of them, and maybe both, will come with your Linux distribution. Setidaknya salah satu dari mereka, dan mungkin baik, akan datang dengan distribusi Linux Anda.

Often you will need to hit the Enter key to see the prompt from the router. Seringkali Anda perlu menekan Enter kunci untuk melihat prompt dari router. If it is unconfigured it will look like this: Jika dikonfigurasi maka akan terlihat seperti ini:

Router>

If it has been previously configured with a hostname, it will look like this: Jika sebelumnya telah dikonfigurasi dengan nama host, maka akan terlihat seperti ini:

hostname of router>

If you have just turned on the router, after it boots it will ask you if you wish to begin initial configuration. Say no. If you say yes , it will put you in the menu interface. Jika Anda baru saja diaktifkan di router, setelah boot akan menanyakan apakah Anda ingin memulai konfigurasi awal.. Katakan tidak Jika Anda mengatakan yes , ia akan menempatkan Anda di antarmuka menu. Say no . Katakanlah no .

2.1 Modes 2.1 Mode

The Cisco IOS command-line interface is organized around the idea of modes . Cisco IOS command-line interface diselenggarakan di sekitar gagasan mode. You move in and out of several different modes while configuring a router, and which mode you are in determines what commands you can use. Anda bergerak masuk dan keluar dari mode yang berbeda ketika mengkonfigurasi router, dan yang modus Anda berada dalam menentukan perintah apa yang dapat Anda gunakan. Each mode has a set of commands available in that mode, and some of these commands are only available in that mode. Setiap mode memiliki seperangkat perintah yang tersedia dalam mode tersebut, dan beberapa perintah ini hanya tersedia dalam mode tersebut. In any mode, typing a question mark will display a list of the commands available in that mode. Dalam mode apa pun, mengetik tanda tanya akan menampilkan daftar perintah yang tersedia dalam mode tersebut.

Router>?

2.2 Unprivileged and privileged modes 2.2 unprivileged dan mode istimewa

When you first connect to the router and provide the password (if necessary), you enter EXEC mode, the first mode in which you can issue commands from the command-line. Ketika Anda pertama kali terhubung ke router dan memberikan password (jika perlu), anda masuk ke mode EXEC, mode pertama di mana anda dapat menjalankan perintah dari baris-perintah. From here you can use such unprivileged commands as ping, telnet, and rlogin. You can also use some of the show commands to obtain information about the system. Dari sini Anda dapat menggunakan perintah unprivileged seperti ping, telnet, and rlogin. Anda juga dapat menggunakan beberapa show perintah untuk memperoleh informasi tentang sistem. In unprivileged mode you use commands like, show version to display the version of the IOS the router is running. Dalam mode unprivileged anda menggunakan perintah seperti, show version untuk menampilkan versi dari IOS router berjalan. Typing show ? will diplay all the show commands available in the mode you are presently in. Mengetik show ? akan diplay semua show perintah yang tersedia dalam modus Anda saat ini masuk

Router>show ?

You must enter privileged mode to configure the router. Anda harus memasukkan privileged mode untuk mengkonfigurasi router. You do this by using the command enable . Anda melakukan ini dengan menggunakan perintah enable . Privileged mode will usually be password protected unless the router is unconfigured. mode Privileged biasanya akan dilindungi password kecuali router dikonfigurasi. You have the option of not password protecting privileged mode, but it is HIGHLY recommended that you do. Anda memiliki pilihan untuk tidak melindungi password privileged mode, tetapi itu adalah SANGAT dianjurkan yang Anda lakukan. When you issue the command enable and provide the password, you will enter privileged mode. Ketika Anda mengeluarkan perintah enable dan memberikan password, Anda akan memasuki privileged mode.

To help the user keep track of what mode they are in, the command-line prompt changes each time you enter a different mode. Untuk membantu pengguna melacak apa modus mereka dalam, perubahan baris perintah prompt setiap kali Anda memasukkan modus yang berbeda. When you switch from unprivileged mode to privileged mode, the prompt changes from: Bila Anda beralih dari modus unprivileged ke modus istimewa, perubahan prompt dari:

Router>

to untuk

Router#

This would probably not be a big deal if there were just two modes. Ini mungkin tidak akan menjadi masalah besar jika hanya ada dua mode. There are, in fact, numerous modes, and this feature is probably indispensable. Ada, pada kenyataannya, banyak mode, dan fitur ini mungkin sangat diperlukan. Pay close attention to the prompt at all times. Memperhatikan prompt setiap saat.

Within privileged mode there are many sub-modes . Dalam privileged mode terdapat banyak sub-mode. In this document I do not closely follow Cisco terminology for this hierarchy of modes. Dalam dokumen ini saya tidak selalu mengikuti Cisco terminologi untuk hirarki mode. I think that my explanation is clearer, frankly. Saya berpikir bahwa penjelasan saya lebih jelas, terus terang. Cisco describes two modes, unprivileged and privileged, and then a hierarchy of commands used in privileged mode. Cisco menggambarkan dua mode, tanpa privilege dan istimewa, dan kemudian hierarki perintah yang digunakan pada privileged mode. I reason that it is much clearer to understand if you just consider there to be many sub-modes of privileged mode, which I will also call parent mode. Aku alasan bahwa itu jauh lebih jelas untuk memahami jika Anda hanya menganggap ada akan banyak sub-mode privileged mode, yang saya juga akan mode telepon induk. Once you enter privileged mode (parent mode) the prompt ends with a pound sign (#). Setelah Anda masuk ke privileged mode (mode orang tua) berakhir prompt dengan tanda pagar (#). There are numerous modes you can enter only after entering privileged mode. Ada banyak mode yang dapat Anda masukkan hanya setelah memasuki privileged mode. Each of these modes has a prompt of the form: Masing-masing mode memiliki prompt dalam bentuk:

Router(arguments)# Router (argumen) #

They still all end with the pound sign. Mereka masih semua diakhiri dengan tanda pon. They are subsumed within privileged mode. Mereka dimasukkan dalam privileged mode. Many of these modes have sub-modes of their own. Banyak dari mode ini memiliki sub-cara mereka sendiri. Once you enter priliged mode, you have access to all the configuration information and options the IOS provides, either directly from the parent mode, or from one of its submodes. Setelah Anda memasukkan priliged mode, Anda memiliki akses ke semua informasi konfigurasi dan pilihan IOS menyediakan, baik secara langsung dari modus orang tua, atau dari salah satu submode nya.

3. 3. Configuring your Cisco Router Konfigurasi Cisco Router

If you have just turned on the router, it will be completely unconfigured. Jika Anda baru saja diaktifkan di router, maka akan benar-benar tidak dikonfigurasi. If it is already configured, you may want to view its current configuration. Jika sudah dikonfigurasi, Anda mungkin ingin melihat konfigurasi saat ini. Even if it has not been previously configured, you should familiarize yourself with the show commands before beginning to configure the router. Bahkan jika belum pernah dikonfigurasi, Anda harus membiasakan diri dengan show perintah sebelum mulai mengkonfigurasi router. Enter privileged mode by issuing the command enable , then issue several show commands to see what they display. Masukkan privileged mode dengan menerbitkan perintah enable , maka masalah beberapa show perintah untuk melihat apa yang mereka tampilkan. Remember, the command show ? will display all the show commands aavailable in the current mode. Ingat, perintah show ? akan menampilkan semua show perintah aavailable dalam mode aktif. Definately try out the following commands: Pasti mencoba perintah berikut:

Router#show interfaces
Router#show ip protocols
Router#show ip route
Router#show ip arp

When you enter privileged mode by using the command enable , you are in the top-level mode of privileged mode, also known in this document as "parent mode." Bila Anda memasukkan privileged mode dengan menggunakan perintah enable , Anda berada dalam modus tingkat atas privileged mode, juga dikenal dalam dokumen ini sebagai "mode induk." It is in this top-level or parent mode that you can display most of the information about the router. Hal ini di tingkat atas atau mode orang tua bahwa Anda dapat menampilkan sebagian besar informasi tentang router. As you now know, you do this with the show commands. Seperti yang Anda sekarang tahu, Anda melakukan ini dengan show perintah. Here you can learn the configuration of interfaces and whether they are up or down. Di sini Anda bisa belajar konfigurasi antarmuka dan apakah mereka atas atau bawah. You can display what IP protocols are in use, such as dynamic routing protocols. Anda dapat menampilkan apa yang IP protokol yang digunakan, seperti protokol routing dinamis. You can view the route and ARP tables, and these are just a few of the more important options. Anda dapat melihat rute dan tabel ARP, dan ini hanya beberapa pilihan yang lebih penting.

As you configure the router, you will enter various sub-modes to set options, then return to the parent mode to display the results of your commands. Saat Anda mengkonfigurasi router, Anda akan memasuki berbagai sub-mode untuk mengatur pilihan, kemudian kembali ke modus orangtua untuk menampilkan hasil perintah Anda. You also return to the parent mode to enter other sub-modes. Anda juga kembali ke modus orang tua untuk masuk sub-mode. To return to the parent mode, you hit ctrl-z . Untuk kembali ke modus induk, anda menekan ctrl-z . This puts any commands you have just issued into affect, and returns you to parent mode. Hal ini menempatkan setiap perintah yang baru saja diterbitkan dalam mempengaruhi, dan mengembalikan Anda ke mode orang tua.

3.1 Global configuration (config) 3.1 Global konfigurasi (config)

To configure any feature of the router, you must enter configuration mode. Untuk mengkonfigurasi fitur router, Anda harus masuk ke mode konfigurasi. This is the first sub-mode of the parent mode. Ini adalah sub pertama-mode dari mode induk. In the parent mode, you issue the command config . Dalam modus induk, Anda mengeluarkan perintah config .

Router#config
Router(config)#

As demonstrated above, the prompt changes to indicate the mode that you are now in. Sebagaimana ditunjukkan di atas, perubahan mode prompt untuk menunjukkan bahwa Anda sekarang masuk

In connfiguration mode you can set options that apply system-wide, also refered to as "global configurations." Dalam mode connfiguration Anda dapat mengatur opsi yang menerapkan sistem-lebar, juga disebut sebagai "konfigurasi global." For instance, it is a good idea to name your router so that you can easily identify it. Sebagai contoh, adalah ide yang baik untuk nama router Anda sehingga Anda dapat dengan mudah mengidentifikasinya. You do this in configuration mode with the hostname command. Anda melakukan ini dalam mode konfigurasi dengan hostname perintah.

Router(config)#hostname ExampleName
ExampleName(config)#

As demonstrated above, when you set the name of the host with the hostname command, the prompt immediately changes by replacing Router with ExampleName . Sebagaimana ditunjukkan di atas, saat Anda menetapkan nama host dengan hostname perintah, segera perubahan prompt dengan mengganti Router dengan ExampleName . ( Note: It is a good idea to name your routers with an organized naming scheme.) (Catatan: Ini adalah ide yang baik untuk nama router Anda dengan skema penamaan terorganisir.)

Another useful command issued from config mode is the command to designate the DNS server to be used by the router: Perintah lain yang berguna yang dikeluarkan dari config mode adalah perintah untuk menunjuk server DNS yang akan digunakan oleh router:

ExampleName(config)#ip name-server aa.bb.cc.dd
ExampleName(config)#ctrl-Z
ExampleName#

This is also where you set the password for privileged mode. Hal ini juga tempat anda menentukan password untuk privileged mode.

ExampleName(config)#enable secret examplepassword
ExampleName(config)#ctrl-Z
ExampleName#

Until you hit ctrl-Z (or type exit until you reach parent mode) your command has not been put into affect. Sampai anda menekan ctrl-Z (atau jenis exit sampai Anda mencapai modus induk) Perintah Anda belum dimasukkan ke dalam mempengaruhi. You can enter config mode, issue several different commands, then hit ctrl-Z to activate them all. Anda dapat memasukkan config mode, mengeluarkan perintah yang berbeda, lalu tekan ctrl-Z untuk mengaktifkan mereka semua. Each time you hit ctrl-Z you return to parent mode and the prompt: Setiap kali anda menekan ctrl-Z Anda kembali ke mode orang tua dan prompt:

ExampleName#

Here you use show commands to verify the results of the commands you issued in config mode. Di sini Anda gunakan show perintah untuk memverifikasi hasil dari perintah yang Anda diterbitkan dalam config mode. To verify the results of the ip name-server command, issue the command show host . Untuk memverifikasi hasil ip name-server perintah, mengeluarkan perintah show host .

3.2 Configuring Cisco router interfaces 3.2 Konfigurasi Cisco router interface

Cisco interface naming is straightforward. penamaan interface Cisco langsung. Individual interfaces are referred to by this convention: interface individu disebut dengan konvensi ini:

media type slot#/port#

"Media type" refers to the type of media that the port is an interface for, such as Ethernet, Token Ring, FDDI, serial, etc. Slot numbers are only applicable for routers that provide slots into which you can install modules. "Tipe Media" mengacu pada jenis media yang port antarmuka untuk, seperti Ethernet, Token Ring, FDDI, serial, dll Slot nomor hanya berlaku untuk router yang menyediakan slot di mana Anda dapat menginstal modul. These modules contain several ports for a given media. Modul ini berisi beberapa port untuk media tertentu. The 7200 series is an example. Seri 7200 adalah contohnya. These modules are even hot-swapable. Modul ini bahkan panas-swapable. You can remove a module from a slot and replace it with a different module, without interrupting service provided by the other modules installed in the router. Anda dapat menghapus modul dari slot dan menggantinya dengan modul yang berbeda, tanpa mengganggu layanan yang disediakan oleh modul-modul lain yang diinstal di router. These slots are numbered on the router. Slot ini diberi nomor pada router.

Port number refers to the port in reference to the other ports in that module. Port number mengacu pada pelabuhan di referensi ke port lain dalam modul tersebut. Numbering is left-to-right, and all numbering starts at 0, not at one. Penomoran adalah kiri-ke-kanan, dan semua mulai penomoran dari 0, bukan pada satu.

For example, a Cisco 7206 is a 7200 series router with six slots. Sebagai contoh, Cisco 7206 merupakan router seri 7200 dengan enam slot. To refer to an interface that is the third port of an Ethernet module installed in the sixth slot, it would be interface ethernet 6/2. Untuk lihat interface yang merupakan pelabuhan ketiga modul Ethernet dipasang di slot keenam, akan antarmuka ethernet 6 / 2. Therefor, to display the configuration of that interface you use the command: Oleh karena itu, untuk menampilkan konfigurasi antarmuka yang Anda gunakan perintah:

ExampleName#show interface ethernet 6/2

If your router does not have slots, like a 1600, then the interface name consists only of: Jika router Anda tidak memiliki slot, seperti 1600, maka nama interface hanya terdiri dari:

media type port#

For example: Sebagai contoh:

ExampleName#show interface serial 0

Here is an example of configuring a serial port with an IP address: Berikut adalah contoh konfigurasi port serial dengan alamat IP:

ExampleName#config
ExampleName(config)#interface serial 1/1
ExampleName(config-if)#ip address 192.168.155.2 255.255.255.0
ExampleName(config-if)#no shutdown
ExampleName(config-if)#ctrl-Z
ExampleName#

Then to verify configuration: Kemudian untuk memverifikasi konfigurasi:

ExampleName#show interface serial 1/1

Note the no shutdown command. Perhatikan no shutdown perintah. An interface may be correctly configured and physically connected, yet be "administratively down." Sebuah antarmuka dapat dikonfigurasi dengan benar dan fisik tersambung, namun yang perlu "administratif ke bawah." In this state it will not function. Dalam keadaan ini tidak akan berfungsi. The command for causing an interface to be administratively down is shutdown . Perintah untuk menyebabkan sebuah antarmuka untuk secara administratif down shutdown .

ExampleName(config)#interface serial 1/1
ExampleName(config-if)#shutdown
ExampleName(config-if)#ctrl-Z
ExampleName#show interface serial 1/1

In the Cisco IOS, the way to reverse or delete the results of any command is to simply put no infront of it. Dalam IOS Cisco, cara untuk membalikkan atau menghapus hasil setiap perintah adalah hanya menempatkan no Infront itu. For instance, if we wanted to unassign the IP address we had assigned to interface serial 1/1: Sebagai contoh, jika kita ingin Unassign alamat IP yang kami ditugaskan untuk interface serial 1 / 1:

ExampleName(config)#interface serail 1/1
ExampleName(config-if)#no ip address 192.168.155.2 255.255.255.0
ExampleName(config-if)ctrl-Z
ExampleName#show interface serial 1/1

Configuring most interfaces for LAN connections might consist only of assigning a network layer address and making sure the interface is not administratively shutdown. Konfigurasi antarmuka paling untuk koneksi LAN mungkin hanya terdiri dari menentukan alamat network layer dan memastikan antarmuka administratif tidak shutdown. It is usually not necessary to stipulate data-link layer encapsulation. Note that it is often necessary to stipulate the appropriate data-link layer encapsulation for WAN connections, such as frame-relay and ATM. Hal ini biasanya tidak diperlukan untuk menetapkan data-link layer encapsulation. Perhatikan bahwa sering diperlukan untuk menetapkan enkapsulasi data-link layer yang sesuai untuk koneksi WAN, seperti frame-relay dan ATM. Serial interfaces default to using HDLC. Interface serial default untuk menggunakan HDLC. A discussion of data-link protocols is outside the scope of this document. Sebuah diskusi tentang protokol data-link di luar lingkup dokumen ini. You will need to look up the IOS command encapsulation for more details. Anda harus mencari perintah IOS encapsulation untuk lebih jelasnya.

3.3 Configuring Cisco Routing 3.3 Konfigurasi Cisco Routing

IP routing is automatically enabled on Cisco routers. IP routing secara otomatis diaktifkan pada router Cisco. If it has been previously disabled on your router, you turn it back on in config mode with the command ip routing. Jika sebelumnya telah dinonaktifkan pada router Anda, Anda mengubahnya kembali dalam mode config dengan perintah ip routing.

ExampleName(config)#ip routing
ExampleName(config)#ctrl-Z

There are two main ways a router knows where to send packets. Ada dua cara utama router tahu di mana untuk mengirim paket. The administrator can assign static routes , or the router can learn routes by employing a dynamic routing protocol. Administrator dapat menetapkan rute statis, atau router dapat mempelajari rute dengan menggunakan protokol routing dinamis.

These days static routes are generally used in very simple networks or in particular cases that necessitate their use. Rute hari ini statis umumnya digunakan dalam jaringan yang sangat sederhana atau dalam kasus tertentu yang memerlukan penggunaannya. To create a static route, the administrator tells the router operating system that any network traffic destined for a specified network layer address should be forwarded to a similiarly specified network layer address. Untuk membuat rute statis, administrator memberitahu sistem operasi router bahwa lalu lintas jaringan ditujukan untuk alamat lapisan jaringan yang harus dikirimkan ke alamat lapisan jaringan similiarly ditetapkan. In the Cisco IOS this is done with the ip route command. Dalam Cisco IOS ini dilakukan dengan ip route perintah.

ExampleName#config
ExampleName(config)#ip route 172.16.0.0 255.255.255.0 192.168.150.1
ExampleName(config)#ctrl-Z
ExampleName#show ip route

Two things to be said about this example. Dua hal yang harus dikatakan tentang contoh ini. First, the packet destination address must include the subnet mask for that destination network. Pertama, alamat tujuan paket harus mencakup subnet mask untuk itu jaringan tujuan. Second, the address it is to be forwarded to is the specified addres of the next router along the path to the destination. Kedua, alamat itu harus diteruskan ke adalah alamat tertentu router berikutnya sepanjang jalan ke tempat tujuan. This is the most common way of setting up a static route, and the only one this document covers. Ini adalah cara paling umum untuk menyiapkan rute statis, dan satu-satunya dokumen ini mencakup. Be aware, however, that there are other methods. Berhati-hatilah, bagaimanapun, bahwa ada metode lain.

Dynamic routing protocols, running on connected routers, enable those routers to share routing information. Protokol routing dinamis, berjalan pada router tersambung, mengaktifkan router untuk berbagi informasi routing. This enables routers to learn the routes available to them. Hal ini memungkinkan router untuk mempelajari rute yang tersedia bagi mereka. The advantage of this method is that routers are able to adjust to changes in network topologies. Keuntungan dari metode ini adalah bahwa router dapat menyesuaikan diri dengan perubahan dalam topologi jaringan. If a route is physically removed, or a neighbor router goes down, the routing protocol searches for a new route. Jika rute yang dihapus secara fisik, atau router tetangga turun, pencarian protokol routing untuk rute baru. Routing protocols can even dynamically choose between possible routes based on variables such as network congestion or network reliability. Protokol routing dinamis bahkan bisa memilih antara rute yang mungkin didasarkan pada variabel seperti kongesti jaringan atau keandalan jaringan.

There are many different routing protocols, and they all use different variables, known as "metrics," to decide upon appropriate routes. Ada banyak protokol routing yang berbeda, dan mereka semua menggunakan variabel yang berbeda, yang dikenal sebagai "metrik," untuk memutuskan rute yang tepat. Unfortunately, a router needs to be running the same routing protocols as its neighbors. Sayangnya, sebuah router harus menjalankan protokol routing yang sama seperti tetangganya. Many routers can, however, run mutliple protocols. Banyak router bisa, bagaimanapun, menjalankan protokol mutliple. Also, many protocols are designed to be able to pass routing information to other routing protocols. Juga, banyak protokol dirancang untuk dapat menyampaikan informasi routing ke protokol routing lain. This is called "redistribution." Ini disebut "redistribusi." The author has no experience with trying to make redistribution work. Penulis tidak memiliki pengalaman dengan mencoba untuk membuat pekerjaan redistribusi. There is an IOS redistribute command you can research if you think this is something you need. Ada IOS redistribute perintah Anda dapat penelitian jika Anda pikir ini adalah sesuatu yang Anda butuhkan. This document's compagnion case study describes an alternative method to deal with different routing protocols in some circumstances. compagnion studi kasus dokumen ini menjelaskan metode alternatif untuk menangani protokol routing yang berbeda dalam beberapa keadaan.

Routing protocols are a complex topic and this document contains only this superficial description of them. Protokol routing adalah topik yang kompleks dan dokumen ini hanya berisi deskripsi dangkal dari mereka. There is much to learn about them, and there are many sources of information about them available. Ada banyak belajar tentang mereka, dan ada banyak sumber informasi tentang mereka yang tersedia. An excelent source of information on this topic is Cisco's website, http://www.cisco.com . Sebuah sumber yang sangat baik informasi tentang topik ini adalah situs internet Cisco, http://www.cisco.com .

This document describes how to configure the Routing Information Protocol (RIP) on Cisco routers. Dokumen ini menjelaskan cara mengkonfigurasi Routing Information Protocol (RIP) pada router Cisco. From the command-line, we must explicitly tell the router which protocol to use, and what networks the protocol will route for. Dari baris-perintah, kita secara eksplisit harus memberitahu router protokol yang digunakan, dan apa protokol jaringan akan rute.

ExampleName#config
ExampleName(config)#router rip
ExampleName(config-router)#network aa.bb.cc.dd
ExampleName(config-router)#network ee.ff.gg.hh
ExampleName(config-router)#ctrl-Z
ExampleName#show ip protocols

Now when you issue the show ip protocols command, you should see an entry describing RIP configuration. Sekarang ketika Anda masalah show ip protocols perintah, Anda akan melihat entri menjelaskan konfigurasi RIP.

3.4 Saving your Cisco Router configuration 3.4 Menyimpan konfigurasi Router Cisco Anda

Once you have configured routing on the router, and you have configured individual interfaces, your router should be capable of routing traffic. Setelah Anda telah mengkonfigurasi routing pada router, dan Anda telah mengkonfigurasi antarmuka individu, router anda harus mampu routing lalu lintas. Give it a few moments to talk to its neighbors, then issue the commands show ip route and show ip arp . Berikan beberapa saat untuk berbicara dengan negara tetangganya, kemudian menjalankan perintah show ip route dan show ip arp . There should now be entries in these tables learned from the routing protocol. Ada sekarang harus entri dalam tabel ini belajar dari protokol routing.

If you turned the router off right now, and turned it on again, you would have to start configuration over again. Jika Anda menghidupkan router mati sekarang, dan menyalakannya lagi, Anda harus memulai konfigurasi lagi. Your running configuration is not saved to any perminent storage media. menjalankan konfigurasi Anda tidak disimpan ke media penyimpanan perminent. You can see this configuration with the command show running-config . Anda dapat melihat konfigurasi dengan perintah show running-config .

ExampleName#show running-config

You do want to save your successful running configuration. Anda ingin sukses menjalankan menyimpan konfigurasi Anda. Issue the command copy running-config startup-config . Masalah perintah copy running-config startup-config .

ExampleName#copy running-config startup-config

Your configuration is now saved to non-volatile RAM (NVRAM). konfigurasi Anda sekarang disimpan ke non-volatile RAM (NVRAM). Issue the command show startup-config . Masalah perintah show startup-config .

ExampleName#show startup-config

Now any time you need to return your router to that configuration, issue the command copy startup-config running-config . Sekarang setiap kali Anda perlu kembali ke konfigurasi router anda bahwa, lakukan perintah copy startup-config running-config .

ExampleName#copy startup-config running-config

3.5 Example Cisco Router configuration 3.5 Contoh konfigurasi Cisco Router

  1. Router>enable Router> mengaktifkan
  2. Router#config Router # config
  3. Router(config)#hostname N115-7206 Router (config) # hostname N115-7206
  4. N115-7206(config)#interface serial 1/1 N115-7206 (config) # interface serial 1 / 1
  5. N115-7206(config-if)ip address 192.168.155.2 255.255.255.0 N115-7206 (config-if) ip address 192.168.155.2 255.255.255.0
  6. N115-7206(config-if)no shutdown N115-7206 (config-if) no shutdown
  7. N115-7206(config-if)ctrl-z N115-7206 (config-if) ctrl-z
  8. N115-7206#show interface serial 1/1 N115-7206 # show interface serial 1 / 1
  9. N115-7206#config N115-7206 # config
  10. N115-7206(config)#interface ethernet 2/3 N115-7206 (config) # interface ethernet 2 / 3
  11. N115-7206(config-if)#ip address 192.168.150.90 255.255.255.0 N115-7206 (config-if) # ip address 192.168.150.90 255.255.255.0
  12. N115-7206(config-if)#no shutdown N115-7206 (config-if) # shutdown tidak
  13. N115-7206(config-if)#ctrl-z N115-7206 (config-if) # ctrl-z
  14. N115-7206#show interface ethernet 2/3 N115-7206 # show interface ethernet 2 / 3
  15. N115-7206#config N115-7206 # config
  16. N115-7206(config)#router rip N115-7206 (config) # router rip
  17. N115-7206(config-router)#network 192.168.155.0 N115-7206 (config-router) # network 192.168.155.0
  18. N115-7206(config-router)#network 192.168.150.0 N115-7206 (config-router) # network 192.168.150.0
  19. N115-7206(config-router)#ctrl-z N115-7206 (config-router) # ctrl-z
  20. N115-7206#show ip protocols N115-7206 # show ip protokol
  21. N115-7206#ping 192.168.150.1 N115-7206 # ping 192.168.150.1
  22. N115-7206#config N115-7206 # config
  23. N115-7206(config)#ip name-server 172.16.0.10 N115-7206 (config) # ip name-server 172.16.0.10
  24. N115-7206(config)#ctrl-z N115-7206 (config) # ctrl-z
  25. N115-7206#ping archie.au N115-7206 # archie.au ping
  26. N115-7206#config N115-7206 # config
  27. N115-7206(config)#enable secret password N115-7206 (config) # enable password rahasia
  28. N115-7206(config)#ctrl-z N115-7206 (config) # ctrl-z
  29. N115-7206#copy running-config startup-config N115-7206 # copy running-config startup-config
  30. N115-7206#exit N115-7206 # exit

4. 4. Troubleshooting your Cisco router Mengatasi Masalah Anda router Cisco

Inevitably, there will be problems. Tak pelak lagi, akan ada masalah. Usually, it will come in the form of a user notifying you that they can not reach a certain destination, or any destinattion at all. Biasanya, itu akan datang dalam bentuk pengguna yang memberitahukan bahwa mereka tidak dapat mencapai tujuan tertentu, atau destinattion sama sekali. You will need to be able to check how the router is attempting to route traffic, and you must be able to track down the point of failure. Anda harus dapat memeriksa bagaimana router berupaya untuk lalu lintas rute, dan Anda harus dapat melacak titik kegagalan.

You are already familiar with the show commands, both specific commands and how to learn what other show commands are available. Anda sudah akrab dengan show perintah, baik perintah spesifik dan cara belajar apa yang lain show perintah yang tersedia. Some of the most basic, most useful commands you will use for troubleshooting are: Beberapa, perintah yang paling dasar yang paling berguna akan Anda gunakan untuk pemecahan masalah adalah:

ExampleName#show interfaces
ExampleName#show ip protocols
ExampleName#show ip route
ExampleName#show ip arp

4.1 Testing connectivity 4.1 Pengujian konektivitas

It is very possible that the point of failure is not in your router configuration, or at your router at all. Hal ini sangat mungkin bahwa titik kegagalan tidak ada dalam konfigurasi router Anda, atau di router anda sama sekali. If you examine your router's configuration and operation and everything looks good, the problem might be be farther up the line. Jika Anda memeriksa konfigurasi router Anda dan operasi dan semuanya terlihat bagus, masalahnya mungkin akan lebih jauh baris. In fact, it may be the line itself, or it could be another router, which may or may not be under your administration. Bahkan, mungkin menjadi baris itu sendiri, atau bisa juga router lain, yang mungkin atau mungkin tidak berada di bawah administrasi Anda.

One extremely useful and simple diagnostic tool is the ping command. Salah satu alat diagnostik dan sederhana yang sangat berguna adalah ping perintah. Ping is an implementation of the IP Message Control Protocol (ICMP). Ping adalah sebuah implementasi dari pesan IP Control Protocol (ICMP). Ping sends an ICMP echo request to a destination IP address. Ping mengirimkan ICMP echo request ke alamat tujuan IP. If the destination machine receives the request, it responds with an ICMP echo response. Jika mesin tujuan menerima permintaan tersebut, akan meresponnya dengan ICMP echo respons. This is a very simple exchange that consists of: Ini adalah pertukaran yang sangat sederhana yang terdiri dari:

Hello, are you alive? Halo, kau hidup?

Yes, I am. Ya, saya.

ExampleName#ping xx.xx.xx.xx

If the ping test is successful, you know that the destination you are having difficulty reaching is alive and physically reachable. Jika tes ping berhasil, Anda tahu bahwa tujuan Anda mengalami kesulitan mencapai hidup dan fisik terjangkau.

If there are routers between your router and the destination you are having difficulty reaching, the problem might be at one of the other routers. Jika ada router antara router dan tujuan Anda mengalami kesulitan mencapai, masalahnya mungkin di salah satu router lainnya. Even if you ping a router and it responds, it might have other interfaces that are down, its routing table may be corrupted, or any number of other problems may exist. Bahkan jika Anda ping router dan merespon, mungkin memiliki antarmuka lain yang turun, routing tabel dapat rusak, atau sejumlah masalah lain mungkin ada.

To see where packets that leave your router for a particular destination go, and how far, use the trace command. Untuk melihat mana paket yang meninggalkan router Anda untuk tujuan tertentu pergi, dan seberapa jauh, gunakan trace perintah.

ExampleName#trace xx.xx.xx.xx

It may take a few minutes for this utility to finish, so give it some time. Mungkin diperlukan beberapa menit untuk utilitas ini selesai, sehingga memberikan waktu. It will display a list of all the hops it makes on the way to the destination. Ini akan menampilkan daftar semua hop itu membuat dalam perjalanan ke tempat tujuan.

4.2 debug commands 4.2 debug perintah

There are several debug commands provided by the IOS. Ada beberapa debug perintah yang disediakan oleh IOS. These commands are not covered here. Perintah-perintah ini tidak tercakup di sini. Refer to the Cisco website for more information. Lihat situs web Cisco untuk informasi lebih lanjut.

4.3 Hardware and physical connections 4.3 Hardware dan koneksi fisik

Do not overlook the possibility that the point of failure is a hardware or physical connection failure. Jangan mengabaikan kemungkinan bahwa titik kegagalan adalah perangkat keras atau kegagalan koneksi fisik. Any number of things can go wrong, from board failures to cut cables to power failures. Banyak hal yang bisa salah, dari kegagalan papan untuk memotong kabel untuk gangguan listrik. This document will not describew troubleshooting these problems, except for these simple things. Dokumen ini tidak akan describew troubleshooting masalah ini, kecuali untuk hal-hal sederhana.

Check to see that the router is turned on. Periksa untuk melihat bahwa router dihidupkan. Also make sure that no cables are loose or damaged. Juga pastikan bahwa tidak ada kabel yang longgar atau rusak. Finally, make sure cables are plugged into the correct ports. Akhirnya, membuat kabel pastikan yang dipasang ke port yang benar. Beyond this simple advice you will need to check other sources. Di luar ini saran sederhana Anda akan perlu memeriksa sumber lain.

4.4 Out of your control 4.4 Dari kendali Anda

If the point of failure is farther up the line, the prolem might lie with equipment not under your administration. Jika titik kegagalan adalah garis lebih jauh, prolem mungkin berbohong dengan peralatan tidak berada di bawah pemerintahan Anda. Your only option might be to contact the equipment's administrator, notify them of your problem, and ask them for help. satunya pilihan Anda mungkin untuk menghubungi administrator peralatan itu, memberitahu mereka tentang masalah Anda, dan meminta bantuan mereka. It is in your interest to be courtious and respectful. Hal ini dalam minat Anda untuk menjadi courtious dan hormat. The other administrator has their own problems, their own workload and their own priorities. Administrator lain yang memiliki masalah mereka sendiri, beban kerja mereka sendiri dan prioritas mereka sendiri. Their agenda might even directly conflict with yours, such as their intention to change dynamic routing protocols, etc. You must work with them, even if the situation is frustrating. agenda mereka mungkin bahkan langsung bertentangan dengan Anda, seperti niat mereka untuk mengubah protokol routing dinamis, dll Anda harus bekerja dengan mereka, bahkan jika situasi frustrasi. Alienating someone with the power to block important routes to your network is not a good idea. Mengasingkan seseorang dengan kekuatan untuk memblokir rute penting untuk jaringan Anda bukan ide yang baik.