A-A+

华为模拟器单臂路由技术、MAC地址的详细步骤

2015年11月24日 站长资讯 暂无评论

实验需求:

1.创建VLAN

2.VLAN划分正确

3.广播请求MAC地址开启

以下是拓扑图及所需设备:

一.创建VLAN

以下是命令及配置:

  1. LSW1:  
  2. <Huawei>system-view  
  3. Oct 14 2013 11:41:30-08:00 Huawei %%01PHY/1/PHY(l)[54]: Ethernet0/0/3: change  
  4. status to up  
  5. Enter system view, return user view with Ctrl+Z.  
  6. [Huawei]vlan 10  
  7. [Huawei-vlan10]  
  8. Oct 14 2013 11:41:41-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.  
  9. 25.191.3.1 configurations have been changed. The current change number is 4, the  
  10. change loop count is 0, and the maximum number of records is 4095.  
  11. [Huawei-vlan10]vlan 20  
  12. [Huawei-vlan20]  
  13. Oct 14 2013 11:41:51-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.  
  14. 25.191.3.1 configurations have been changed. The current change number is 5, the  
  15. change loop count is 0, and the maximum number of records is 4095.  
  16. LSW2:  
  17. <Huawei>system-view  
  18. Enter system view, return user view with Ctrl+Z.  
  19. [Huawei]vlan 10  
  20. Oct 14 2013 11:43:10-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.   
  21. 25.191.3.1 configurations have been changed. The current change number is 4, the  
  22. change loop count is 0, and the maximum number of records is 4095.  
  23. [Huawei-vlan10]vlan 20  
  24. Oct 14 2013 11:43:20-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.  
  25. 25.191.3.1 configurations have been changed. The current change number is 5, the  
  26. change loop count is 0, and the maximum number of records is 4095.  

二.划分VLAN。

以下是详细步骤:

  1. LSW1:  
  2. [Huawei]interface Eth0/0/1  
  3. [Huawei-Ethernet0/0/1]port link-type access  
  4. [Huawei-Ethernet0/0/1]  
  5. Oct 14 2013 11:45:31-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.  
  6. 25.191.3.1 configurations have been changed. The current change number is 6, the  
  7. change loop count is 0, and the maximum number of records is 4095.  
  8. [Huawei-Ethernet0/0/1]port default vlan 10  
  9. [Huawei-Ethernet0/0/1]  
  10. Oct 14 2013 11:45:41-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.  
  11.   
  12. 25.191.3.1 configurations have been changed. The current change number is 7, the  
  13. change loop count is 0, and the maximum number of records is 4095.  
  14. [Huawei-Ethernet0/0/1]int e0/0/2  
  15. [Huawei-Ethernet0/0/2]port link-type access  
  16. [Huawei-Ethernet0/0/2]  
  17. Oct 14 2013 11:47:01-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.  
  18. 25.191.3.1 configurations have been changed. The current change number is 8, the  
  19. change loop count is 0, and the maximum number of records is 4095.  
  20. [Huawei-Ethernet0/0/2]port default vlan 20  
  21. [Huawei-Ethernet0/0/2]  
  22. Oct 14 2013 11:47:11-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.  
  23. 25.191.3.1 configurations have been changed. The current change number is 9, the  
  24. change loop count is 0, and the maximum number of records is 4095.  
  25. LSW2:  
  26. [Huawei]interface Eth0/0/1  
  27. [Huawei-Ethernet0/0/1]port link-type a  
  28. [Huawei-Ethernet0/0/1]port link-type access  
  29. Oct 14 2013 11:49:20-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.   
  30. 25.191.3.1 configurations have been changed. The current change number is 6, the  
  31. change loop count is 0, and the maximum number of records is 4095. de  
  32. [Huawei-Ethernet0/0/1]port default vlan 10  
  33. [Huawei-Ethernet0/0/1]  
  34. Oct 14 2013 11:49:30-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.  
  35. 25.191.3.1 configurations have been changed. The current change number is 7, the  
  36. change loop count is 0, and the maximum number of records is 4095.  
  37. [Huawei-Ethernet0/0/1]int e0/0/2  
  38. [Huawei-Ethernet0/0/2]port link-type access  
  39. [Huawei-Ethernet0/0/2]  
  40. Oct 14 2013 11:50:50-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.  
  41. 25.191.3.1 configurations have been changed. The current change number is 8, the  
  42. change loop count is 0, and the maximum number of records is 4095.  
  43. [Huawei-Ethernet0/0/2]port default vlan 20  
  44. [Huawei-Ethernet0/0/2]  
  45. Oct 14 2013 11:51:00-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.   
  46. 25.191.3.1 configurations have been changed. The current change number is 9, the  
  47. change loop count is 0, and the maximum number of records is 4095.  

