重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2157|回复: 0
打印 上一主题 下一主题

华为仿真平台ensp下设置路由器的 ip

[复制链接]
跳转到指定楼层
楼主
发表于 2018-12-14 17:17:39 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
有两个路由器:ar1220

设置ip的步骤

1.通过securecrt登陆 到路由器 r1
  协议:telnet
  端口:2000
2.进入system-view

  <huawei> system-view


3.修改名字为r1


[huawei]sysname r1
[r1]

4.查看目前的ip情况
  [r1]display ip interface brief
*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 2
The number of interface that is UP in Protocol is 2
The number of interface that is DOWN in Protocol is 2
Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              
unassigned
          up           
down
        

GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
NULL0                             unassigned           up         up(s)     

5.修改g0/0/0的ip 为10.0.0.1

[r1]interface g0/0/0
[r1-GigabitEthernet0/0/0]

[r1-GigabitEthernet0/0/0]ip address 10.0.0.1 24

6.显示ip地址
[r1-GigabitEthernet0/0/0]display this
[V200R003C00]
#
interface GigabitEthernet0/0/0
ip address 10.0.0.1 255.255.255.0
#
return
[r1-GigabitEthernet0/0/0]

7.按上面的步骤,设置二号路由器的地址为10.0.0.2
  [r2]display ip interface brief
*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  
GigabitEthernet0/0/0              10.0.0.2/24          up         up        
GigabitEthernet0/0/1              unassigned           down       down      
NULL0                             unassigned           up         up(s)     
[r2]

8.测试两个路由器是否通
  r1 ping r2:

[r1-GigabitEthernet0/0/0]ping 10.0.0.2
  PING 10.0.0.2: 56  data bytes, press CTRL_C to break
    Reply from 10.0.0.2: bytes=56 Sequence=1 ttl=255 time=30 ms
    Reply from 10.0.0.2: bytes=56 Sequence=2 ttl=255 time=30 ms
    Reply from 10.0.0.2: bytes=56 Sequence=3 ttl=255 time=30 ms
    Reply from 10.0.0.2: bytes=56 Sequence=4 ttl=255 time=20 ms
    Reply from 10.0.0.2: bytes=56 Sequence=5 ttl=255 time=20 ms
  --- 10.0.0.2 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 20/26/30 ms
[r1-GigabitEthernet0/0/0]

r2 ping r1 :

[r2]ping 10.0.0.1
  PING 10.0.0.1: 56  data bytes, press CTRL_C to break
    Reply from 10.0.0.1: bytes=56 Sequence=1 ttl=255 time=10 ms
    Reply from 10.0.0.1: bytes=56 Sequence=2 ttl=255 time=30 ms
    Reply from 10.0.0.1: bytes=56 Sequence=3 ttl=255 time=30 ms
    Reply from 10.0.0.1: bytes=56 Sequence=4 ttl=255 time=20 ms
    Reply from 10.0.0.1: bytes=56 Sequence=5 ttl=255 time=20 ms
  --- 10.0.0.1 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 10/22/30 ms
[r2]

能够ping通。说明配置ip过程正确。



分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-11-28 18:24 , Processed in 0.080803 second(s), 20 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表