华为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.200SW2:
telnet 172.16.0.200R1:
telnet 192.168.1.254实验结束本文出自 “小攻城狮” 博客,请务必保留此出处http://tjisezj.blog.51cto.com/3290920/1747752
相关文章推荐
- iOS 的 TCP/IP 协议族剖析 && Socket
- 5种TCP连接中出现RST的情况。连接复位Reset a connection.
- Udp打洞和TCP打洞之我见
- POJ 2125 Destring the Graph(网络流)
- CENTOS 网络配置详解
- Delphi的字符(Char),字符串(String),字符串指针(PChar),字符数组arrayofchar(来自http://delphi.cjcsoft.net/论坛)
- HDU 4971 A simple brute force(网络流)
- file_get_contents()获取https出现这个错误Unable to find the wrapper “https” – did
- BP神经网络训练
- Hust oj 2038 联系网络(MST)
- Linux 最小安装 + 桥接模式 + 网络配置
- App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Te
- 偏颇之论——志不同道不合,节约对方的时间,就是最大的尊重。
- BZOJ3876/AHOI2014支线剧情
- HttpClient4.5教程-基础 1.1
- Linux技术——tcpdump命令详解
- BZOJ1283 序列
- Apache配置文件httpd.conf细说
- Qt tcp通信简单实现
- 计算机网络