码迷,mamicode.com
首页 > 其他好文 > 详细

trunk、svi和以太通道

时间:2017-05-04 16:10:14      阅读:303      评论:0      收藏:0      [点我收藏+]

标签:trunk、svi、ethernet channel、interface

创建VLAN

#vlan database

#vlan 10

#exit

 

加入VLAN

conf-if#switchport mode access

conf-if#switchport access vlan 10

 

封装TRUNK 

SW>

cont-if#switchport trunk encapsulation dot1q

cont-if#switchport mode trunk

 

单臂路由配置

Route>

conf#int f0/0>no shu

conf#int f0/0.1

conf-if-sub#encapsulation dot1q 10 封装到VLAN10

conf-if-sub#ip add 0.0.0.0 0.0.0.0 设置VLAN10的网关

 

VLAN1本征VLAN

switchport trunk native vlan 10 修改本征VLAN

 

SVI

SVI方式:三层交换机代替单臂路由,在交换机上设置VLAN 10和VLAN 20的网关


Ethernet Channel 以太通道

端口聚合

conft#interface port-channel 1 设置通道1

conft#interface range f0/1-22 进入0-22端口

conft-if#channel-group 1 mode on


本文出自 “勤能补拙” 博客,谢绝转载!

trunk、svi和以太通道

标签:trunk、svi、ethernet channel、interface

原文地址:http://echoroot.blog.51cto.com/11804540/1921834

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!