HCIA 第三次实验

R1路由配置 

第一步:配置R1路由接口IP

(1)双击R1路由器,输入system-view;

(2)输入sysname r1,更改路由器名称;

(3)输入interface g0/0/0

(4)输入ip add 192.168.1.1 24

(5)返回上一层,且输入interface g0/0/1

(6)输入ip add 192.168.2.1 24 

第二步:配置相对应的静态路由

[r1]ip route-static 192.168.3.0 24 192.168.2.2
[r1]ip route-static 192.168.4.0 24 192.168.2.2
[r1]ip route-static 192.168.5.0 24 192.168.2.2

第三步:查看配置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 3
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 3
The number of interface that is DOWN in Protocol is 1

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              192.168.1.1/24       up         up        
GigabitEthernet0/0/1              192.168.2.1/24       up         up        
GigabitEthernet0/0/2              unassigned           down       down      
NULL0                             unassigned           up         up(s)   

第四步:配置PC1 IP地址

到此为止,R1路由的相关配置已经完成,R2、R3配置步骤同上。

R2路由配置 

路由IP配置

[Huawei]sysname r2
[r2]interface g0/0/1
[r2-GigabitEthernet0/0/1]ip add 192.168.2.2 24
[r2]interface g0/0/0
[r2-GigabitEthernet0/0/0]ip add 192.168.3.1 24
[r2]interface g0/0/2
[r2-GigabitEthernet0/0/2]ip add 192.168.4.1 24

配置相对应的静态路由

[r2]ip route-static 192.168.1.0 24 192.168.2.1
[r2]ip route-static 192.168.5.0 24 192.168.4.2

配置PC2 IP地址

R3路由配置

路由IP配置

[Huawei]sysname r3
[r3]interface g0/0/2
[r3-GigabitEthernet0/0/2]ip add 192.168.4.2 24
[r3]interface g0/0/0
[r3-GigabitEthernet0/0/0]ip add 192.168.5.1 24

配置相对应的静态路由

[r3]ip route-static 192.168.2.0 24 192.168.4.1
[r3]ip route-static 192.168.1.0 24 192.168.4.1
[r3]ip route-static 192.168.3.0 24 192.168.4.1

配置PC3 IP地址

 到此为止,全部设备都配置完成,下面将进行各个终端之间的连接测试。

PC3与PC1、PC2进行测试

 PC2与PC1、PC3进行测试

PC1与PC2、PC3进行测试 

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值