You are on page 1of 3

·����ʵ�飺

����
����router> enable���������������������û�ģʽ������Ȩģʽ
����
����router# disable or exit������������Ȩģʽ�˳��û�ģʽ
����
����router# show sessions�����������鿴�����ϵ�TELNET�Ự

router# disconnect���������������‫����ر‬ е�TELNET�Ự


����
����router# show users���������������鿴�����ϵ��û�
����
����router# erase startup-config����ɾ��NVRAM�е�����
����
����router# reload����������������������·����
����
router# config terminal�����������û�ģʽ������Ȩģʽ
����
����router(config)# hostname rl���������û���Ϊrl
����
����router(config)# #banner welcome# ���ÿ�����
����
����router# show controllers serial0 �鿴����0���������Ϣ����Ҫ�Dz鿴DTE/DCE
����
����router# show ip interface�������鿴�˿‫�ڵ‬IP������Ϣ
����
����router# show hosts���������������鿴����
����
����end or ctrl+z�������������������Ӹ�������ģʽ�˵���Ȩģʽ
����
����rl(config)# no ip domain-lookup �‫ر‬ն���������
����
����rl(config)# ip domain-lookup����� ��
� � � ������
����
����rl(config)# ip name-server 202.106.0.20��� ���� �������֮ �������
�� � DNS����
��
����
����rl(config)# interface serial 0������serial 0�Ľӿ�����ģʽ
����
����rl(config-if)# no shutdown������·�����Ĭ�����ж˿‫ڹر‬գ�ʹ�ô�����ʹ���Ǵ�
����
����rl(config-if)# encapsulation ppp ��‫װ‬ppp
����
����rl(config-if)# clockrate 64000�������DCEʹ��Ҫ����ʱ������
�����������������������������������������DTE�Ͳ�������
����
����rl(config-if)# bandwidth 64���� ���ö˿‫��ڴ‬Ϊ64K
����
����rl(config-if)# ctrl+c ����ctrl+z ��‫���˳��ݼ‬Ȩģʽ
��������������������������������
����rl# show interface serial 0���� �鿴s0��Ϣ�����serial��line
protocol����ʾup��˵��t·}�˶����óɹ�
����‫�ע‬⣺������s e r ial down, line down�ܶд ��
Է�� д shutdown ��
Ķ ˿� û �д ��no
ߵ���û�в�ã�������serial up, line down ������DCE��û������clock rate, Ҳ�����Ƿ�
‫��װ‬ʽ����
����
����rl# show cdp neighbors�����������鿴CDP�‫���ھ‬Ϣ
����
����rl(config-if)# ip add 10.0.0.1 255.0.0.0��������Ӧ�Ľӿ ‫�������ڣ‬Ӧ��IP��ַ
����
����rl# ping 10.0.0.2�������������� ʹ��ping����鿴�‫ھ‬ӵ�ll ��
����
����rl# show ip route�������������� �鿴·�ɱ����Կ�����C��ͷ��·����Ϣ,����ֱl��·����Ϣ��
������������������������������������
���Կ���R��ͷ��·����Ϣ���Ǵ�ripѧ4��·����Ϣ���ɿ�����I
������������������������������������
��ͷ��·����Ϣȡ������R��ͷ��·����Ϣ��������Ϊigrp�Ĺ��������100��С��rip��120
����
����rl(config-if)# router rip������ ��RIP·��Э��
����
����rl(config-router)# network 10.0.0.0
������������������������������������������Ρ�‫��ע‬network�����ǽӵ�����ţ�����IP��ַ
����rl# show ip protocol�������������鿴���õ�·��Э��
����
����rl(config)# router igrp 300���� һ��Ҫ ‫����ע‬IGRP���������ϵͳ��
���������������������������������������Ե�ʱ����Ŀ�������AS
NUMBER�����þ��ǡ�������������������������������
����rl(config-router)# network 10.0.0.0
����
����rl(config)# line vty0 4��������
���������߳� �����ģʽ�������ģʽ��ɶ�telnet���ܽ�������
����
����rl(config-line)# login
����
����rl(config-line)# password �������� cisco������telnet���룬 Ĭ�ϵ������豸
telnet�Ĺ����ǹ ‫ر‬յģ���������֮����� Զ���
����
����rl(config)# enable password cisco ���ý���enableģʽ�����룬 ��ִ�Сд
����
����rl(config)# enable secret ciscocisco�����ý���enableģʽ�����룬�Ǽ��ܵ����룬 show
run�ǿ������
����
����rl(config)# line console 0
����
����rl(config-line)# login
����
����rl(config-line)# password cisco ���ý����û�ģʽ������
����
����rl(config-line)# logging synchronous��������
��
��
����
����rl(config-line)# exec-timeout 0 0����ֹ��Ϊһ��ʱ��û����������
����
����rl# copy running-config startup-config���������ã����Ե�ʱ��
‫����ע‬Ŀ��Ҫ�������Ŀ��Ҫ���㱣� ���� þ�һ������������һ��
����
����r1# copy tftp startup-config
����
����r1# copy running-config tftp
����
����r1# copy tftp flash
����
����������ʵ�飺
����
����switch(config)# ip address 192.168.0.177 255.255.255.0 ��·�����
‫�ڽڽ‬
ӿ��ϵ �����IP��������������
�� ������ ģʽ���� ȫ
����
����switch(config)# ip default-gateway 192.158.0.1����������һ��ȱʡ��
‫أأ� ��ע‬
‫� أ‬⣬����д ����
����
����switch(config)# vlan2 name cisco������һ��vlan2������������CISCO
����
����switch# show interfaces�����������鿴�˿�‫״״‬
����
����switch(config)# interface e0/10������˿�e0/10
����
����switch(config-if)# vlan-membership static 2 ���˿‫ڷ‬Ž�vlan2����
����
����switch(config)# int f0/26������ ����������
��˿�f0/26
����
‫ڰ‬
����switch(config-if)# trunk on���� ����trunk,‫�ע‬⣺ֻ���‫����� ˿ ϶������ڰ‬t runk
����
����switch(config-if)# notrunk-vlan 51 52��������Ϲ ‫�ر‬VLAN51��52�Ĵ���

You might also like