<Huawei>system-view Enter system view, return user view with Ctrl+Z. [Huawei]sysname SA [SA]interface eth-trunk 1 [SA-Eth-Trunk1]mode lacp [SA-Eth-Trunk1]quit [SA]interface g 0/0/1 [SA-GigabitEthernet0/0/1]eth-trunk 1 [SA-GigabitEthernet0/0/1]quit [SA]interface g 0/0/2 [SA-GigabitEthernet0/0/2]eth-trunk 1 [SA-GigabitEthernet0/0/2]quit [SA]interface g 0/0/3 [SA-GigabitEthernet0/0/3]eth-trunk 1 [SA-GigabitEthernet0/0/3]quit [SA]lacp priority 100 [SA]interface eth-trunk 1 [SA-Eth-Trunk1]max active-linknumber 2 [SA-Eth-Trunk1]quit [SA]interface g 0/0/1 [SA-GigabitEthernet0/0/1]lacp priority 100 [SA-GigabitEthernet0/0/1]quit [SA]interface g 0/0/2 [SA-GigabitEthernet0/0/2]lacp priority 100 [SA-GigabitEthernet0/0/2]quit [SB]dis eth-trunk 1 Eth-Trunk1's state information is: Local: LAG ID: 1 WorkingMode: STATIC Preempt Delay: Disabled Hash arithmetic: According to SIP-XOR-DIP System Priority: 32768 System ID: 4c1f-ccf4-4162 Least Active-linknumber: 1 Max Active-linknumber: 2 Operate status: up Number Of Up Port In Trunk: 2 -------------------------------------------------------------------------------- ActorPortName Status PortType PortPri PortNo PortKey PortState Weight GigabitEthernet0/0/1 Selected 1000TG 100 2 401 10111100 1 GigabitEthernet0/0/2 Selected 1000TG 100 3 401 10111100 1 GigabitEthernet0/0/3 Unselect 1000TG 32768 4 401 10100000 1
[SA]display eth-trunk 1 Eth-Trunk1's state information is: Local: LAG ID: 1 WorkingMode: STATIC Preempt Delay: Disabled Hash arithmetic: According to SIP-XOR-DIP System Priority: 100 System ID: 4c1f-cce3-2653 Least Active-linknumber: 1 Max Active-linknumber: 2 Operate status: up Number Of Up Port In Trunk: 2 -------------------------------------------------------------------------------- ActorPortName Status PortType PortPri PortNo PortKey PortState Weight GigabitEthernet0/0/1 Selected 1000TG 100 2 401 10111100 1 GigabitEthernet0/0/2 Selected 1000TG 100 3 401 10111100 1 GigabitEthernet0/0/3 Unselect 1000TG 32768 4 401 10100000 1
[Switch] display arp interface vlanif 4 IP ADDRESS MAC ADDRESS EXPIRE(M) TYPE INTERFACE VPN-INSTANCE VLAN/CEVLAN ------------------------------------------------------------------------------ 10.10.10.1 101b-5441-5bf6 I - Vlanif4 ------------------------------------------------------------------------------ Total:1 Dynamic:0 Static:0 Interface:1
C:\Documents and Settings\Administrator> ping 10.10.10.4 Pinging 10.10.10.4 with 32 bytes of data: Reply from 10.10.10.4: bytes=32 time<1ms TTL=128 Reply from 10.10.10.4: bytes=32 time<1ms TTL=128 Reply from 10.10.10.4: bytes=32 time<1ms TTL=128 Reply from 10.10.10.4: bytes=32 time<1ms TTL=128
Ping statistics for 10.10.10.4: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0ms
[Switch] display arp interface vlanif 3 IP ADDRESS MAC ADDRESS EXPIRE(M) TYPE INTERFACE VPN-INSTANCE VLAN/CEVLAN ------------------------------------------------------------------------------ 10.10.10.1 101b-5441-5bf6 I - Vlanif3 ------------------------------------------------------------------------------ Total:1 Dynamic:0 Static:0 Interface:1
C:\Documents and Settings\Administrator> ping 10.10.10.2 Pinging 10.10.10.2 with 32 bytes of data: Reply from 10.10.10.2: bytes=32 time<1ms TTL=128 Reply from 10.10.10.2: bytes=32 time<1ms TTL=128 Reply from 10.10.10.2: bytes=32 time<1ms TTL=128 Reply from 10.10.10.2: bytes=32 time<1ms TTL=128
Ping statistics for 10.10.10.2: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0ms
# 在Switch_1上查看VLANIF10接口的ARP表项,可以看到VLANIF10接口的IP地址对应的MAC地址。 [Switch_1] display arp interface vlanif 10 IP ADDRESS MAC ADDRESS EXPIRE(M) TYPE INTERFACE VPN-INSTANCE VLAN/CEVLAN ------------------------------------------------------------------------------ 172.16.1.1 101b-5441-5bf6 I - Vlanif10 ------------------------------------------------------------------------------ Total:1 Dynamic:0 Static:0 Interface:1
# 在子公司A选取一台主机Host_1(IP地址:172.16.1.2/16,操作系统以Windows 7为例),在子公司B选取一台主机Host_2(IP地址:172.16.2.2/16)。在主机Host_1上Ping主机Host_2的IP地址,可以Ping通。 C:\Documents and Settings\Administrator> ping 172.16.2.2 Pinging 172.16.2.2 with 32 bytes of data: Reply from 172.16.2.2: bytes=32 time<1ms TTL=128 Reply from 172.16.2.2: bytes=32 time<1ms TTL=128 Reply from 172.16.2.2: bytes=32 time<1ms TTL=128 Reply from 172.16.2.2: bytes=32 time<1ms TTL=128
Ping statistics for 172.16.2.2: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0ms
# 在Host_1上查看ARP表,可以看到主机Host_2的IP地址对应的MAC地址是Switch_1的VLANIF10接口的MAC地址,可见Host_1和Host_2之间是通过ARP代理实现互通的。 C:\Documents and Settings\Administrator> arp -a Interface: 172.16.1.2 --- 0xd Internet Address Physical Address Type 172.16.2.2 101b-5441-5bf6 dynamic ...