欢迎来到天天文库
浏览记录
ID:58427351
大小:21.50 KB
页数:2页
时间:2020-09-03
《实验一+计算机和交换机基本设置.doc》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、实验一计算机和交换机基本设置注意:华为模拟器自带教程图片有误,要以下图所示连接,或者将自带教程中[S3026]inte0/3改成[S3026]inte0/1,使电脑使用的端口未分配给vlan2网络。添加一个交换机,一个计算机,按如图所示连接。双击交换机,进入终端配置:systempassword:[Quidway]sysnameS3026#交换机命名S3026[S3026]superpassword111#设置特权密码111[S3026]user-interfacevty04#进入虚拟终端[S3026-ui-vty0-4]authen
2、tication-modepassword#设置口令模式[S3026-ui-vty0-4]setauthentication-modepasswordsimple222#密码设置222[S3026-ui-vty0-4]userprivilegelevel3#用户级别[S3026-ui-vty0-4]quit#退到上一层[S3026]quit#退到上一层sys#进入S3026password:111#输入密码[S3026]displaycurrect-config#查看当前配置信息[S3026]discurr#查看全局配置信息[S3026]
3、vlan2#创建ID为2的vlan[S3026-vlan2]portethernet0/2#将eth2口添加到vlan2中[S3026-vlan2]porte0/4toet0/6#将eth4口到6口添加到vlan2中[S3026-vlan2]quit#退出vlan配置模式[S3026]disvlan#查看vlan配置信息[S3026]inte0/3#进入eth3的配置模式[S3026-Ethernet3]portaccessvlan2#将eth3添加到vlan2[S3026-Ethernet3]quit#退出端口配置模式[S3026]disvlan#查
4、看vlan配置信息[S3026]discurr#查看全局配置信息[S3026]interfacevlan1#进入接口图示[S3026-Vlan-interface1]ipaddress10.65.1.8255.255.0.0#设置静态IP[S3026-Vlan-interface1]quit#退出端口配置模式[S3026]iproute-static0.0.0.00.0.0.010.65.1.2#设置静态路由IP[S3026]ipdefault-gateway10.65.1.2#设置网关[S3026]discurr#查看全局配置信息[S3026]sav
5、e#保存双击小电脑:login:root#登陆root账号password:linux#密码linux[root@PCAroot]#ifconfigeth010.65.1.1netmask255.255.0.0#设置IP及子网掩码[root@PCAroot]#ifconfig#查看网络配置信息[root@PCAroot]#routeadddefaultgw10.65.1.2#添加默认路由[root@PCAroot]#route#查看路由[root@PCAroot]#ping10.65.1.8#测试是否与交换机联通[root@PCAroot]#telne
6、t10.65.1.8#测试SWAvtypassword:222#输入登陆密码
此文档下载收益归作者所有