您的位置:首页 > 理论基础 > 计算机网络

华为ensp大型企业网络架构速成1

2016-03-05 00:43 1071 查看
实验内容:1、华为路由器交换机基本命令(修改系统名、配置VLAN和接口的IP地址)2、如何设置telnet实现交换机的远程管理实验需求:PC1、PC2、PC3、PC4之间可以互相通信,SW1、SW2、R1三台设备之间可以互相telnet远程管理 拓扑图:实验步骤:1、 配置PC1、PC2、SW1之间的网络配置PC1、PC2的IP地址:配置SW1的IP地址、网关:
<Huawei>SY
[Huawei]SYS sw1
[sw1]int vlan 1
[sw1-Vlanif1]ip add 192.168.1.200 255.255.255.0
[sw1-Vlanif1]qu
[sw1]ip route-static 0.0.0.0 0.0.0.0 192.168.1.254
[sw1]
配置R1的e0/0/0接口ip:
<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R2
[R2]
[R2]int e 0/0/0
[R2-Ethernet0/0/0]ip add 192.168.1.254 24
此时,由于PC1与PC2和它们的网关192.168.1.254处于同一网段,所以PC1、PC2分别可以互相通信并可以正常和自己的网关通信。测试:用PC1 ping PC22、 配置PC3、SW2之间的网络配置PC3的ip地址:配置SW2的ip地址、网关:
<Huawei>sy
[Huawei]sys SW2
[SW2]int vlan 1
[SW2-Vlanif1]ip add 172.16.0.200 255.255.0.0
[SW2-Vlanif1]qu
[SW2]ip route-static 0.0.0.0 0.0.0.0 172.16.0.254
配置R1的e0/0/1接口ip地址:
<R2>sy
Enter system view, return user view with Ctrl+Z.
[R2]int e 0/0/1
[R2-Ethernet0/0/1]ip add 172.16.0.254 255.255.0.0
[R2-Ethernet0/0/1]
至此,全网已经互通,接下来进行测试。因为PC1和PC2属于同一网段192.168.1.0/24,用PC3和PC4属于同一网段172.16.0.0/16,所以PC3 ping PC1 如果能通就说明整个网络互通没问题测试结果:
 3、  分别配置SW1、SW2、R1三台设备上的telnet功能SW1:
[sw1]user-interface vty 0 4[sw1-ui-vty0-4]authentication-mode password[sw1-ui-vty0-4]set authentication password simple huawei[sw1-ui-vty0-4]user privilege level 3[sw1-ui-vty0-4]
SW2:
[SW2]user-interface vty 0 4[SW2-ui-vty0-4]authentication-mode password[SW2-ui-vty0-4]set authentication password simple huawei[SW2-ui-vty0-4]user privilege level 3[SW2-ui-vty0-4]
R1:
<R2>syEnter system view, return user view with Ctrl+Z.[R2]user-interface vty 0 4[R2-ui-vty0-4]authentication-mode password[R2-ui-vty0-4]set authentication password simple huawei[R2-ui-vty0-4]user privilege level 3[R2-ui-vty0-4]
至此,telnet配置完毕,三台设备均可以被telnet远程管理。测试:由于ensp的PC命令行里并没有telnet功能,所以我们只能使用路由器、交换机设备本身里的telnet功能进行测试SW1:
telnet 192.168.1.200
SW2:
telnet 172.16.0.200
R1:
telnet 192.168.1.254
实验结束本文出自 “小攻城狮” 博客,请务必保留此出处http://tjisezj.blog.51cto.com/3290920/1747752
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: