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

匿名 (未验证) 提交于 2019-12-02 23:44:01

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

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

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

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

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

[AR1]vlan 10 [AR1-vlan10]int vlan 10       //务必进入vlanif配置 [AR1-Vlanif10]ip address 1.1.1.1 255.255.255.0        [AR1-Vlanif10]quit  [AR1]
[AR1]interface Ethernet0/0/0                  //先试试Access方案  [Huawei-Ethernet0/0/0]port ?   default    Specify current port's PVID VLAN characteristics   link-type  Switch port link type   priority   Specify current port's priority  [AR1-Ethernet0/0/0]port link-type access        //配置为Access模式 [AR1-Ethernet0/0/0]port default vlan 10       //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 2 The number of interface that is DOWN in Physical is 1 The number of interface that is UP in Protocol is 2 The number of interface that is DOWN in Protocol is 1  Interface                         IP Address/Mask      Physical   Protocol   Ethernet0/0/8                     unassigned           down       down       NULL0                             unassigned           up         up(s)      Vlanif10                          192.168.1.1/24       up         up      //IP配置成功了    [AR1]
[AR1]int e0/0/0     //其实,不管是Access还是Trunk都是为了E0/0/0接口可以连通其他设备,纯粹配置IP是没有意义的。现在我们开始Trunk方案。  [AR1-Ethernet0/0/0]port link-type trunk    //前面不是设置成Access了嘛,想直接改是不行的 Error: Please renew the default configurations.  [AR1-Ethernet0/0/0]undo port default vlan       //得先取消vlan配置(如果在trunk前提下改Access,怎么改?命令是什么?) Jun 16 2019 00:16:21-08:00 AR1 %%01IFNET/4/IF_STATE(l)[0]:Interface Vlanif10 has  turned into DOWN state.   [AR1-Ethernet0/0/0]port link-type trunk     //现在设置trunk就没问题了 [AR1-Ethernet0/0/0]port ?   link-type  Switch port link type   priority   Specify current port's priority   trunk      Trunk port [AR1-Ethernet0/0/0]port trunk ?       //这两种都试一下,先试试PVID   allow-pass  Allowed vlan   pvid        Specify current port's PVID VLAN characteristics  [AR1-Ethernet0/0/0]port trunk pvid vlan 10 [AR1-Ethernet0/0/0]dis ip int bri     [AR1-Ethernet0/0/0]q [AR1]q <AR1>ping 192.168.1.2   PING 192.168.1.2: 56  data bytes, press CTRL_C to break     Request time out   --- 192.168.1.2 ping statistics ---     5 packet(s) transmitted     0 packet(s) received     100.00% packet loss       //PVID不通,再试试allow-pass  [AR1]int e0/0/0 [AR1-Ethernet0/0/0]port trunk allow-pass vlan 10 Jun 16 2019 00:22:39-08:00 AR1 %%01IFNET/4/IF_STATE(l)[2]:Interface Vlanif10 has  turned into UP state.  [AR1-Ethernet0/0/0]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 2 The number of interface that is DOWN in Physical is 1 The number of interface that is UP in Protocol is 2 The number of interface that is DOWN in Protocol is 1  Interface                         IP Address/Mask      Physical   Protocol   Ethernet0/0/8                     unassigned           down       down       NULL0                             unassigned           up         up(s)      Vlanif10                          192.168.1.1/24       up         up         [AR1]q  <AR1>ping 192.168.1.2   PING 192.168.1.2: 56  data bytes, press CTRL_C to break     Reply from 192.168.1.2: bytes=56 Sequence=1 ttl=255 time=320 ms     Reply from 192.168.1.2: bytes=56 Sequence=2 ttl=255 time=30 ms     Reply from 192.168.1.2: bytes=56 Sequence=3 ttl=255 time=10 ms     Reply from 192.168.1.2: bytes=56 Sequence=4 ttl=255 time=20 ms     Reply from 192.168.1.2: bytes=56 Sequence=5 ttl=255 time=10 ms    --- 192.168.1.2 ping statistics ---     5 packet(s) transmitted     5 packet(s) received     0.00% packet loss     round-trip min/avg/max = 10/78/320 ms                       //这时候就能ping通了 <AR1>

未完待续。。。

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!