》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. java 学习书籍

    <Effective java> <深入理解java虚拟机> <Java并发编程实践> <Java Performance> <java解惑> ...

  2. python爬取网页图片(二)

    从一个网页爬取图片已经解决,现在想要把这个用户发的图片全部爬取. 首先:先找到这个用户的发帖页面: http://www.acfun.cn/u/1094623.aspx#page=1 然后从这个页面中 ...

  3. _bzoj1009 [HNOI2008]GT考试【矩阵加速dp】

    传送门:http://www.lydsy.com/JudgeOnline/problem.php?id=1009 比较不错的一道题,令f(i, j)表示考号匹配到i位,后j位为不吉利串的前j位,那么对 ...

  4. K - KazaQ’s Socks

    Bryce1010模板 #include <bits/stdc++.h> using namespace std; #define LL long long int main() { LL ...

  5. 贪心/二分查找 BestCoder Round #43 1002 pog loves szh II

    题目传送门 /* 贪心/二分查找:首先对ai%=p,然后sort,这样的话就有序能使用二分查找.贪心的思想是每次找到一个aj使得和为p-1(如果有的话) 当然有可能两个数和超过p,那么an的值最优,每 ...

  6. yii2 设置多个入口文件

    在web下希望加个core.php的后台入口,但因为权限问题,总是会跳转到index.php

  7. ORA-14074: partition bound must collate higher than that of the last partition

    There is a error happen in crotab: CREATE parttion report ORA-14074:ORA-14074: partition bound must ...

  8. 转 SQL*PLUS中的替换变量(& &&)

    今天oracle support提供一个脚本,大致如下: PROMPT ROUTING_SEQUENCE_ID = &ROUT_SEQ_ID PROMPT OPERATION_SEQUENCE ...

  9. Android基础夯实--重温动画(四)之属性动画 ValueAnimator详解

    宝剑锋从磨砺出,梅花香自苦寒来:千淘万漉虽辛苦,吹尽狂沙始到金: 长风破浪会有时,直挂云帆济沧海 一.摘要 Animator类作为属性动画的基类,它是一个抽象类,它提供了实现动画的基本架构,但是我们不 ...

  10. git push失败the remote end hung up unexpectedly

    Git Push是老是失败,提示: fatal: the remote end hung up unexpectedly git did not exit cleanly (exit code 1) ...