hcia第三次作业

本文介绍了如何通过DHCP为不同设备分配特定IP地址的方法,并设置了地址排除范围以避免冲突。此外,还展示了如何实现全网可达性及网段汇总的具体配置步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1.pc1,pc2获取指定IP
 

[r1]dhcp ena    
[r1]dhcp enable 
Info: The operation may take a few seconds. Please wait for a moment.done.
[r1]ip pool 1
Info: It's successful to create an IP address pool.
[r1-ip-pool-1]network 172.16.1.0
[r1-ip-pool-1]gateway-list 172.16.1.1
[r1-ip-pool-1]dns-list 8.8.8.8 114.114.114.114
[r1-ip-pool-1]quit
[r1]interface g0/0/0
[r1-GigabitEthernet0/0/0]dhcp select global 
[r1-GigabitEthernet0/0/0]quit
[r1-ip-pool-1]static-bind ip-address 172.16.1.11 mac-address 5489-9817-0CD5 
[r1-ip-pool-1]static-bind ip-address 172.16.1.13 mac-address 5489-9877-178B
[r1-ip-pool-1]

2.pc3和pc4不能获取250-254的地址

[r5]ip pool 2
Info: It's successful to create an IP address pool.
[r5-ip-pool-2]network 192.168.1.0 mask 255.255.255.0
[r5-ip-pool-2]gateway-list 192.168.1.1
[r5-ip-pool-2]dns-list 8.8.8.8 114.114.114.114
[r5-ip-pool-2]excluded-ip-address 192.168.1.250 192.168.1.254
[r5-ip-pool-2]interface g0/0/1	
[r5-GigabitEthernet0/0/1]dhcp select global 
[r5-GigabitEthernet0/0/1]

3全网可达,网段汇总

[r1]display ip routing-table 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 15       Routes : 15       

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

       12.1.1.0/24  Direct  0    0           D   12.1.1.1        GigabitEthernet
0/0/1
       12.1.1.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/1
     12.1.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/1
       23.1.1.0/24  Static  60   0          RD   12.1.1.2        GigabitEthernet
0/0/1
       32.1.1.0/24  Static  60   0          RD   12.1.1.2        GigabitEthernet
0/0/1
       34.1.1.0/24  Static  60   0          RD   12.1.1.2        GigabitEthernet
0/0/1
       46.1.1.0/24  Static  60   0          RD   12.1.1.2        GigabitEthernet
0/0/1
      127.0.0.0/8   Direct  0    0           D   127.0.0.1       InLoopBack0
      127.0.0.1/32  Direct  0    0           D   127.0.0.1       InLoopBack0
127.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0
     172.16.1.0/24  Direct  0    0           D   172.16.1.1      GigabitEthernet
0/0/0
     172.16.1.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
   172.16.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
    192.168.0.0/22  Static  60   0          RD   12.1.1.2        GigabitEthernet
0/0/1
255.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0

[r1]

问题:32.1.1.0/24不知道怎么修改成备份路径

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值