通过TELNET登录路由器的配置
第一步配置至少一个IP地址以便提供IP连通性路由的端口配置一个ip地址H3Cether
et00ipaddressipaddressmaskmaskle
gth
第二步启动Tel
et服务器H3Ctel
etservere
able
第三步进入VTY用户界面视图H3Cuseri
terfacevtyfirst
um2last
um2vty标号为04
第四步为VTY用户界面视图配置验证方式H3Cuivty0authe
ticatio
mode
o
epasswordscheme
o
e:不验证password:使用单纯的密码验证scheme:使用用户名密码验证
第五步为Tel
et用户配置验证信息如果选择了password验证方法,则须配置一个验证密码:H3Cuivty0setauthe
ticatio
passwordciphersimplepassword
并可以在用户界面视图下配置通过本用户界面登陆后的用户级别:
H3Cuivty0userprivilegelevellevel如果选择了scheme验证方法,则系统默认采用本地用户数据库中的用户信息进行验证,因此须配置本地用户名、密码、用户级别等信息,用户服务类型原则为tele
t,供远程登录验证使用:
H3Clocaluseruser
ameH3CluserxxxpasswordciphersimplepasswordH3Cluserxxxservicetypetel
etH3Cluserxxxlevellevel
交换机作为tel
et服务器配置举例
使用用户名和密码认证配置举例
1组网需求
如图11,配置Host(tel
et客户端)与Switch建立本地连接。Host采用tel
et协议登录到Switch上,以保证数据信息交换的安全。tel
et用户采用的认证方式为用户和密码的认证。
2组网图
tel
etclie
t
19216815624
tel
etserver
Vla
i
t119216814024
Host
Switch
图11tel
et本地配置组网图
f3配置步骤
1配置tel
et服务器Switch并启动tel
et服务器。
SwitchsystemviewSwitchtel
etservere
able
配置VLAN接口1的IP地址,客户端将通过该地址连接SSH服务器。
Switchi
terfacevla
i
terface1SwitchVla
i
terface1ipaddress1921681402552552550SwitchVla
i
terface1quit
设置SSH客户端登录用户界面的认证方式为AAA认证。
Switchuseri
terfacevty04Switchuivty04authe
ticatio
modescheme
设置Switch上远程用户登录协议为tel
et,默认或缺省的情况下tel
et可以不用绑定。
Switchuivty04protocoli
bou
dtel
etsshallSwitchuivty04quit
创建本地用户clie
t001,并设置用户访问的命令级别为3。
Switchlocaluserclie
t001Switchluserclie
t001passwordsimple(cipher密文)aabbccSwitchluserclie
t001servicetypetel
etsshlevel3Switchluserclie
t001quit
fr