您的位置:首页 > 其它

公司培训笔记(1):沟通的技巧

2012-11-13 23:06 323 查看
.在交换机上配置如下:
<switch>system-view
[switch]vlan 10
[switch-vlan10]quit
[switch]interface vlan 10
[switch-vlanif 10]ip address 192.168.1.2 24 //保证和路由器的IP在同一网段
[switch-vlanif 10]quit

[switch]interface ethernet 0/0/1
[switch-interface ethernet 0/0/1]port hybrid untagged vlan 10 //untag方式加入vlan10
[switch-interface ethernet 0/0/1]quit
//做完上述配置后,在路由器和交换机上192.168.1.1和192.168.1.2应该可以互相ping通。

3.然后就是在交换机上配置telnet登录命令:
[switch]aaa
[switch-aaa]local-user admin password simple admin //2个admin分别是账号密码,可以自设
[switch-aaa]local-user admin privilege level 3 //设置账号级别,3为最高级
[switch-aaa]local-user service-type telnet //设置本地账号服务类型是telnet
[switch-aaa]quit

[switch]user-interface vty 0 4
[switch-user-vty0-4]authentication-mode aaa //设置登录用户验证方式为aaa,在刚才设置账号那块设置了账号密码
[switch-user-vty0-4]protocol bind all // 绑定用户协议为全部,包括telnet/ftp/ssh。就是这些方式登录交换机的时候都使用这个用户界面。
[switch-user-vty0-4]quit

本文出自 “刘率” 博客,请务必保留此出处http://liushuai.blog.51cto.com/3038219/1272934
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: