》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. 安装 Spring 框架库

    下载地址:http://repo.spring.io/release/org/springframework/spring

  2. not and or

    not and or (逻辑表达式) 首先要做一些准备知识: 1,优先级:逻辑型 < 测试型 < 关系型 < 算数型 2,逻辑型优先级:or < and < not 3, ...

  3. Python字符串对象常用方法

    安利一句话:字符串是不可变的对象,所以任何操作对原字符串是不改变的! 1.字符串的切割 def split(self, sep=None, maxsplit=-1): # real signature ...

  4. [BZOJ1381]Knights

    Description 在一个N*N的棋盘上,有些小方格不能放骑士,棋盘上有若干骑士,任一个骑士不在其它骑士的攻击范围内,请输出最多可以放多少个骑士. 骑士攻击的点如中国象棋中的马,可以攻击8个点. ...

  5. ACM牛人博客

    ACM牛人博客 kuangbin kuangbin(新) wuyiqi wuyiqi(新) ACM!荣耀之路! 九野的博客 传说中的ACM大牛!!! read more

  6. tac命令的实现 分类: linux 2014-06-02 00:08 344人阅读 评论(0) 收藏

    此程序实现简化的linux中的tac命令.即对文件按行倒序输出. 首先将文件指针置于文件尾,从后向前移动指针, 将两个换行符'\n'间的内容作为一行输出. #include<stdio.h> ...

  7. Saas物联网共享平台实战

    什么是SaaS系统: 越来越多的软件,开始采用云服务. 云服务只是一个统称,可以分成三大类. IaaS:基础设施服务,Infrastructure-as-a-service PaaS:平台服务,Pla ...

  8. 【LeetCode】297. Serialize and Deserialize Binary Tree

    二叉树的序列化与反序列化. 如果使用string作为媒介来存储,传递序列化结果的话,会给反序列话带来很多不方便. 这里学会了使用 sstream 中的 输入流'istringstream' 和 输出流 ...

  9. android开发学习——This support library should not use a different version

    http://blog.csdn.net/mvpstevenlin/article/details/55209966 完美解决系列

  10. IE8下ajax兼容问题

    function crossDomainAjax(url, successCallback) { // IE8 & 9 only Cross domain JSON GET request i ...