shuijingping 发表于 2018-7-25 07:27:01

三层交换机实现不同vlan间通信(华为)

  1,实验名称:华为三层交换机实现不同vlan间通信
  实验目的:pc1/pc2/pc3实现通信
  实验拓扑:http://i2.51cto.com/102?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=
  2,配置三层交换机
  <huawei>system-view
  sysname gateway
  vlan batch 10 20 30
  interface vlanif 10
  undo shutdown
  ip address 192.168.10.254 255.255.255.0
  quit
  interface vlanif 20
  undo shutdown
  ip address 192.168.20.254 255.255.255.0
  quit
  interface vlanif30
  undo shutdown
  ip address 192.168.30.254 255.255.255.0
  quit
  
  interface GigabitEthernet 0/0/1
  port link-type access
  port default vlan 10
  quit
  interface GigabitEthernet 0/0/2
  port link-type access
  port default vlan 20
  quit
  interface GigabitEthernet 0/0/3
  port link-type access
  port default vlan 30
  quit
  3,验证与测试
http://i2.51cto.com/102?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=
http://i2.51cto.com/102?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=
http://i2.51cto.com/102?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=
  4,实验总结:
  三层交换机配置思路:
  1.vlan需要配置网关
  2.三层交换机上创建vlan
  3.为每个vlan创建相应的虚拟vlan(SVI)
  4.给每个vlan配置IP地址
  5.配置三层交换机的动态路由或者静态路由
  实验结论:华为三层交换机可以通过创建虚拟vlan实现不同vlan通信,即实现vlan路由的功能。
页: [1]
查看完整版本: 三层交换机实现不同vlan间通信(华为)