这里是普通文章模块栏目内容页
路由器交换机基本配置命令

1.路由器交换机通用配置

enable:从用户模式到特权模式

config terminal:从特权模式到全局配置模式

interface +接口类型+接口号:全局配置模式到接口模式

2、特权模式

show running config:显示所有的配置

show version:显示版本号和寄存器值

show vlan :查看vlan所有的信息

show interfaces(查看端口状态)

show run查看所有配置信息

show ip interface brief(查看接口的谪要信息)

show hosts(查看主机表)

show history(查看历史记录)

write 将配置文件保存

3.接口模式下

shutdown:关闭接口

no shutdown:打开接口

ip add +ip地址 配置IP地址

switchport mode access 交换机端口转换为access模式

switchport access vlan 10将这个端口划分给vlan 10

no switchport access vlan 10 将这个端口从vlan 10中删除

4.全局配置模式:

vlan 10  创建vlan 10

name xxx  在vlan模式下给vlan 10命名

no vlan10 删除vlan 10

do show vlan do命令是不在特权模式下的时候使用,把执行命令的环境转到特权模式。不用直接从全局配置视图退出到特权模式

end或ctrl+z(直接返回到特权模式)

exit(返回上层模式)

TELNET远程登录配置

配置CISCO路由器上登录账号、口令、账号级别,如下所示,账号名abc、口令为abc123、账号级别为15(最高级别)
R1#configure terminal

R1(config)#username abc privilege 15 secret abc123

R1(config)#end

配置锐捷路由器远程登录认证机制,如下所示,配置路由器本地认证
R1#configure terminal

R1(config)#line vty 0 4

R1(config-line)#login local    //启用本地密码检查

R1(config-line)#end

或者可以在不配置登录账号名时,可以直接配置口令

R1#configure terminal

R1(config)#line vty 0 4

R1(config-line)#password 123 

R1(config-line)#login    

R1(config-line)#end

完成以上配置后,即可实现TELNET登录