一个交换机,一个计算机,双击交换机,进入终端配置:


<Quidway>system
password:
[Quidway]sysname S3026    ;交换机命名
[S3026]super password 111  ;设置特权密码
[S3026]user-interface vty 0 4 /*进入虚拟终端接口配置模式*/
[S3026-ui-vty0-4]authentication-mode password 
/*这里我使用的是aaa的认证模式,可选用none
也就是不认证,和passowrd 密码认证这三种,推荐选择aaa 和 password */
/*set auth pass cipher xxxxx 如果你选择的是password认证方式,则要设置一个密码*/
/*user privilege level 3 设置telnet登录级别为3级,
*/ /*这两步只要选用password时需要使用*/
local-aaa-server
/*进行本地3a服务器视图*/
[S3026-ui-vty0-4]set authentication-mode password simple 222
[S3026-ui-vty0-4]user privilege level 3
[S3026-ui-vty0-4]quit
[S3026]quit
<S3026>sys
password:111
[S3026]display currect-config /*显示当前配置*/
[S3026]dis curr /*显示当前配置*/
[S3026]vlan 2
[S3026-vlan2]port ethernet0/2
[S3026-vlan2]port e0/4 to et0/6 在当前VLAN增加/删除以太网接口
[S3026-vlan2]quit
[S3026]dis vlan
[S3026]int e0/3
[S3026-Ethernet1]port access vlan 2  将当前接口加入到指定VLAN
[S3026-Ethernet1]quit
[S3026]dis vlan 查看VLAN设置
[S3026]dis curr
[S3026]interface vlan 1 
[S3026-Vlan-interface1]ip address 10.65.1.8 255.255.0.0
[S3026-Vlan-interface1]quit
[S3026]ip route-static 0.0.0.0 0.0.0.0 10.65.1.2
[S3026]ip default-gateway 10.65.1.2
[S3026]dis curr
[S3026]save
双击小电脑:
login:root
password:linux
[root@PCA root]#ifconfig eth0 10.65.1.1 netmask 255.255.0.0
[root@PCA root]#ifconfig
[root@PCA root]#route add default gw 10.65.1.2
[root@PCA root]#route
[root@PCA root]#ping 10.65.1.8
[root@PCA root]#telnet 10.65.1.8

原文出自:http://tech.ddvip.com/2007-01/116947738018698_2.html