静态路由配置
AR1: <Huawei>sy
[Huawei]interface g0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 192.168.1.1 24
[Huawei-GigabitEthernet0/0/0]
Aug 15 2022 23:28:18-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]quit
[Huawei]interface g0/0/1
[Huawei-GigabitEthernet0/0/1]ip address 12.0.0.1 24
Aug 15 2022 23:29:06-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[1]:The line protocol
IP on the interface GigabitEthernet0/0/1 has entered the UP state.
[Huawei-GigabitEthernet0/0/1]quit
[Huawei]interface g0/0/0
[Huawei-GigabitEthernet0/0/0]quit
[Huawei]interface g0/0/1
[Huawei-GigabitEthernet0/0/1]ip route-static 192.168.2.1 24 12.0.0.2
Info: The destination address and mask of the configured static route mismatched
, and the static route 192.168.2.0/24 was generated.
[Huawei]ip route-static 192.168.3.1 24 12.0.0.2
Info: The destination address and mask of the configured static route mismatched
, and the static route 192.168.3.0/24 was generated.
AR2:
<Huawei>sy
[Huawei]interface g0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 12.0.0.2 24
Aug 15 2022 23:30:27-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]quit
[Huawei]interface g0/0/1
[Huawei-GigabitEthernet0/0/1]ip address 192.168.2.1 24
Aug 15 2022 23:30:50-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[1]:The line protocol
IP on the interface GigabitEthernet0/0/1 has entered the UP state.
[Huawei-GigabitEthernet0/0/1]quit
[Huawei]interface g0/0/2
[Huawei-GigabitEthernet0/0/2]ip address 23.0.0.1 24
Aug 15 2022 23:31:16-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[2]:The line protocol
IP on the interface GigabitEthernet0/0/2 has entered the UP state.
[Huawei-GigabitEthernet0/0/2]
Aug 15 2022 23:32:27-08:00 Huawei ARP/4/ARP_IPCONFLICT_TRAP:OID 16777216.5033164
8.100663296.16777216.67108864.16777216.3674669056.83886080.419430400.2063597568.
33554432.100663296 ARP detects IP conflict. (IP address=1.0.0.23, Local interfac
e=GigabitEthernet0/0/2, Local MAC=00e0-fcc2-4596, Local vlan=0, Local CE vlan=0,
Receive interface=GigabitEthernet0/0/2, Receive MAC=00e0-fcae-7eb0, Receive vla
n=0, Receive CE vlan=0, IP conflict type=Local IP conflict).
[Huawei-GigabitEthernet0/0/2]
Aug 15 2022 23:32:27-08:00 Huawei %%01ARP/4/ARP_DUPLICATE_IPADDR(l)[3]:Received
an ARP packet with a duplicate IP address from the interface. (IpAddress=1.0.0.2
3, InterfaceName=GigabitEthernet0/0/2, MacAddress=00e0-fcae-7eb0)
[Huawei]interface g0/0/2
[Huawei-GigabitEthernet0/0/2]ip route-static 192.168.3.1 24 23.0.0.2
Info: The destination address and mask of the configured static rou
AR3:
[Huawei]interface g0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 23.0.0.1 24
[Huawei-GigabitEthernet0/0/0]
Aug 15 2022 23:32:26-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]
Aug 15 2022 23:32:27-08:00 Huawei ARP/4/ARP_IPCONFLICT_TRAP:OID 16777216.5033164
8.100663296.16777216.67108864.16777216.3674669056.83886080.419430400.2063597568.
33554432.100663296 ARP detects IP conflict. (IP address=1.0.0.23, Local interfac
e=GigabitEthernet0/0/0, Local MAC=00e0-fcae-7eb0, Local vlan=0, Local CE vlan=0,
Receive interface=GigabitEthernet0/0/0, Receive MAC=00e0-fcc2-4596, Receive vla
n=0, Receive CE vlan=0, IP conflict type=Local IP conflict).
[Huawei-GigabitEthernet0/0/0]
Aug 15 2022 23:32:27-08:00 Huawei %%01ARP/4/ARP_DUPLICATE_IPADDR(l)[1]:Received
an ARP packet with a duplicate IP address from the interface. (IpAddress=1.0.0.2
3, InterfaceName=GigabitEthernet0/0/0, MacAddress=00e0-fcc2-4596)
[Huawei-GigabitEthernet0/0/0]quit
[Huawei]interface g0/0/1
[Huawei-GigabitEthernet0/0/1]ip address 192.168.3.1 24
Aug 15 2022 23:33:12-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[2]:The line protocol
IP on the interface GigabitEthernet0/0/1 has entered the UP state.
[Huawei]interface g0/0/0
[Huawei-GigabitEthernet0/0/0]ip route-static 192.168.2.1 24 23.0.0.1
Error: The next-hop address is invalid.
[Huawei]ip route-static 192.168.1.1 24 23.0.0.1
Error: The next-hop address is invalid.
[Huawei]ping 192.168.1.2
PING 192.168.1.2: 56 data bytes, press CTRL_C to break
Request time out
Request time out
Request time out
Request time out
Request time out
--- 192.168.1.2 ping statistics ---
5 packet(s) transmitt