Huawei-R&S-网络工程师实验笔记20190615-IP基础(AR201上配置IP)
》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)的更多相关文章
- Huawei-R&S-网络工程师实验笔记20190607-STP生成树协议(基本配置、桥优先级、根桥选举、根端口、路径开销、边缘端口)
>Huawei-R&S-网络工程师实验笔记20190607-STP生成树协议(基本配置.桥优先级.根桥选举.根端口.路径开销.边缘端口) >>实验开始,先上拓扑图参考: &l ...
- Huawei-R&S-网络工程师实验笔记20190608-VLAN划分基础(基于端口、MAC地址、子网地址、协议)
>Huawei-R&S-网络工程师实验笔记20190608-VLAN划分基础(基于端口.MAC地址.子网地址.协议) >>实验开始,先上拓扑图参考: 一.基于端口划分VLAN ...
- Huawei-R&S-网络工程师实验笔记20190525-设备登录、VRP基本配置、文件系统
>Huawei-R&S-网络工程师实验笔记20190525-设备登录.VRP基本配置.文件系统(环回接口.telnet远程.AAA登录.命令行.时钟.banner.文件目录) >& ...
- Huawei-R&S-网络工程师实验笔记20190524-VRP的系统、接口视图下基本操作
>Huawei-R&S-网络工程师实验笔记20190524-VRP的系统.接口视图下基本操作(重命名.配置IP.VLAN接口.双工模式.console口) >>实验开始,先上 ...
- Huawei-R&S-网络工程师实验笔记20190530-FTP上传下载、STelnet登录、SFTP登录
>Huawei-R&S-网络工程师实验笔记20190530-FTP上传下载.STelnet登录.SFTP登录 >>实验开始,参考<Huawei-R&S-网络工程 ...
- Huawei-R&S-网络工程师实验笔记20190527-华为设备密码重置、设置web管理
>Huawei-R&S-网络工程师实验笔记20190527-华为设备密码重置.设置web管理 >>实验开始(使用SecureCRT 等工具软件): 一.华为设备密码重置,通过 ...
- Huawei-R&S-网络工程师实验笔记20190609-VLAN划分综合(Hybrid端口)
>Huawei-R&S-网络工程师实验笔记20190609-VLAN划分综合(Hybrid端口) >>实验开始,先上拓扑图参考: >>>实验目标:分别实现主 ...
- Huawei-R&S-网络工程师实验笔记20190609-VLAN划分综合(Access和Trunk端口)
>Huawei-R&S-网络工程师实验笔记20190609-VLAN划分综合(Access和Trunk端口) >>实验开始,先上拓扑图参考: >>>实验目标 ...
- 20155328 网络攻防 实验五:MSF基础应用
20155328 网络攻防 实验五:MSF基础应用 实践内容及过程记录 一.Windows服务渗透攻击----ms08_067 攻击机:kali 靶机:WindowsXP(英文版) 第一步,分别查看攻 ...
随机推荐
- python 关闭redis的连接
在python语言中使用redis时,没有找到对应的关闭的方法 try: self.redisconn = StrictRedisCluster(startup_nodes=self.redisNod ...
- [Usaco2012 Open]Balanced Cow Subsets
Description Farmer John's owns N cows (2 <= N <= 20), where cow i produces M(i) units of milk ...
- [POI2009]SLO
Description 对于一个1-N的排列(ai),每次你可以交换两个数ax与ay(x<>y),代价为W(ax)+W(ay) 若干次交换的代价为每次交换的代价之和.请问将(ai)变为(b ...
- 异或+构造 HDOJ 5416 CRB and Tree
题目传送门 题意:给一棵树,问f (u, v) 意思是u到v的所有路径的边权值的异或和,问f (u, v) == s 的u,v有几对 异或+构造:首先计算f (1, u) 的值,那么f (u, v) ...
- C#---数据库访问通用类、Access数据库操作类、mysql类 .[转]
原文链接 //C# 数据库访问通用类 (ADO.NET)using System;using System.Collections.Generic;using System.Text;using Sy ...
- 转 mysql oracle 指定rand随机数范围
若要在i ≤ R ≤ j 这个范围得到一个随机整数R ,需要用到表达式 FLOOR(i + RAND() * (j – i + 1)).例如, 若要在7 到 12 的范围(包括7和12)内得到一个随机 ...
- 对于JS == 运算的一些理解
声明:本文是摘自一篇文章,放在这只为做为一个笔记能更好学习. 大家知道,==是JavaScript中比较复杂的一个运算符.它的运算规则奇怪,容易让人犯错,从而成为JavaScript中“最糟糕的特性” ...
- 正则表达式 - IP地址、Mac地址、端口、经纬度、车牌号码校验
IP地址验证: /^(\d|[1-9]\d|1\d{2}|2[0-5][0-5])\.(\d|[1-9]\d|1\d{2}|2[0-5][0-5])\.(\d|[1-9]\d|1\d{2}|2[0 ...
- jsdk之微信分享流程
.步骤一:绑定域名 先登录微信公众平台进入“公众号设置”的“功能设置”里填写“JS接口安全域名”. 备注:登录后可在“开发者中心”查看对应的接口权限. .步骤二:引入JS文件 在需要调用JS接口的页面 ...
- 【译】x86程序员手册41-10.6 TLB(快表)测试
译注:本章基本未做翻译 10.6 TLB Testing TLB测试 The 80386 provides a mechanism for testing the Translation Lookas ...