<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