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

标题: 华为仿真平台ensp下设置路由器的 ip [打印本页]

作者: 郑全    时间: 2018-12-14 17:17
标题: 华为仿真平台ensp下设置路由器的 ip
有两个路由器: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过程正确。








欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2