三.检查VLAN是否划分正确,命令为display vlan

如图所示:

四.创建中继口。

将交换机互联端口现改为访问端口再改为中继口。

以下是详细步骤:

  1. [Huawei-Ethernet0/0/4]port link-type trunk  
  2. [Huawei-Ethernet0/0/4]  
  3. Oct 14 2013 12:02:51-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.  
  4. 25.191.3.1 configurations have been changed. The current change number is 12, the  
  5. change loop count is 0, and the maximum number of records is 4095.  
  6. [Huawei-Ethernet0/0/4]port trunk allow-pass vlan all  
  7. [Huawei-Ethernet0/0/4]  
  8. Oct 14 2013 12:04:01-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.  
  9. 25.191.3.1 configurations have been changed. The current change number is 13, the  
  10. change loop count is 0, and the maximum number of records is 4095.  
  11. [Huawei]interface Eth0/0/3  
  12. [Huawei-Ethernet0/0/3]port link-type trunk  
  13. [Huawei-Ethernet0/0/3]  
  14. Oct 14 2013 12:06:30-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.  
  15. 25.191.3.1 configurations have been changed. The current change number is 12, the  
  16.   
  17. change loop count is 0, and the maximum number of records is 4095.  
  18. [Huawei-Ethernet0/0/3]port trunk allow-pass vlan all  
  19. [Huawei-Ethernet0/0/3]  
  20. Oct 14 2013 12:06:50-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.  
  21. 25.191.3.1 configurations have been changed. The current change number is 13, the  
  22. change loop count is 0, and the maximum number of records is 4095.[Huawei]interface Eth0/0/4  

检查一下

如图所示:

注意:别忘了将也改为中继口

五.创建子接口,划分子接口给VLAN并且配置网关及掩码。

以下是详细步骤:

  1. [Huawei]interface GigabitEthernet 0/0/0.1  
  2. [Huawei-GigabitEthernet0/0/0.1]dot1q termination vid 10  
  3. [Huawei-GigabitEthernet0/0/0.1]ip add 192.168.1.1 24  
  4. Oct 14 2013 09  
  5. [Huawei-GigabitEthernet0/0/0.1]:28:07-05:13 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP on the interface GigabitEthernet0/0/0.1 has entered the UP state.  
  6. [Huawei-GigabitEthernet0/0/0.1]  
  7. [Huawei-GigabitEthernet0/0/0.1]int g0/0/0.2  
  8. [Huawei-GigabitEthernet0/0/0.2]dot1q termination vid 20  
  9. [Huawei-GigabitEthernet0/0/0.2]ip add 192.168.2.1 24  
  10. [Huawei-Gi  
  11. Oct 14 2013 09:31:11-gabitEt05:13 Huawei %%01Ihernet0/0/0.2]FNET/4/LINK_STATE(l)[1]:The line protocol IP on the interface GigabitEthernet0/0/0.2 has entered the UP state.  
  12. [Huawei-GigabitEthernet0/0/0.2]  

六.开启MAC地址请求。

  1. [Huawei]interface g0/0/0.1  
  2. [Huawei-GigabitEthernet0/0/0.1]arp broadcast enable  
  3. [Huawei-GigabitEthernet0/0/0.1]   
  4. [Huawei-GigabitEthernet0/0/0.1]int g0/0/0.2  
  5. [Huawei-GigabitEthernet0/0/0.2]arp broadcast enable  
  6. [Huawei-GigabitEthernet0/0/0.2]  

七.验证。

就此完成。

标签:

给我留言