通过console配置telnet登陆配置示例
首页 > HuaWei > 基础配置   作者:浙江思唯网络  2015年10月17日 15:52 星期六  字号:   评论:0 条
时间:2015-10-17 15:52   评论:0 条 
通过console配置telnet登陆配置示例

   

组网需求

   通过Console口首次登录设备后,对设备进行基本配置并配置通过Telnet远程登录的04号用户的级别为15级,认证方式为AAA认证。

         通过Console口进行基本配置组网图.png

                           通过Console口进行基本配置组网图

配置思路

    通过Console口登录设备。

    说明:PC端的终端仿真软件可以使用WindowsXP系统的超级终端或SecureCRT之类的终端仿真软件对设备进行基本配置。

操作步骤

    PC1通过设备Console口登录设备对设备进行基本配置,本次配置命令相关参数作用可参考前面我们已经讲了的console详细配置教程telnet详细配置教程

# 设置系统的日期、时间和时区

<HUAWEI> clock timezone BJ add 08:00:00

<HUAWEI> clock datetime 20:10:00 2012-07-26

# 设置设备名称和管理IP地址

<HUAWEI> system-view

[HUAWEI] sysname Server

[Server] interface ethernet 0/0/0

[Server-Ethernet0/0/0] ip address 10.137.217.177 24

[Server-Ethernet0/0/0] quit

# 假如设备的网关是10.137.217.1,配置设备的缺省路由。

[Server] ip route-static 0.0.0.0 0 10.137.217.1

# 设置Telnet用户的级别和认证方式

[Server] telnet server enable

[Server] user-interface vty 0 4

[Server-ui-vty0-4] user privilege level 15

[Server-ui-vty0-4] authentication-mode aaa

[Server-ui-vty0-4] quit

[Server] aaa

[Server-aaa] local-user admin1234 password irreversible-cipher Helloworld@6789

[Server-aaa] local-user admin1234 privilege level 15

[Server-aaa] local-user admin1234 service-type telnet

[Server-aaa] quit

验证配置结果

完成以上配置后,可以从PC2Telnet方式或Web网管方式远程登录设备。

# 进入Windows XP的命令行提示符,并执行相关命令,通过Telnet方式登录设备。

C:\Documents and Settings\Administrator> telnet 10.137.217.177

回车后,在登录窗口输入用户名和密码,验证通过后,出现用户视图的命令行提示符。(以下显示信息仅为示意)

Login authentication

Username:admin1234

Password:

Info: The max number of VTY users is 20, and the number

      of current VTY users on line is 1.

      The current login time is 2012-07-26 20:10:05+08:00.

<Server>

配置文件

设备的配置文件

#

sysname Server

#

clock timezone BJ add 08:00:00

#

aaa

 local-user admin1234 password irreversible-cipher %@%@HW=5%Mr;:2)/RX$FnU1HLO%-TBMp4wn%;~\#%iAut}_~O%0L%@%@

 local-user admin1234 privilege level 15

 local-user admin1234 service-type telnet

#

interface Ethernet0/0/0

 ip address 10.137.217.177 255.255.255.0

#

ip route-static 0.0.0.0 0.0.0.0 10.137.217.1

#

user-interface vty 0 4

 authentication-mode aaa

 user privilege level 15

#

return

 您阅读这篇文章共花了: 
二维码加载中...
技术交流:欢迎在本文下方留言或加入QQ群:859273036 互相学习。     
本文地址:http://www.023wg.com/jcpz/30.html
版权声明:若无注明,本文皆为“Swiers思唯网络博客”原创,转载请保留文章出处。

返回顶部    首页   
版权所有:Swiers思唯网络博客    浙江思唯网络