r6路由器配置相关命令
The device is running!
<Huawei>
<Huawei>
<Huawei>sys
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]
[Huawei]int
[Huawei]interface g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add
[Huawei-GigabitEthernet0/0/0]ip address 16.1.1.1 24
Jul 21 2022 18:40:30-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The line protocol
IP on the interface GigabitEthernet0/0/0 has entered the UP state.
[Huawei-GigabitEthernet0/0/0]int g0/0/02
[Huawei-GigabitEthernet0/0/2]ip add
[Huawei-GigabitEthernet0/0/2]ip address 67.1.1.1 24
Jul 21 2022 18:40:47-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[1]:The line protocol
IP on the interface GigabitEthernet0/0/2 has entered the UP state.
[Huawei-GigabitEthernet0/0/2]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ip add
[Huawei-GigabitEthernet0/0/1]ip address
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<Huawei>
<Huawei>sys
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]dhcp en
[Huawei]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[Huawei]ip pool 1
Info: It's successful to create an IP address pool.
[Huawei-ip-pool-1]netw
[Huawei-ip-pool-1]network 172.16.1.0 ma
[Huawei-ip-pool-1]network 172.16.1.0 mask 255.255.255.0
[Huawei-ip-pool-1]gat
[Huawei-ip-pool-1]gateway-list 172.16.1.1
[Huawei-ip-pool-1]dns
[Huawei-ip-pool-1]dns-list 8.8.8.8 114.114.114.114
[Huawei-ip-pool-1]q
[Huawei]int
[Huawei]interface g0/0/1
[Huawei-GigabitEthernet0/0/1]dhcp se
[Huawei-GigabitEthernet0/0/1]dhcp select gl
[Huawei-GigabitEthernet0/0/1]dhcp select global
[Huawei-GigabitEthernet0/0/1]q
[Huawei]
[Huawei]
[Huawei]
[Huawei]
[Huawei]dhcp emn
[Huawei]dhcp en
[Huawei]dhcp enable
[Huawei]int
[Huawei]interface g
^
Error:Incomplete command found at '^' position.
[Huawei]sys
[Huawei]sysname r6
[r6]
[r6]dhcp en
[r6]dhcp enable
[r6]ip pool 1
[r6-ip-pool-1]net
[r6-ip-pool-1]netbios-type
^
Error:Incomplete command found at '^' position.
[r6-ip-pool-1]netw
[r6-ip-pool-1]network 172.16.1.0 ma
[r6-ip-pool-1]network 172.16.1.0 mask 255.255.255.0
Error:Please delete the network section first.
[r6-ip-pool-1]
[r6-ip-pool-1]
[r6-ip-pool-1]undo netw
[r6-ip-pool-1]undo network 172.16.1.0 m
[r6-ip-pool-1]undo network 172.16.1.0 mask 255.255.255.0
^
Error:Too many parameters found at '^' position.
[r6-ip-pool-1]q
[r6]undo network 172.16.1.0 mask 255.255.255.0
^
Error: Unrecognized command found at '^' position.
[r6]int
[r6]interface g0/0/1
[r6-GigabitEthernet0/0/1]ip add
[r6-GigabitEthernet0/0/1]ip address 172.16.1.1 24
Jul 21 2022 19:05:15-08:00 r6 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
[r6-GigabitEthernet0/0/1]q
[r6]dhcp em
[r6]dhcp en
[r6]dhcp enable
[r6]ip pool 1
[r6-ip-pool-1]netw
[r6-ip-pool-1]network 172.16.1.0 ma
[r6-ip-pool-1]network 172.16.1.0 mask 255.255.255.0
Error:Please delete the network section first.
[r6-ip-pool-1]gat
[r6-ip-pool-1]gateway-list 172.16.1.1
Error:Please delete all sections of the pool before modifying the gateway IP add
ress.
[r6-ip-pool-1]dsn
[r6-ip-pool-1]dns
[r6-ip-pool-1]dns-list 8.8.8.8 114.114.114.114
Info:Part of the domain-name-server IP has already exist.
[r6-ip-pool-1]q
[r6]int
[r6]interface g0/0/1
[r6-GigabitEthernet0/0/1]dhcp se
[r6-GigabitEthernet0/0/1]dhcp select gl
[r6-GigabitEthernet0/0/1]dhcp select global
[r6-GigabitEthernet0/0/1]q
[r6]
<r6>sys
<r6>system-view
Enter system view, return user view with Ctrl+Z.
[r6]ip s
[r6]ip sta
[r6]ip rou
[r6]ip route-s
[r6]ip route-static 12.1.1.0 24 16.1.1.2
[r6]ip route-static 21.1.1.0 24 16.1.1.2
[r6]ip route-static 24.1.1.0 24 16.1.1.2
[r6]ip route-static 13.1.1.0 24 16.1.1.2
[r6]ip route-static 34.1.1.0 24 16.1.1.2
[r6]ip route-static 43.1.1.0 24 16.1.1.2
[r6]ip route-static 45.1.1.0 24 16.1.1.2
[r6]ip route-static 192.168.0.0 22 16.1.1.2
[r6]
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<r6>sys
<r6>system-view
Enter system view, return user view with Ctrl+Z.
[r6]ip rou
[r6]ip route-s
[r6]ip route-static
^
Error:Incomplete command found at '^' position.
[r6]ip route-static 0.0.0.0 0 67.
^
Error: Wrong parameter found at '^' position.
[r6]ip route-static 0.