Cisco Packet Tracer利用手引き(3)

コマンドラインで機器にアクセスする方法

コマンドラインで機器にアクセスする方法は、CLIタブからアクセスする方法と、Console portを利用する方法があります。

 

1.機器をダブルクリックしてCLIタブから機器をCLIで操作可能です。

 

機器のConsole ポートと 操作用パソコンのRS-232 ポートを Console ケーブルで結びます。

パソコンをダブルクリックして Terminal から機器にCLIでアクセスできます。

 

 

また、機器をダブルクリックして、Config タブを開くと、GUIによってコマンドラインのように設定が可能になります。

これらの数値を変更したり、設定追加削除をすることで、すぐにコンフィグを反映できる。

 

 

サーバの場合、Serversタブがあります。

 

HTTP The HTTP service offers a web server that runs both HTTP and HTTPS protocols.  A textbox below the HTTP section provides  options to create and edit static HTML pages. These are displayed when this server is accessed through the web browser utility of other end devices. This service is on by default. 
DHCP The DHCP service can be used to assign IP addresses to routers. This section  has options to create and edit DHCP pools of IP addresses. It has a default pool called serverPool, which cannot be removed or edited. This service is off by default.
 
TFTP The TFTP service can be immensely useful when learning about backing up and restoring Cisco IOS images and configuration files. This section lists several IOS images from routers and switches available in Packet Tracer. If any file is copied from a network device to the TFTP server, that too will be displayed. A sample  is available at Cisco Packet Tracer 6.0.1\saves\Server\TFTP\TFTP.pkt.  This service is on by default. 
DNS The DNS service is for resolving domain names to IP addresses. The DNS service  offers the following record types: A, CNAME, SOA, and NS. Though this interface looks simple and complete, multilevel DNS setups can be configured. A sample  is available at Cisco Packet Tracer 6.0.1\saves\Server\DNS\Multilevel _DNS.pkt. A DNS cache button allows you to view cached DNS requests and has a feature  that clears this cache. This service is off by default.
SYSLOG This protocol provides a centralized logging service. Setting the Syslog server's IP to point to the configured server's IP from a network device fills the table in the Config tab with all of the logging messages generated by the device. This service is  on by default. 
AAA AAA stands for Authentication, Authorization, and Accounting. This service is used for centrally managing the credentials of all network devices. It supports the RADIUS and TACACS authentication protocols. The options in this section allow you to create users and configure the network credentials to be used. Several samples are available at Cisco Packet Tracer 6.0.1\saves\Server\AAA\. This service is off by default.
NTP Network Time Protocol ensures that the clocks of all devices are synchronized properly. This section has a calendar to set the date and time. Optionally, NTP authentication can also be configured. Once the server has a proper time set,  all of the network devices can be configured to synchronize their clocks from  this server. This service is on by default.
 
EMAIL This section incorporates SMTP service and POP3 service. A domain name can  be set and users created so that users can communicate by using the EMAIL  option under the Config tab of a PC or laptop. Only one domain is allowed per server, and either SMTP or POP3 can be  switched on or off as desired. 
FTP FTP has more features as compared to TFTP. Users can be created and permissions  can be granted to each one of them. This section also lists files that have been uploaded. There is no GUI client for accessing the FTP server. But the command  line under the Desktop tab provides the FTP command-line client. A sample is available at Cisco Packet Tracer 6.0.1\saves\Server\FTP\FTP.pkt. 
Firewall/IPv6 Firewall Because the server has two network interfaces now, the firewall feature has been introduced in PT Version 6. This section allows you to configure inbound rules  that match source/destination IP addresses and local/remote port numbers.  Based on the match, the connection can either be allowed or denied. 

 

 

PCのDesktopタブのいくらかの機能を紹介します。

 

IP Configuration 

We have already used the IP Configuration utility in Chapter 1, Getting Started  with Packet Tracer, when we created a simple topology. This option is used to  choose between a dynamic and static IP address. Entering a static IP address  fills the Subnet Mask field; according to the class of the IP address, this field  can also be edited if required. If DHCP is configured on Server-PT, choosing  DHCP here obtains an IP address dynamically. Starting with Packet Tracer  Version 6, this utility also has a section for configuring IPv6 addresses.

既にIP Configuration

