Chinaunix首页 | 论坛 | 博客
  • 博客访问: 6886779
  • 博文数量: 3857
  • 博客积分: 6409
  • 博客等级: 准将
  • 技术积分: 15948
  • 用 户 组: 普通用户
  • 注册时间: 2008-09-02 16:48
个人简介

迷彩 潜伏 隐蔽 伪装

文章分类

全部博文(3857)

文章存档

2017年(5)

2016年(63)

2015年(927)

2014年(677)

2013年(807)

2012年(1241)

2011年(67)

2010年(7)

2009年(36)

2008年(28)

分类:

2012-12-29 21:12:06

原文地址:华3交换机配置注释 作者:carlos444_444

1,二层交换机不需要像cisco一样去配置ip default-gateway,自己能找到gateway。

2,Trunk与access
如果端口为trunk:
interface Ethernet0/0/1
port link-type trunk
port trunk allow-pass vlan 10

如果端口为access:
interface Ethernet 0/0/2
port access vlan 10

3,Telnet配置
user-interface vty 0 4
user privilege level 15
set authentication password cipher huawei(密码)
protocol inbound all(telnet, ssh)

4,ssh配置(配置出来,就是使用root用户名+密码登录,不需要配置域)

(1)生成RSA密钥对,并启动SSH服务器
sys
[Switch] public-key local create rsa
[Switch] ssh server enable
(2)配置VLAN接口1的IP地址,客户端将通过该地址连接SSH服务器
[Switch] interface vlan-interface 1
[Switch-Vlan-Interface1]ip address 192.168.1.40 255.255.255.0
[Switch-Vlan-Interface1]quit
(3)设置Switch上远程用户登录协议为SSH
[Switch-ui-vty0-4]protocol inbound ssh
[Switch-ui-vty0-4]quit
(4)创建本地用户root,并设置用户访问的命令级别为3(最高权限)
[Switch]local-user root
[Switch-luser-root]password simple root
[Switch-luser-root]service-type ssh
[Switch-luser-root]authorization-attribute level 3
[Switch-luser-root]quit
(5)配置SSH用户root的服务类型为Stelnet,认证方式为password认证。
[Switch]ssh user root service-type stelnet authentication-type password

阅读(1150) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~