首页
Web开发
Windows程序
编程语言
数据库
移动开发
系统相关
微信
其他好文
会员
首页
>
其他好文
> 详细
网技命令
时间:
2018-05-01 12:42:09
阅读:
151
评论:
0
收藏:
0
[点我收藏+]
标签:
服务器
1.查看MAC地址表:show mac-address-table
2.查看接口状态:show interface f0/0
3.Cisco中查看ARP缓存表:show arp
4.Windows查看arp缓存表:arp –a
5.查看路由表:show IP route
6.查看交换机当前配置信息:show running-config
7.查看交换机已保存配置信息:show startup-config
8.查看版本信息:show version
9.在路由器上查看ARP配置结果:show ip arp
10.查看VLAN信息:show vlan brief
11.查看某个VLAN信息:show vlan id vlan-id
12.查看Trunk接口:show interface interface-id switchport
13.查看以太网通道配置:show etherchannel 1 summary
14.查看VTP配置:show VTp password
15.查看VTP状态:show VTP status
16.配置接口的双工模式及速率:
Switch(config-if)# duplex (full|half|auto)
Switch(config-if)#speed (10|100|1000|auto)
17.设备配置准备工作:
SW1(config)#line con 0
SW1(config-line)#exec-timeout 0 0
SW1 (config-line) #logging sgnchronous
SW1(config)#no ip domain-lookup
18.路由器配置ip地址
Router(config)#interface fastethernet 0/1
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#no shutdown
19.配置默认路由:R1(config)#ip route 0.0.0.0 0.0.0.0
20.配置静态路由:R1(config)#ip route 192.168.1.0 255.255.255.0 192.168.2.1(下一跳)
21.配置console口密码:
SW1(config)#line console 0
SW1(config-line)#password cisco
SW1(config-line)#login
22.配置特权模式密码
SW1(config)#enable password 123 明文密码
SW1(config)#enable secret 123 密文密码
23.配置加密明文密码 SW1(config)#service password-encvyption
24.密码恢复:
1重启路由器,同时按下Ctrl+Break 进入ROM Monior
2 rommom>confreg 0X2142
rommom>reset
3 Router# copy startup-config Running-config
4 show running 查看密码
5 Router(config)#config-reyiser 0X2102
Router(config)#exit
Router# copy running-config startup-config
25.配置VTY密码
SW1(config)#line vty 0 4
SW1(config-line)#password 123
SW1(config-line)#login
PC: C:\>telnt 192.168.1.10
Password:123
Switch>en
26.配置默认网关:
SW1(config)#ip default-gaeway 192.168.1.1
27.使用路由器配置DHCP
定义ip地址池Router(config)#ip dhcp pool pool-name
动态分配ip地址段Router(dhcp-config)#network network-number mask
设定默认网关 Router(dhcp-config)#default-router gateway-ip
为客户端配置DNS地址Router(dhcp-config)#dns-server dns-ip
设定地址的租期Router(dhcp-config)#lease days
网技命令
标签:
服务器
原文地址:http://blog.51cto.com/13586200/2109403
踩
(
0
)
赞
(
0
)
举报
评论
一句话评论(
0
)
登录后才能评论!
分享档案
更多>
2021年07月29日 (22)
2021年07月28日 (40)
2021年07月27日 (32)
2021年07月26日 (79)
2021年07月23日 (29)
2021年07月22日 (30)
2021年07月21日 (42)
2021年07月20日 (16)
2021年07月19日 (90)
2021年07月16日 (35)
周排行
更多
分布式事务
2021-07-29
OpenStack云平台命令行登录账户
2021-07-29
getLastRowNum()与getLastCellNum()/getPhysicalNumberOfRows()与getPhysicalNumberOfCells()
2021-07-29
【K8s概念】CSI 卷克隆
2021-07-29
vue3.0使用ant-design-vue进行按需加载原来这么简单
2021-07-29
stack栈
2021-07-29
抽奖动画 - 大转盘抽奖
2021-07-29
PPT写作技巧
2021-07-29
003-核心技术-IO模型-NIO-基于NIO群聊示例
2021-07-29
Bootstrap组件2
2021-07-29
友情链接
兰亭集智
国之画
百度统计
站长统计
阿里云
chrome插件
新版天听网
关于我们
-
联系我们
-
留言反馈
© 2014
mamicode.com
版权所有 联系我们:gaon5@hotmail.com
迷上了代码!