首页 > 数据库技术 > 详细

H3C VLAN-access+路由

时间:2014-04-08 20:24:57      阅读:527      评论:0      收藏:0      [点我收藏+]

W1=vlan batch 10 20 30             

         interface Vlanif10
 ip address 192.168.1.254 255.255.255.0
interface Vlanif20
 ip address 192.168.2.254 255.255.255.0
interface Vlanif30
 ip address 192.168.3.1 255.255.255.0
#
interface GigabitEthernet0/0/1
 port link-type access
 port default vlan 10
#
interface GigabitEthernet0/0/2
 port link-type access
 port default vlan 20
#
interface GigabitEthernet0/0/3
 port link-type access
 port default vlan 30
#路由rip 100
 undo summary
 version 2
 network 192.168.3.0
 network 192.168.1.0
 network 192.168.2.0

W4配置

vlan batch 20 40

interface Vlanif20
 ip address 192.168.3.2 255.255.255.0
#
interface Vlanif40
 ip address 192.168.4.1 255.255.255.0
#
interface MEth0/0/1
#
interface GigabitEthernet0/0/1
 port link-type access
 port default vlan 20
#
interface GigabitEthernet0/0/2
 port link-type access
 port default vlan 40
#
rip 100
 undo summary
 version 2
 network 192.168.3.0
 network 192.168.4.0
W3配置

vlan batch 40 50 60

interface Vlanif40
 ip address 192.168.4.2 255.255.255.0
#
interface Vlanif50
 ip address 192.168.5.254 255.255.255.0
#
interface Vlanif60
 ip address 192.168.6.254 255.255.255.0
#
interface MEth0/0/1
#
interface GigabitEthernet0/0/1
 port link-type access
 port default vlan 40
#
interface GigabitEthernet0/0/2
 port link-type access
 port default vlan 50
#
interface GigabitEthernet0/0/3
 port link-type access
 port default vlan 60
rip 100
 undo summary
 version 2
 network 192.168.4.0
 network 192.168.5.0
 network 192.168.6.0
以上实验用的是模拟器可能与真室设备存在差别。实验中用的是ACCESS口,大家也可以用trunk做做。本试验最终的目的是要理解VLAN之间的路由。如有不足之处希望大家指出,一起学习一起进步。

bubuko.com,布布扣

 

本文出自 “yu344109534” 博客,请务必保留此出处http://2338670.blog.51cto.com/2328670/1392350

H3C VLAN-access+路由,布布扣,bubuko.com

H3C VLAN-access+路由

原文:http://2338670.blog.51cto.com/2328670/1392350

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!