Router basic
+mode :
+setup : no (yes : ctrl + c )
+user : Router> enable
+privilege : Router#disable - > Router>
+global : Router#conf ter - > Router(config)#exit -->Router#
+ show ip interface brief
Router#show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES unset administratively down down
FastEthernet0/1 unassigned YES unset administratively down down
Router(config)#interface f0/0
Router(config-if)#exit
Router(config)#exit
Router#
Router(config)#interface f0/0
Router(config-if)#no shutdown
*Mar 1 00:12:28.587: %LINEPROTO-5-UPDOWN: Line protocol on Interface
FastEthernet0/0, changed state to up
ctrl + c = end --> privilege
Router#show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES unset up down
FastEthernet0/1 unassigned YES unset administratively down down
Router#
Router(config)#int f0/0
Router(config-if)#shutdown
Router#show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES unset administratively down down
FastEthernet0/1 unassigned YES unset administratively down down
Router(config-if)#do show ip inter brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES unset up up
FastEthernet0/1 unassigned YES unset administratively down down
Router(config-if)#
Example :
Router f0/0 -.254----12.1.1.0/24------.1 PC
Router(config-if)#ip address 12.1.1.254 255.255.255.0
Router#show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 12.1.1.254 YES manual up up
FastEthernet0/1 unassigned YES unset administratively down down
Router#
up up -- > tot
up down ! day
admin down down ! chua enable : no sh
Router#ping 12.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 12.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/19/32 ms
Router#
+ hostname :
Router(config)#hostname R1
R1(config)#
+ show version
ROM : POST , Bootstrap , Rommon
RAM : running-config
NVRAM : startup-config
FLASH : ios.bin
1. POST
2. load Bootstrap --> find IOS
3. Find and Load IOS --> RAM
4. Find and Load Startup-config ---> RAM
R1#show version
Cisco IOS Software, 3700 Software (C3725-ADVENTERPRISEK9-M), Version 12.4(7), RELEASE
SOFTWARE (fc6)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2006 by Cisco Systems, Inc.
Compiled Tue 28-Feb-06 21:54 by alnguyen
ROM: ROMMON Emulation Microcode
ROM: 3700 Software (C3725-ADVENTERPRISEK9-M), Version 12.4(7), RELEASE SOFTWARE (fc6)
R1 uptime is 26 minutes
System returned to ROM by unknown reload cause - suspect boot_data[BOOT_COUNT] 0x0,
BOOT_COUNT 0, BOOTDATA 19
System image file is "tftp://255.255.255.255/unknown"
This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.
A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
If you require further assistance please contact us by sending email to
export@cisco.com.
Cisco 3725 (R7000) processor (revision 0.1) with 124928K/6144K bytes of memory.
Processor board ID FTX0945W0MY
R7000 CPU at 240MHz, Implementation 39, Rev 2.1, 256KB L2, 512KB L3 Cache
2 FastEthernet interfaces
DRAM configuration is 64 bits wide with parity enabled.
55K bytes of NVRAM.
16384K bytes of ATA System CompactFlash (Read/Write)
Configuration register is 0x2102
R1(config)#line console 0
R1(config-line)#logging synchronous
R1(config-line)#
R1(config)#line console 0
R1(config-line)#exec-timeout 0 10 ( 0 = phut , 10 = 10s)
R1(config-line)#exec-timeout 0 0 -- > disable exec-timeout
+ show run --> config on RAM
+ show start --> config on NVRAM
+ save config
copy run start = wr
+ erase config
erase startup-config
+ console password
R1(config)#line console 0
R1(config-line)#password con0
R1(config-line)#login
+ privilege password :
+ enable password : R(config)#enable password vnpro-- > clear text
+ secret password : R(config)#enable secret cisco -- > hash (MD5)
R(config)#no enable password
R(config)#no enable secret
+ service password encryption --> ma hoa tat ca pass clear text --> MD7
R1(config)#service password-encryption
R1(config)#no service password-encryption --> ko ma hoa pass clear text sau nay them
vao
+ telnet
R1(config)#line vty 0 4
R1(config-line)#password abc
R1(config-line)#login
R1(config)#enable secret cisco
+ telnet khong password
R1(config)#line vty 0 4
R1(config-line)#privilege level 15
R1(config-line)#no login
+ show users & clear line 99
R1#show users
Line User Host(s) Idle Location
* 0 con 0 idle 00:00:00
99 vty 1 idle 00:04:32 12.1.1.1
Interface User Mode Idle Peer Address
R1#clear line 99
[confirm]
[OK]
R1#show users
Line User Host(s) Idle Location
* 0 con 0 idle 00:00:00
Interface User Mode Idle Peer Address
R1#
R2-.2--12.0.0.0/24--.1 R1 f0/0 -.254----12.1.1.0/24------.1 PC
telnet client telnet server
+ exit ( ngat ket noi )
R2#telnet 12.0.0.1
Trying 12.0.0.1 !! Open
R1#exit
[Connection to 12.0.0.1 closed by foreign host]
R2#
+ < ctrl + shift + 6 > + x ( stop ) & show session
R2#telnet 12.0.0.1
Trying 12.0.0.1 !! Open
R1# < ctrl + shift + 6 > + x
R2#show sessions
Conn Host Address Byte Idle Conn Name
* 1 12.0.0.1 12.0.0.1 0 0 12.0.0.1
+ ngat ket noi dang stop
R2#disconnect 1
Closing connection to 12.0.0.1 [confirm]
R2#show session
% No connections open
+ ket noi lai ket noi dang stop
R2#telnet 12.0.0.1
Trying 12.0.0.1 !! Open
R1# < ctrl + shift + 6 > + x
R2#show sessions
Conn Host Address Byte Idle Conn Name
* 1 12.0.0.1 12.0.0.1 0 0 12.0.0.1
R2#resume 1
[Resuming connection 1 to 12.0.0.1 !! ]
R1#
+ CDP (cisco Discovery Protocol ) : layer 2
R2#show cdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater
Device ID Local Intrfce Holdtme Capability Platform Port ID
R1 Fas 0/0 150 R S I 3725 Fas 0/1
R2#show cdp neighbors detail
-------------------------
Device ID: R1
Entry address(es):
IP address: 12.0.0.1
Platform: Cisco 3725, Capabilities: Router Switch IGMP
Interface: FastEthernet0/0, Port ID (outgoing port): FastEthernet0/1
Holdtime : 128 sec
Version :
Cisco IOS Software, 3700 Software (C3725-ADVENTERPRISEK9-M), Version 12.4(7), RELEASE
SOFTWARE (fc6)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2006 by Cisco Systems, Inc.
Compiled Tue 28-Feb-06 21:54 by alnguyen
advertisement version: 2
VTP Management Domain: ''
Duplex: half
R2(config)#no cdp run --> disable all interface
R2(config)#cdp run --> enable all interface
R2(config)#interface f0/0
R2(config-if)#cdp enable --> enable inter f0/0
R2(config-if)#no cdp enable --> disable inter f0/0