![]() |
|
|
Net130.com
|
CCNP学习笔记-note for video
|
http://www.net130.com 发布日期:2005-3-7
|
浏览次数:
|
|
|
出处:枫叶
|
另一种分类:
static VLAN:基于端口
switch(config)#interface gigabitethernet 1/1
switch(config-if)#switchport mode access
switch(config-if)#switchport access vlan 3
验证命令:
switch#show vlan
switch#show run interface g1/1
switch#show interface g1/1 switchport (查看二层状态)
switch#show mac-address-table interface (查看interface 上的mac-address-table)
dynamic VLAN:基于MAC,基于IP地址(vmps服务器)
vlan的两种配置方法:
the first
switch#configure terninal
switch(config)#vlan 3
switch(config)#name v3
the secondary:
switch#vlan database
switch(vlan)vlan 3 name v3
在这种配置模式下,只有应用了apply或者exit命令之后,才会生效,如果键入abort,则会放弃所作的更改直接退出。
删除VLAN
switch(config)#no vlan 3
switch(config)#exit
switch#vlan databse
switch(vlan)#no vlan 3
switch(vlan)#exit
| 热点文章 | ||
|
|
||
|
|
·ActualTest 642-831 v05.02.05
·ActualTest 642-821 v04.27.05
·Actualtest 642-811 v04.26.05
·OSPF笔记