网技命令

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了网技命令相关的知识,希望对你有一定的参考价值。

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

以上是关于网技命令的主要内容,如果未能解决你的问题,请参考以下文章

关于Struts-2高危漏洞预警信息

Linux常用命令

Linux常用命令

Linux常用命令(网络命令和关机重启命令)

linux命令的排列替换与别名

Docker学习重点~docker命令:帮助命令镜像命令容器命令常用其他命令