第三天的作业

这篇博客记录了配置路由器网络的过程,包括设置IP地址、静态路由、DHCP服务器和IP地址池,以及在不同接口上的应用。通过这些配置,实现了网络接口的连接状态跟踪和IP地址的动态分配。
摘要由CSDN通过智能技术生成

<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname r2
[r2]user    
[r2]user-int    
[r2]user-interface con    
[r2]user-interface console 0
[r2-ui-console0]idle    
[r2-ui-console0]idle-timeout 0 0
[r2-ui-console0]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[r2]int    
[r2]interface g0/0/0
[r2-GigabitEthernet0/0/0]ip address 12.1.1.0 24
Error: The specified IP address is invalid.
[r2-GigabitEthernet0/0/0]ip address 12.1.1.1 24
Nov 14 2022 23:06:24-08:00 r2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[r2-GigabitEthernet0/0/0]int g0/0/1
[r2-GigabitEthernet0/0/1]ip address 172.16.1.1 24
Nov 14 2022 23:07:03-08:00 r2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
[r2-GigabitEthernet0/0/1]quit
[r2]ip route    
[r2]ip route-static 23.1.1.0 24 12.1.1.2
[r2]ip route-static 34.1.1.0 24 12.1.1.2
[r2]ip route-static 46.1.1.0 24 12.1.1.2
[r2]ip route-static 192.168.0.0 22 12.1.1.2
[r2]ip route-static 32.1.1.0 22 12.1.1.2
Info: The destination address and mask of the configured static route mismatched
, and the static route 32.1.0.0/22 was generated.
[r2]ip route-static 32.1.1.0 24 12.1.1.2
[r2]ip pool 1
Info: It's successful to create an IP address pool.
[r2-ip-pool-1]net    
[r2-ip-pool-1]network 172.16.1.0 mask 24
[r2-ip-pool-1]gate    
[r2-ip-pool-1]gateway-list 172.16.1.1
[r2-ip-pool-1]dns    
[r2-ip-pool-1]dns-list 8.8.8.8 114.114.114.114
[r2-ip-pool-1]int g0/0/1
[r2-GigabitEthernet0/0/1]dhcp sel    
[r2-GigabitEthernet0/0/1]dhcp select glo    
[r2-GigabitEthernet0/0/1]dhcp select global
[r2-GigabitEthernet0/0/1]quit
[r2]ip pool 1
[r2-ip-pool-1]sta    
[r2-ip-pool-1]static-bind ip    
[r2-ip-pool-1]static-bind ip-address 172.16.1.11 mac    
[r2-ip-pool-1]static-bind ip-address 172.16.1.11 mac-address 5489-980C-5894
[r2-ip-pool-1]static-bind ip-address 172.16.1.13 mac-address 5489-98CD-1BBD
[r2-ip-pool-1]quit
[r2]ip route-sta    
[r2]ip route-static 32.1.1.0 24 12.1.1.2 pre    
[r2]ip route-static 32.1.1.0 24 12.1.1.2 preference 61
Info: Succeeded in modifying route.
[r2]

ar3

The device is running!

<Huawei>
Nov 14 2022 22:59:39-08:00 Huawei %%01IFPDT/4/IF_STATE(l)[0]:Interface GigabitEt
hernet0/0/1 has turned into UP state.
<Huawei>
Nov 14 2022 22:59:39-08:00 Huawei %%01IFPDT/4/IF_STATE(l)[1]:Interface GigabitEt
hernet0/0/2 has turned into UP state.
<Huawei>

  Please check whether system dat

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值