Cisco preliminary Learning

Source: Internet
Author: User
Tags configuration settings

Cisco initial learning 1 switch command Daquan 1. Global configuration mode Enable Configure terminal 2. Privileged mode Enable 3. interface Configuration Mode interface VLAN1 4. console line configuration mode line console 0 5. View vro ip Address Configuration Show run Show ip int brief vswitch initial configuration 2.1 configure vswitch host name 1, enter global configuration mode 2, hostname yourname 2.2 configure privileged mode password and encryption password 1, enter global configuration mode 2: configure the privileged mode password enable password cisco 3, configure the encrypted password enable secret cisco123 2.3 configure the console password 1, enter the global configuration mode 2, switch to the console line configuration mode line console 0 3. In this mode, enter the Password cis when logging on to cisco. Co Login Exit 2.4 configure vty password 1, enter global configuration mode 2, switch to vty line 0 to 15 configuration mode line vty 0 15 3. In line configuration mode, set the Password to cisco and enter the Password when logging on to cisco Login Exit. Explanation: it is a vro or vswitch that remotely logs on to the virtual port, use telnet for remote connection 2.5 configure VLAN1 interface Ip address 1, enter global configuration mode 2, switch to vlan1 interface Configuration Mode interface VLAN1 3, specify Ip address 192.168.1.5 and subnet mask 255.255.0 Ip address 192.168.1.5 255.255.255.0 No shutdown Exit configure the default gateway 1. Enter global Mode 2. Configure the default gateway as 192.168.1.1 Ip default-gateway 192.168.1.1 2.6. Question 1: What is the difference between vlan and fastethernet? 2. When will fastethernet be used for Cisco router configuration? When to use ethernet? When to use the console port? When to use the serial port? Answer: 1. fastethernet can be divided into two-layer switches in a vlan and cannot be configured with IP addresses. Only the vlan in a pipe can be set with IP addresses 2, a, and fastethernet, which are 100 ports, this port is full-duplex, And the ethernet port is 10 M half-duplex. IP addresses can be configured on the interface, which is a routing port. If the cisco Route configuration is similar to the 4ESW module, it is a layer-2 port. You can use the layer-3 VLAN interface, that is, the SVI interface, layer-2 traffic is routed between VLANs. B. The console port is used to enter the routing CLI interface for various command configurations, like opening a dos window, the c and serial ports are generally used for layer-2 links, the default link bandwidth is 1.544 Mb/s. The rate ratio is appeal. Two small three routers are initially configured. Use the cisco ios cli command 3.1 to configure the vro host name. 1. Enter global configuration mode. 2. Enter hostname yourname 3.2 to configure the privileged mode. password and encrypted password 1. Enter global configuration mode 2. Configure privileged mode password enable password cisco 3. Configure the encrypted password enable secret cisco123 3.3 configure Console password 1. Enter global configuration mode 2. Switch for the console line configuration mode line console 0 3. In this mode, set this port when logging on to cisco Set Password cisco Login Exit 3.4 to vty Password 1, enter global configuration mode 2, switch to configuration mode line vty line 0 to 15, and switch to line configuration mode line vty 0 4, set the Password to cisco123 and enter the Password when logging on to cisco Login Exit End 3. In privileged mode, save the running configuration to startup configuration Copy run start 4 vro configuration as DHCP server DHCP as abbr. the Dynamic host configuration protocol (Dynamic host configuration protocol) DHCP address pool is configured to use the 192.168.1.0/24 network, but 49 addresses starting with it are excluded, you also need to configure the default gateway and DNS server as 192.168.1.1 and 192.168.1.10 4.1 respectively to configure DHCP Service 1. Enter global configuration mode 2. Create a DHCP address pool Ip address d For pool1. Hcp pool pool1 3. Define the Network address range of the address pool Network 192.168.1.0 255.255.255.0 define the DNS server as 192.168.1.10 Dns-server 192.168.1.10 4. The Default gateway is 192.168.1.1 Default-router 192.168.1.1 5. Exit dhcp. -Exit 6 in config mode. The scope of the DHCP address pool definition is excluded: 192.168.1.1 to 192.168.1.49 Ip dhcp excluded-address 192.168.1.1 192.168.1.49 4.2 verify DHCP configuration open the command window Ipconfig/release on the customer workstation, release the current IP address Ipconfig/renew and request a new IP address on the local network. 5. Back up the cisco router configuration to the TFTP server. 5.1. Save the running configuration to start. Configuration 1. Enter privileged Mode 2. Copy running configuration to startup configuration Copy running-config startup-config [Enter] 5.2 back up startup configuration to TFTP server Copy startup-config tftp Remote host: [192.168.1.10] retain the default name 5.3 check configuration to 192.168.1.10 check whether tftp has this Server 6 configure the serial and Ethernet interfaces to configure the LAN Ethernet interface and WAN serial interface 6.1 configure the LAN Ethernet interface 1, enter privileged Mode 2. Enter global configuration mode 3. Configure the Fast Ethernet Interface FastEthernet 0/0 4. Add Description Connected to mermerswitch 5 to this Interface, and specify the Ip address and subnet mask Ip address for this Interface 192.168.1.1 255.255.255. 0 6. Make sure that No shutdown is enabled for this interface. 7. Exit interface configuration mode. End 6.2. Verify that your LAN interface is configured with Show ip route 6.3. Configure WAN serial interface 1. Enter global configuration mode. 2. OK. serial Interface to be configured 3. Description of this interface 4. Specify the interface IP address and subnet mask 5. Make sure this interface is enabled 6. Exit interface configuration mode 6.4 verify WAN Interface Configuration 1. Show run 2 ping verify the connectivity with the WAN interface on the ISP router Ping yourip 3 ping verify the connectivity with the customer switch ping yourip 6.5 save your configuration 1 enter the privileged Execution Mode Copy run start 7. Configure the vswitch and connect it to LAN 8. Configure static NAT8.1 for static NAT on the cisco router 1. Enter global configuration mode 2. Configure the FastEthernet 0/0 Interface as an internal NAT Interface fa Stethernet 0/0 Ip nat inside Exit 3. Configure the serial 0/0/0 Interface as an external NAT Interface serial 0/0/0 Ip nat outside Exit 4. Configure static NAT ing, ing internal address 192.168.1.10 to external address 209.165.200.227 Ip nat inside source static 192.168.1.10 209.165.200.227 Exit 8.2 verify static NAT configuration Ping 209.165.200.227 question: 1. What is the purpose of static nat (network address translation? Three types: static NAT, dynamic address NAT, and network address-port translation (NAPT) Dynamic Address Configuration: a. Global mode B. Ip nat pool address pool name start Ip address terminate Ip subnet mask C. Define A standard access-list rule to allow dynamic address translation for internal addresses Access- list label: permit source address wildcard D. address translation is performed between the internal local address specified by access-list and the specified internal legal address. Ip address nat inside source list access list label pool's internal legal address pool name E, specify the internal port connected to the internal network in the port setting status: ip nat inside F, external port connected to the external network Ip nat outside 9 configure the serial connection between the customer and the ISP Glossary: HDLC Advanced Data Link Control PPP data link layer Control Protocol 9.1 configuration 1, enter global Mode 2, enter Interface Configuration Mode Interface serial 0/0/0 3, set the Ip address of this Interface to 209.165.200.228 subnet mask to 255.255.255.255.255.255.255.255.255.255.255.255.165.200.228 4. Set the serial interface to PPP Encapsulation ppp 5 and exit 9.2 to verify the configuration of Show running-config 10. Use CDP to draw the network diagram 10.1. Objective: To study the CDP show command. View CDP configuration settings. View the information of CDP adjacent devices. Research CDP configuration commands. Disable and enable CDP globally on the vro. Disable and enable CDP on the interface. This exercise starts with 100%. This is because this exercise is intended to demonstrate how to use CDP to draw a network diagram. This exercise has no score. 10.2 background/preparation Cisco Discovery Protocol (CDP) is an OSI Layer 2nd Protocol that works between Cisco devices (such as routers and switches. The CDP message contains the following information related to the device: device ID, platform, connected interface, IOS version, and layer 3rd address. Because CDP works on Layer 3, only directly connected devices can exchange information. 10.3 view CDP configuration settings and issue the command show cdp in the CLI of router R1. The output displays the timer and version information. Run show cdp? To view the list of other CDP show commands. Run the show cdp interface command. The output displays the timer information for all interfaces on the vro. You can specify a specific interface to only display the timer information of this interface. 10.4 view CDP information about adjacent devices vrouters use CDP messages from neighboring devices to create a table about adjacent devices. Run the show cdp neighbors command in the CLI of router R1. Packet Tracer works in real time, just like a real network device. If you do not see two entries in the Command output, wait a few minutes until you see them. Check the output. A line of information is displayed for each device. Information about the directly connected device switches S1 and vror2 R2 is displayed, but information about the devices R3 that are not directly connected is not displayed. Run the show cdp entry R2 command. Check the output. More information about vror2 R2 is displayed, including the IP addresses that can be used to access the vror2. Run the show cdp entry * command *. Check the output. Information about all directly connected devices is displayed. Run the show cdp neighbors detail command. Check the output. The same information as the show cdp entry * command output is displayed. 10.5 disable and enable CDP globally on the vror2 by issuing the command show cdp neighbors in the CLI of vror2 R2. The output displays information about the three directly connected devices. Enter the global configuration mode. Run the no cdp run Command to disable CDP on the vro. Exit the configuration mode and run the show cdp neighbors command. The output shows that CDP is not enabled. Run the show cdp neighbors command from the CLI of router R1. If the output displays an entry related to router R2, please wait for a period of time (the duration of the displayed vror2 R2.) and then re-issue the command. No entry related to vror2 R2. because no CDP message is received before the retention period expires. Enter the global configuration mode from the CLI of vror2 R2. Run the command cdp run to enable CDP on the vro. 10.6 disable and enable CDP on an interface you may not want to send CDP information to a Cisco device in an untrusted network. You can disable CDP on a specific interface. Enter the global configuration mode from the CLI of router R2, enter the interface configuration mode of interface Serial0/0/1, and then issue the command no cdp enable to disable CDP on this interface. Exit the configuration mode. Run the show cdp neighbors command on the routers R2 and R3. Wait for a while, the duration is the timeout entry in the CDP table of vror2 R2. The timeout entry in the CDP table of vror3 R2. Enter the global configuration mode from the CLI of vror2 R2, enter the interface configuration mode of the Serial0/0/1 interface, and then issue the command cdp enable to enable CDP on this interface. 11. Configure the default route. Select your next ip router CustomerRouter (config) # ip route 0.0.0.0 0.0.0.0 209.165.200.226 CustomerRouter (config) # end CustomerRouter # show ip route 192.168.1.1 route 255.255.0 10.10.10.1 when the source address of a data packet is 192.168.1.1, locate the next route 10.10.10.1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.