Dial-up  A modem dialer, this utility can be used if the PC-HOST-NM-1AM module is plugged in. This utility is available only on PC-PT and Laptop-PT devices as  other end devices do not have the NM-1AM module. A cloud-PT device with  phone numbers is required to be connected to this PC on one end and a router on the other end with a modem interface. A username/password combination is also required in the router; after this is done, entering them in this utility creates  a connection. 
Terminal We used this utility in Chapter 2, Network Devices, for accessing the CLI through the console port. In most cases, the settings in this utility can be left to their defaults; but if you change the baud rate of the network device, it has to be changed here so that they match. This module is not available on the Server-PT device as it doesn't have an RS-232 interface. 
Command Prompt This utility simulates the command line offered in Windows Operating Systems. Only a limited set of commands are available but they are enough to test the network. The following are the commands available:
? arp delete dir ftp help ipconfig ipv6config netstat nslookup ping  snmpget snmpgetbulk snmpset ssh telnet tracert Each command's supported parameters can be found by entering a command without any options as shown in the following screenshot:
 
Web Browser Web Browser is a utility with minimal options, which can be used if you have  a Server-PT device configured with HTTP. This can also be used if there is a  Linksys-WRT300N device to access its web interface. This utility has only back, forward, go, and stop buttons and does not store any cache or history. 
PC Wireless This utility is designed for the Linksys-WMP300N module. It displays signal strength information and also has options for choosing a wireless network and modifying profiles to connect to wireless routers that are not broadcasting their  SSID. These settings can also be saved, imported, or exported. Wireless networking will be explained in detail in Chapter 9, Setting Up a Wireless Network. This utility is available only on PC-PT and Laptop-PT devices, as other end devices do not have the Linksys module.
 
VPN The VPN utility is used to create a VPN connection for secure communication.  A router has to be configured as a VPN server for this to work. A sample topology  is available at Cisco Packet Tracer 6.0.1\saves\PC\VPN\Vpn_Easy.pkt. 
Traffic Generator  This utility is similar in functionality to the Add Simple PDU and Add Complex PDU tools in the common tools bar. It is used to create customized packets and send them at periodic intervals. This is immensely useful for simulating a real environment. 
MIB Browser The MIB (Management Information Base) Browser utility sends out SNMP requests. This allows you to retrieve router and switch data or make changes to the devices.  A get request is sent to fetch a value, whereas a set request is sent to modify a value. A router has to be configured with an RO (Read Only) community string and RW (Read Write) community string. This utility is not available on the Server-PT device. A sample topology is available at Cisco Packet Tracer 6.0.1\saves\PC\MIB_ Browser\SNMP_Router.pkt. 
Cisco IP Communicator  Cisco IP Communicator is a Cisco software that can be used to turn a computer into  an IP phone. This utility is available in Packet Tracer to make and answer calls using  a PC or laptop. Clicking on it opens a phone GUI that can be used to dial numbers;  the default TFTP server can also be changed by navigating to the Preferences… option, as shown in the next screenshot. This utility is not available on the Server-PT device.
 
E Mail

This is an e-mail client utility that can be used to send and receive e-mails. The first time it is opened, it has to be configured with the Incoming mail server (POP3), Outgoing mail server (SMTP), and credentials. A Server-PT device has to exist in the topology with its EMAIL section configured. This utility is not available on the Server-PT device. A sample topology is available at Cisco Packet Tracer 6.0.1\ saves\Server\Mail\mail_2Server_2PC.pkt. 

メールの送受信ができるメールクライアントソフトです。最初に開いたら、POP3, SMTP などの設定を行います。EMAIL sectionで設定されたServer-PTがトポロジー上に必要で、それはServer-PT上では設定できません。

 

Cisco Packet Tracer 6.0.1\ saves\Server\Mail\mail_2Server_2PC.pktを参照のこと。

PPPoE Dialer

PPPoE Dialer はDSL-Modem-PT 機器を利用してコネクション確立します。モデムでPCにイーサネット越しに接続したり、電話線によってネットワークに接続したりできます。ルータにPPPoEサーバの設定をユーザ名パスワード付で設定する必要があります。

 

\saves\Router\PPPOE\client.server.modem.pppoe.pkt.

のファイル参照のこと。

Text Editor

いわゆるWindows のNotepadでテキストを書いて保存して、コマンドプロンプトなどで利用できます。 また作成したテキストファイルでFTPのテストなどにも利用できます。

 

magiken has written 29 articles

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>