A-A+

H3C VLAN-access+路由的实验和全部命令行

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

这次实验用的是模拟器可能与真室设备存在差别。实验中用的是ACCESS口,大家也可以用trunk做做。本试验最终的目的是要理解VLAN之间的路由。如有不足之处希望大家指出,一起学习一起进步。

下面就是这次H3C路由器实验的命令行:

  1. W1=vlan batch 10 20 30               
  2.          interface Vlanif10  
  3.  ip address 192.168.1.254 255.255.255.0  
  4. interface Vlanif20  
  5.  ip address 192.168.2.254 255.255.255.0  
  6. interface Vlanif30  
  7.  ip address 192.168.3.1 255.255.255.0  
  8. #  
  9. interface GigabitEthernet0/0/1  
  10.  port link-type access  
  11.  port default vlan 10  
  12. #  
  13. interface GigabitEthernet0/0/2  
  14.  port link-type access  
  15.  port default vlan 20  
  16. #  
  17. interface GigabitEthernet0/0/3  
  18.  port link-type access  
  19.  port default vlan 30  
  20. #路由rip 100  
  21.  undo summary  
  22.  version 2  
  23.  network 192.168.3.0  
  24.  network 192.168.1.0  
  25.  network 192.168.2.0  
  26. W4配置  
  27. vlan batch 20 40  
  28. interface Vlanif20  
  29.  ip address 192.168.3.2 255.255.255.0  
  30. #  
  31. interface Vlanif40  
  32.   
  33.   
  34.  ip address 192.168.4.1 255.255.255.0  
  35. #  
  36. interface MEth0/0/1  
  37. #  
  38. interface GigabitEthernet0/0/1  
  39.  port link-type access  
  40.  port default vlan 20  
  41. #  
  42. interface GigabitEthernet0/0/2  
  43.  port link-type access  
  44.  port default vlan 40  
  45. #  
  46. rip 100  
  47.  undo summary  
  48.  version 2  
  49.  network 192.168.3.0  
  50.  network 192.168.4.0  
  51. W3配置  
  52. vlan batch 40 50 60  
  53. interface Vlanif40  
  54.  ip address 192.168.4.2 255.255.255.0  
  55. #  
  56. interface Vlanif50  
  57.  ip address 192.168.5.254 255.255.255.0  
  58. #  
  59. interface Vlanif60  
  60.  ip address 192.168.6.254 255.255.255.0  
  61. #  
  62. interface MEth0/0/1  
  63. #  
  64. interface GigabitEthernet0/0/1  
  65.  port link-type access  
  66.  port default vlan 40  
  67. #  
  68. interface GigabitEthernet0/0/2  
  69.  port link-type access  
  70.  port default vlan 50  
  71. #   
  72. interface GigabitEthernet0/0/3  
  73.  port link-type access  
  74.  port default vlan 60  
  75. rip 100  
  76.  undo summary  
  77.  version 2  
  78.  network 192.168.4.0  
  79.  network 192.168.5.0  
  80.  network 192.168.6.0  
标签:

给我留言