admin管理员组

文章数量:1638752

2024年5月8日发(作者:)

1. 计算机命令:

PCA login: root ;使用root用户

password: linux ;口令是linux

# shutdown -h now ;同init 0 关机

# logout

# login

# ifconfig ;显示IP地址

# ifconfig eth0 netmask ;设置IP地址

# ifconfig eht0 netmask down ; 删除IP地址

# route add 0.0.0.0 gw

# route del 0.0.0.0 gw

# route add default gw

# route del default gw

# route

# ping

# telnet

2. 交换机支持的命令:

交换机基本状态:

switch:

rommon>

hostname>

hostname#

hostname(config)#

hostname(config-if)#

交换机口令设置:

switch>enable

switch#config terminal

switch(config)#hostname

switch(config)#enable secret xxx

switch(config)#enable password xxa

switch(config)#line console 0

switch(config-line)#line vty 0 4

switch(config-line)#login

switch(config-line)#password xx

switch#exit

交换机VLAN设置:

switch#vlan database

switch(vlan)#vlan 2

switch(vlan)#no vlan 2

switch(config)#int f0/1

;设置网关

;删除网关

;显示网关

;交换机的ROM状态

;路由器的ROM状

;用户模式

;特权模式

;全局配置模式

;接口状态

;进入特权模式

;进入全局配置模式

;设置交换机的主机名

;设置特权加密口令

;设置特权非密口令

;进入虚拟终端

;允许登录

;设置登录口令xx

;返回命令

;进入VLAN设置

;建VLAN 2

;删vlan 2

;进入端口1

;进入控制台口

switch(config-if)#switchport access vlan 2 ;当前端口加入vlan 2

switch(config-if)#switchport mode trunk ;设置为干线

switch(config-if)#switchport trunk allowed vlan 1,2 ;设置允许的vlan

switch(config-if)#switchport trunk encap dot1q ;设置vlan 中继

switch(config)#vtp domain ;设置发vtp域名

switch(config)#vtp password ;设置发vtp密码

switch(config)#vtp mode server ;设置发vtp模式

switch(config)#vtp mode client ;设置发vtp模式

交换机设置IP地址:

switch(config)#interface vlan 1

switch(config-if)#ip address

switch(config)#ip default-gateway

switch#dir flash:

交换机显示命令:

switch#write

switch#show vtp

switch#show run

switch#show vlan

switch#show interface

switch#show int f0/0

3. 路由器支持的命令:

路由器显示命令:

router#show run

router#show interface

router#show ip route

router#show cdp nei

router#reload

路由器口令设置:

router>enable

router#config terminal

router(config)#hostname

router(config)#enable secret xxx

router(config)#enable password xxb

router(config)#line console 0

router(config-line)#line vty 0 4

router(config-line)#login

router(config-line)#password xx

router(config)#(Ctrl+z)

router#exit

;进入vlan 1

;设置IP地址

;设置默认网关

;查看闪存

;保存配置信息

;查看vtp配置信息

;查看当前配置信息

;查看vlan配置信息

;查看端口信息

;查看指定端口信息

;显示配置信息

;显示接口信息

;显示路由信息

;显示邻居信息

;重新起动

;进入特权模式

;进入全局配置模式

;设置交换机的主机名

;设置特权加密口令

;设置特权非密口令

;进入虚拟终端

;要求口令验证

;设置登录口令xx

; 返回特权模式

;返回命令

;进入控制台口

本文标签: 设置信息口令