本文主要是介绍cisco基础命令,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
- CDP
- 拓扑图
- 实验步骤
- 一,给路由器16配置ip
- Enter configuration commands, one per line. End with CNTL/Z.
- Router(config-if)#ip add 1.1.1.1 255.255.255.0
- 二,给路由器17配置ip
- Enter configuration commands, one per line. End with CNTL/Z.
- Router(config-if)#ip add 1.1.1.2 255.255.255.0
- 三,ping路由器16的ip1.1.1.1验证是否连接成功
- Type escape sequence to abort.
- Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
- Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/1 ms
- 四,输入命令查看邻居的基本信息
- Router#show cdp neighbors detail
- IP address : 1.1.1.1_->邻居的IP地址
- Platform: cisco C2800, Capabilities: Router
- Interface: FastEthernet0/0, Port ID (outgoing port): FastEthernet0/0
- Cisco IOS Software, 2800 Software (C2800NM-ADVIPSERVICESK9-M), Version 12.4(15)T1, RELEASE SOFTWARE (fc2)
- Technical Support: http://www.cisco.com/techsupport
- Copyright (c) 1986-2007 by Cisco Systems, Inc.
- Compiled Wed 18-Jul-07 06:21 by pt_rel_team
- MAC地址
- 实验步骤
- 三,输入命令查看终端的MAC地址表
- 超级终端
- 远程Telnet
- 实验步骤
- Enter configuration commands, one per line. End with CNTL/Z.
- Switch(config)#int vlan 1
- Switch(config-if)#ip add 1.1.1.2 255.0.0.0
- 三,验证是ip否配置成功
- Switch#show ip interface brief
- 四,配置明文密码和线路console口密码,开始远程登陆
- Switch(config)#enable password 111
- Switch(config)#line vty 0 4
- Switch(config-line)#password 111
- Switch(config-line)#login
这篇关于cisco基础命令的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!