Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5371382
  • 博文数量: 890
  • 博客积分: 12876
  • 博客等级: 上将
  • 技术积分: 10760
  • 用 户 组: 普通用户
  • 注册时间: 2004-10-04 14:18
个人简介

猝然临之而不惊,无故加之而不怒。

文章分类

全部博文(890)

文章存档

2016年(1)

2014年(18)

2013年(41)

2012年(48)

2011年(65)

2010年(84)

2009年(121)

2008年(101)

2007年(129)

2006年(95)

2005年(118)

2004年(69)

分类: 系统运维

2010-08-31 15:24:58

  1、命名:

       (config)#hostname Cisco3750

  2、密码:

  控制台密码:

       (config)#line console 0
       (config-line)#password 123
       (config-line)#login

  VYT密码:    

       (config)#line vty 0 15
       (config)#password 123
       (config)#login

  特权密码:   

       (config)#enable secret password123

  3、在配置文件中密码部分加密显示

  (config)#service password-encrytion

  4、划分Vlan 、分配端口

  (config)#vlan X (X代表Vlan的编号)
  (config-vlan)#name vlanX

  分配端口

  (config)#interface f1/0/1 /interface range f1/0/1-10
  (config-if)#switchport mode access
  (config-if)#switchport access vlan vlan X

  5、启用路由功能

  (config)#ip routing     三层交换机默认是关闭该功能的

  6、为需要相互通信的各VLAN配置IP地址,这样各vlan间就可以互访了,如果有的    Vlan只需交换功能,不为该vlan分配网段即可。

  (config)#interface vlan X
  (config-vlan)#ip address 192.168.0.100 255.255.255.0
  (config-vlan)#no shutdown

  7、指定时区、时间

  时区:(config)#clock time-zone
  (config)#set 8
  时间:#clock set Current Time

  8、端口描述、启用全双工、速率100

  端口描述:(config)#interface f1/0/1
  (config-if)#description connection to X
  (config-if)#duplex full
  (config-if)#speed 100

  9、启用中继:交换机与交换机之间的连接要启用中继,目的在于在交换机间共享Vlan的配置信息,vtp 允许交换机共享并同步它们之间的vlan配置信息,而VTP消息只会跨越中继连接传播,因此在交换机连接中设置中继才能共享Vlan信息

  (config)#interface f1/0/X
  (config-if)#switchport mode trunk
  (config-if)#switchport trunk encryption dotlq

阅读(1479) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~