》Huawei-R&S-网络工程师实验笔记20190615-IP基础(AR201上配置IP)

》》实验开始,先上拓扑图参考:

》》》一般正常配置IP操作如下,问题在于无法继续:

[AR1]int e0//
[AR1-Ethernet0//]ip address 192.168.1.1
^
Error: Unrecognized command found at '^' position.
[AR1-Ethernet0//]

》》》》这是怎么回事呢?原来eNSP上对AR201这款路由器只设定了Ethernet接口,而且本来eNSP就对Ethernet接口定义了二层接口功能,故而无法配置IP。解决办法也是有的,两种方案可以成功:
1、在eNSP中直接换个型号,除了AR201其他型号都有GE口,都可以配置IP地址。
2、坚持AR201的话,可采用vlan方案,该方案又有两种模式,具体如下:

[AR1]vlan
[AR1-vlan10]int vlan //务必进入vlanif配置
[AR1-Vlanif10]ip address 1.1.1.1 255.255.255.0
[AR1-Vlanif10]quit
[AR1]
[AR1]interface Ethernet0//                  //先试试Access方案

[Huawei-Ethernet0//]port ?
default Specify current port's PVID VLAN characteristics
link-type Switch port link type
priority Specify current port's priority [AR1-Ethernet0//]port link-type access //配置为Access模式
[AR1-Ethernet0//]port default vlan //Access下可以通过vlan10 [AR1]dis ip int bri
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is
The number of interface that is DOWN in Physical is
The number of interface that is UP in Protocol is
The number of interface that is DOWN in Protocol is Interface IP Address/Mask Physical Protocol
Ethernet0// unassigned down down
NULL0 unassigned up up(s)
Vlanif10 192.168.1.1/ up up //IP配置成功了
[AR1]
[AR1]int e0//0     //其实,不管是Access还是Trunk都是为了E0/0/0接口可以连通其他设备,纯粹配置IP是没有意义的。现在我们开始Trunk方案。

[AR1-Ethernet0//]port link-type trunk    //前面不是设置成Access了嘛,想直接改是不行的
Error: Please renew the default configurations. [AR1-Ethernet0//]undo port default vlan //得先取消vlan配置(如果在trunk前提下改Access,怎么改?命令是什么?)
Jun ::-: AR1 %%01IFNET//IF_STATE(l)[]:Interface Vlanif10 has
turned into DOWN state. [AR1-Ethernet0//]port link-type trunk //现在设置trunk就没问题了
[AR1-Ethernet0//]port ?
link-type Switch port link type
priority Specify current port's priority
trunk Trunk port
[AR1-Ethernet0//]port trunk ? //这两种都试一下,先试试PVID
allow-pass Allowed vlan
pvid Specify current port's PVID VLAN characteristics [AR1-Ethernet0//]port trunk pvid vlan
[AR1-Ethernet0//]dis ip int bri
[AR1-Ethernet0//]q
[AR1]q
<AR1>ping 192.168.1.2
PING 192.168.1.2: data bytes, press CTRL_C to break
Request time out
--- 192.168.1.2 ping statistics ---
packet(s) transmitted
packet(s) received
100.00% packet loss //PVID不通,再试试allow-pass [AR1]int e0//
[AR1-Ethernet0//]port trunk allow-pass vlan
Jun ::-: AR1 %%01IFNET//IF_STATE(l)[]:Interface Vlanif10 has
turned into UP state.
[AR1-Ethernet0//]q
[AR1]dis ip int bri
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is
The number of interface that is DOWN in Physical is
The number of interface that is UP in Protocol is
The number of interface that is DOWN in Protocol is Interface IP Address/Mask Physical Protocol
Ethernet0// unassigned down down
NULL0 unassigned up up(s)
Vlanif10 192.168.1.1/ up up
[AR1]q <AR1>ping 192.168.1.2
PING 192.168.1.2: data bytes, press CTRL_C to break
Reply from 192.168.1.2: bytes= Sequence= ttl= time= ms
Reply from 192.168.1.2: bytes= Sequence= ttl= time= ms
Reply from 192.168.1.2: bytes= Sequence= ttl= time= ms
Reply from 192.168.1.2: bytes= Sequence= ttl= time= ms
Reply from 192.168.1.2: bytes= Sequence= ttl= time= ms --- 192.168.1.2 ping statistics ---
packet(s) transmitted
packet(s) received
0.00% packet loss
round-trip min/avg/max = // ms //这时候就能ping通了
<AR1>

未完待续。。。

Huawei-R&S-网络工程师实验笔记20190615-IP基础(AR201上配置IP)的更多相关文章

  1. Huawei-R&S-网络工程师实验笔记20190607-STP生成树协议(基本配置、桥优先级、根桥选举、根端口、路径开销、边缘端口)

    >Huawei-R&S-网络工程师实验笔记20190607-STP生成树协议(基本配置.桥优先级.根桥选举.根端口.路径开销.边缘端口) >>实验开始,先上拓扑图参考: &l ...

  2. Huawei-R&S-网络工程师实验笔记20190608-VLAN划分基础(基于端口、MAC地址、子网地址、协议)

    >Huawei-R&S-网络工程师实验笔记20190608-VLAN划分基础(基于端口.MAC地址.子网地址.协议) >>实验开始,先上拓扑图参考: 一.基于端口划分VLAN ...

  3. Huawei-R&S-网络工程师实验笔记20190525-设备登录、VRP基本配置、文件系统

    >Huawei-R&S-网络工程师实验笔记20190525-设备登录.VRP基本配置.文件系统(环回接口.telnet远程.AAA登录.命令行.时钟.banner.文件目录) >& ...

  4. Huawei-R&S-网络工程师实验笔记20190524-VRP的系统、接口视图下基本操作

    >Huawei-R&S-网络工程师实验笔记20190524-VRP的系统.接口视图下基本操作(重命名.配置IP.VLAN接口.双工模式.console口) >>实验开始,先上 ...

  5. Huawei-R&S-网络工程师实验笔记20190530-FTP上传下载、STelnet登录、SFTP登录

    >Huawei-R&S-网络工程师实验笔记20190530-FTP上传下载.STelnet登录.SFTP登录 >>实验开始,参考<Huawei-R&S-网络工程 ...

  6. Huawei-R&S-网络工程师实验笔记20190527-华为设备密码重置、设置web管理

    >Huawei-R&S-网络工程师实验笔记20190527-华为设备密码重置.设置web管理 >>实验开始(使用SecureCRT 等工具软件): 一.华为设备密码重置,通过 ...

  7. Huawei-R&S-网络工程师实验笔记20190609-VLAN划分综合(Hybrid端口)

    >Huawei-R&S-网络工程师实验笔记20190609-VLAN划分综合(Hybrid端口) >>实验开始,先上拓扑图参考: >>>实验目标:分别实现主 ...

  8. Huawei-R&S-网络工程师实验笔记20190609-VLAN划分综合(Access和Trunk端口)

    >Huawei-R&S-网络工程师实验笔记20190609-VLAN划分综合(Access和Trunk端口) >>实验开始,先上拓扑图参考: >>>实验目标 ...

  9. 20155328 网络攻防 实验五:MSF基础应用

    20155328 网络攻防 实验五:MSF基础应用 实践内容及过程记录 一.Windows服务渗透攻击----ms08_067 攻击机:kali 靶机:WindowsXP(英文版) 第一步,分别查看攻 ...

随机推荐

  1. Lightoj 1174 - Commandos (bfs)

    题目链接: Lightoj  1174 - Commandos 题目描述: 有一军队秉承做就要做到最好的口号,准备去破坏敌人的军营.他们计划要在敌人的每一个军营里都放置一个炸弹.军营里有充足的士兵,每 ...

  2. 暴力/DP Codeforces Beta Round #22 (Div. 2 Only) B. Bargaining Table

    题目传送门 /* 题意:求最大矩形(全0)的面积 暴力/dp:每对一个0查看它左下的最大矩形面积,更新ans 注意:是字符串,没用空格,好事多磨,WA了多少次才发现:( 详细解释:http://www ...

  3. 水题 Gym 100553K Knockout Racing

    题目传送门 /* 题意:有若干个点在一个区间内来回移动,1m/s. 水题:n^2的复杂度能解决,注意时间可能大于一个周期,要取模 */ #include <cstdio> #include ...

  4. 题解报告:hdu 1060 Leftmost Digit

    题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1060 问题描述 给定一个正整数N,你应该输出N ^ N的最左边的数字. 输入 输入包含多个测试用例. ...

  5. 198 House Robber 打家劫舍

    你是一个专业的强盗,计划抢劫沿街的房屋.每间房都藏有一定的现金,阻止你抢劫他们的唯一的制约因素就是相邻的房屋有保安系统连接,如果两间相邻的房屋在同一晚上被闯入,它会自动联系警方.给定一个代表每个房屋的 ...

  6. 转】RMySQL数据库编程指南

    原博文出自于: http://blog.fens.me/category/%E6%95%B0%E6%8D%AE%E5%BA%93/page/2/ 感谢! Posted: Sep 24, 2013 Ta ...

  7. VS打包后生成快捷方式:目标指向错误、Icon图标分辨率有误问题解决方案

    1.目标指向错误: 在安装***.msi文件后,对快捷方式-->右键-->属性: 发现目标并非指exe文件. 于是我新建了一个快捷方式,将目标-->指向exe文件,位置Ctrl+v. ...

  8. SpringMVC与请求控制器

    MVC设计模式 视图(View)      -对应组件:JSP或者HTML文件 控制器(controller) -对应组件:Servlet 模型(Model)   -对应组件:JavaBean MVC ...

  9. R Programming week1-Reading Data

    Reading Data There are a few principal functions reading data into R. read.table, read.csv, for read ...

  10. 【译】x86程序员手册40-10.5初始化的例子

    10.5 Initialization Example初始化的例子 译注:本来想把这个例子全部注释完,但由于对intel汇编实不熟悉,有太多的伪指令,本人也是免强看懂,所以就不再做翻译了. $TITL ...