【文章內(nèi)容簡介】
function of the router can be displayed using a show mand. Some of the more popular show mands are: show runningconfig show interfaces show arp show ip route show users show version ELab PT 40 思科網(wǎng)絡(luò)技術(shù)學(xué)院理事會 . Basic Configuration The startup configuration file is stored on the device in NVRAM. Routershow startupconfig The running configuration is the set of mands that is currently active in the device RAM. Routershow runningconfig To copy the changes made to the running configuration back to the stored startup configuration file, use the mand: Routercopy run start 41 思科網(wǎng)絡(luò)技術(shù)學(xué)院理事會 . Basic Configuration The initial configuration of an IOS device involves configuring a device name and then the passwords that are used to control access to the various functions of the device. The difference between the enable password and the enable secret is that the enable password mand is not encrypted by default. If the enable password is set, followed by the enable secret, the enable secret will override the enable password. 42 思科網(wǎng)絡(luò)技術(shù)學(xué)院理事會 . Basic Configuration Use a PC attached to the console port on the device is frequently used for initial device configuration. When the device is accessed through the work, it is considered a virtual terminal connection. To verify that the passwords are set correctly, use the show runningconfig mand. The mand service password encryption will ensure that passwords (console, vty and enable password) are encrypted. PT 43 思科網(wǎng)絡(luò)技術(shù)學(xué)院理事會 . Configuring an Interface There are many different types of interfaces available. Serial and Ether interfaces are the most mon. Local work connections use Ether interfaces. WAN connections require the use of a serial connection through a telemunications service provider (TSP). In most environments, Data Communications Equipment (DCE) devices such as a modem, or CSU/DSU, provides the clock rate. By default, Cisco routers are DTE devices, or Data Terminal equipment. 44 思科網(wǎng)絡(luò)技術(shù)學(xué)院理事會 . Configuring an Interface The steps to configure an interface include: 1. Specify the type of interface and the interface port number 2. Specify a description of the interface 3. Configure the interface IP address and sub mask 4. Set the clock rate, if configuring a serial interface as a DCE 5. Enable the interface The clock is enabled and speed is specified with the clock rate mand. The available clock rates in bits per second are 1200, 2400, 9600, 19200, 38400, 56000, 64000, 72022, 125000, 148000, 500000, 800000, 1000000, 1300000, 2022000, or 4000000. ELab Lab PT 45 思科網(wǎng)絡(luò)技術(shù)學(xué)院理事會 . Configuring a Default Route The default route is used by the router only if the router does not know where to send a packet. For static routes with outbound Ether works, it is best to configure the static routes with both the nexthop address and the exitinterface. PT ip route fastether 0/1 46 思科網(wǎng)絡(luò)技術(shù)學(xué)院理事會 . Configuring DHCP services It is possible to configure a router with Cisco IOS CLI to function as a Dynamic Host Configuration Protocol (DHCP) server. There are eight basic steps to configuring DHCP via CLI 1. Create DHCP Address Pool 2. Specify the Sub 3. Exclude IP Addresses 4. Specify the Domain Name 5. DNS Server IP Address 6. Set the Default Router 7. Set the Lease Duration 8. Verify the Configuration PT 47 思科網(wǎng)絡(luò)技術(shù)學(xué)院理事會 . configuring Static NAT using Cisco IOS CLI Static NAT is a mechanism of work address translation (NAT) in which an internal host with a fixed private IP address is mapped with a fixed public IP address all the time. PT LAB 48 思科網(wǎng)絡(luò)技術(shù)學(xué)院理事會 . Backing up a Cisco Router Configuration to a TFTP Server 將 NVRAM中的備份的配置文件保存到 TFTP服務(wù)器上,也可以用 copy run tftp 將當(dāng)前正在使用的配置文件保存到 TFTP服務(wù)器上 將保存在 TFTP服務(wù)器上的配置文件,恢復(fù)到內(nèi)存中,并立即生效。但不能覆蓋端口的 shutdown狀態(tài)。 The TFTP enabled server must be accessible to the router via a work connection. Once the running configuration is saved to the startup configuration file, save the startup configuration to the TFTP server. PT 思科網(wǎng)絡(luò)技術(shù)學(xué)院理事會 . 49 Initial Cisco 2