Cisco网络技术论 坛-> 用户名 密码
搜索
Net130.com

CCNP学习笔记-note for video


http://www.net130.com  发布日期:2005-3-7
浏览次数:
 出处:枫叶

 switch(config)#service timestamps debug datetime msec
switch(config)#service timetamps log datetime msec
以上两条命令为debug和log打上时间戳的标记。呵呵,记录日志的时候有用,可以查看什么时候别人使用了路由器。  后面的msec是精确到秒的意思
local vlan :一个vlan只存在于一个交换机或者一个配线间。
end to end vlan:跨越多个交换机。


另一种分类:
 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