H3C以太网端口Vlan配置举例_第1页
H3C以太网端口Vlan配置举例_第2页
H3C以太网端口Vlan配置举例_第3页
H3C以太网端口Vlan配置举例_第4页
H3C以太网端口Vlan配置举例_第5页
已阅读5页,还剩3页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、一页脚内容 11.1 以太网端口配置举例1.1.1 同一网段划分 vlan 配置举例1. 组网需求如下图所示, ar 18-22-24路由器端口上指定了vlan 属性,与路由器端口ethernet3/0/1 和ethernet3/0/2 相连的 pc1 与 pc2 属于 vlan10,与 etnernet3/0/3 和 ethernet3/0/4 相连的 pc3和pc4属于 vlan20 ,pc1 、pc2 、pc3 、pc4 在相同的网段,实现同一网段不同vlan 完全隔离。要求:路由器接口 ethernet3/0/0 的 ip地址和主机所在的网段相同。pc1 、pc 2 之间能够互相通信,

2、 pc3 、pc4 之间能够互相通信。pc1 、pc2 和 pc3 、pc4 之间不能通信。2. 组网图vlan 10vlan 20pc1pc2pc3pc4ar 18-22-241.1.1.11.1.1.41.1.1.21.1.1.3图1-1同一网段划分 vlan一页脚内容 23. 配置步骤配置路由器,进入以太网端口视图,指定端口的链路类型,把端口加入到指定vlan 中(如果端口已经是 access 类型不用执行 port link-type access 命令)。# 配置 ethernet 3/0/1quidway interface ethernet 3/0/1quidway-ethern

3、et3/0/1 port link-type accessquidway-ethernet3/0/1 port access vlan 10# 配置 ethernet 3/0/2quidway interface ethernet 3/2quidway-ethernet3/0/2 port link-type accessquidway-ethernet3/0/2 port access vlan 10# 配置 ethernet 3/0/3quidway interface ethernet 3/0/3quidway-ethernet3/0/3 port link-type accessqui

4、dway-ethernet3/0/3 port access vlan 20# 配置 ethernet 3/0/4quidway interface ethernet 3/0/4一页脚内容 3quidway-ethernet3/0/4 port link-type accessquidway-ethernet3/0/4 port access vlan 20# 配置虚拟以太网接口ethernet 3/0/0quidway interface ethernet 3/0/0quidway-ethernet3/0/0.1 ip address 1.1.1.5 255.255.255.01.1.2 不

5、同网段 lan 互通配置举例1. 组网需求如下图所示,路由器端口上指定了vlan 属性,与路由器端口ethernet3/0/1 和 ethernet3/0/2相连的 pc1 与 pc2 属于 vlan10, 与etnernet3/0/3 和ethernet3/0/4 相连的 pc3 和 pc4 属于 vlan20 ,vlan10 与 vlan20 在不同的网段,实现不同网段不同vlan 完全隔离。要求:路由器子接口 ethernet 3/0/0.1 的 ip地址为 1.1.1.1 ,配置关联的 vid为 10 ; ethernet 3/0/0.2 的 ip地址为 2.2.2.1配置相关联的 v

6、id为 20。pc1 和 pc2 之间能够互相通信, pc3和 pc4 之间能够互相通信pc1 、pc2 与 pc3 、pc4 之间也可以通信。一页脚内容 42. 组网图vlan 10vlan 20pc1pc2pc3pc4ar 18-22-241.1.1.22.2.2.31.1.1.32.2.2.2图1-2不同网段划分 vlan 组网图3. 配置步骤配置路由器,进入ethernet 端口视图,指定端口的链路类型,把端口加入到指定vlan 中# 配置 ethernet3/0/1quidway interfacec ethernet 3/0/1quidway-ethernet3/0/1 port

7、link-type accessquidway-ethernet3/0/1 port access vlan 10# 配置 ethernet 3/0/2quidway interface ethernet 3/0/2quidway-ethernet3/0/2 port link-type accessquidway-ethernet3/0/2 port access vlan 10# 配置 ethernet 3/0/3一页脚内容 5quidway interface ethernet 3/0/3quidway-ethernet3/0/3 port link-type accessquidway

8、-ethernet3/0/3 port access vlan 20# 配置 ethernet 3/0/4quidway interface ethernet 3/0/4quidway-ethernet3/0/4 port link-type accessquidway-ethernet3/0/4 port access vlan 20vlan10 和 vlan20 要实现互通,需要配置相应的以太网子接口,即vlan 对应的路由接口,创建并进入相应的子接口视图, 为其配置相应的封装协议和关联的vlan id,及 ip地址和掩码。操作如下:# 配置 ethernet 3/0/0.1quidway

9、 interface ethernet 3/0/0.1quidway-ethernet3/0/0.1 vlan-type dot1q vid 10quidway-ethernet3/0/0.1 ip address 1.1.1.1 255.255.255.0# 配置 ethernet3/0/0.2quidway interface ethernet 3/0/0.2quidway-ethernet3/0/0.2 vlan-type dot1q vid 20quidway-ethernet3/0/0.2 ip address 2.2.2.1 255.255.255.0一页脚内容 61.1.3 跨设

10、备划分 vlan 组网举例1. 组网需求如下图所示,路由器和交换机相连,且交换机支持划分vlan (802.1q ),同时在路由器和交换机端口上设 trunk, 允许多个 vlan 报文通过。和路由器 ethernet3/0/1相连的 pc1 属于 vlan10,和 ethernet3/0/2 相连的 pc2 属于 vlan20 ; 和交换机端口 ethernet0/0/1相连的 pc3 属于 vlan10,和 etnernet0/0/2相连的 pc4 属于 vlan20 , 交换机的 ethernet 0/0/3与路由器通的 ethernet3/0/22配置为 trunk, 用网线连接。要求

11、:pc1 能和 pc3通信, pc2 能和 pc4 通信, pc1 、pc2 、pc3 、pc4 之间不能互相通信。2. 组网图col-act-sta-1 2 3 4 5 6 7 8 910 1112hs1 hs2ok1 ok2psconsolevlantrunkvlan 10vlan 20pc1pc2pc3pc4ar 18-22-241.1.1.1/241.1.1.2/242.2.2.1/242.2.2.2/24图1-3跨设备划分 vlan 组网图3. 配置举例(1)配置路由器一页脚内容 7# 配置 ethernet 3/0/1quidway interface ethernet 3/0/1

12、quidway-ethernet3/0/1 port link-type accessquidway-ethernet3/0/1 port access vlan 10# 配置 ethernet 3/0/2quidway interface ethernet 3/0/2quidway-ethernet3/0/2 port link-type accessquidway-ethernet3/0/2 port access vlan 20# 在路由器上配置 trunkquidway interface ethernet 3/0/22quidway-ethernet3/0/22 port link-type trunkquidway-ethernet3/0/22 port trunk permit vlan 10 20(2)配置交换机# 配置 ethernet 0/0/1quidway interface ethernet 0/0/1quidway-ethernet0/0/1 port link-type accessquidway-ethernet0/0/1 port access vlan 10一页脚内容 8# 配置 ethernet 0/0/2quidway interface ethernet 0/0/2quidway-ethernet0/0

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论