1 switch> 命令行模式;config#特权模式 一、配置交换机 vlan 模式;有两种方式 第一种: config#vlan ID 这里的 ID 是需要你个人给要划分的 vlan 起的编号 config-if#name 名字 switch#show vlan brief 查看 vlan 用来检验是否配置成功 第二种: switch#vlan database 交换机的 vlan 配置状态 switch(vlan)#vlan ID name 名字 配置 vlan 并且分配相应的名字 二、3560 上开启路由功能配置 switch(config)#ip routing switch(config)#ip route ipaddress net-hop 配置路由(静态) switch(config)#ip default-gateway ipaddress 配置网关 三、开启聚合链路配置 #conf t SW(config)#interface range f1/1 - 2 SW(config-if)#channel-group 1 mode desirable/on SW(config-if)#swithport SW(config-if)#switchport mode trunk SW(config-if)#switchport trunk encap dot1q 四、启动 telnet 管理模式 switch(config)#line vty 0 4 switch(config-line)#password 密码 switch(config-line)#login 五、开启 cisco 日志功能 switch(config)#logging on switch(config)#logging trap 信息 switch(config)#logging host 你的 IP 地址 switch(config)#logging facility 你选着的信息 配置 3550 作为 dhcp 服务器 六、配置 cisco 启动 dhcp 功能 配置地址池 switch(config)ip dhcp pool 名字 switch(config-pool)network mask switch(config-pool)dns-server switch(config-pool)default-router 网关 设置 dhcp 保留不分配的地址 switch(config)ip dhcp excluded-address 地址 地址 第一步;从起交换机 第二步;配置 1)按下 MODE 键后给 3560 加电。 2)在出现的菜单中选择第一项 system software: flash_init load_helper boot switch:flash_init switch:load_helper 3)重命名 flash:config.text 文件。 switch: ren flash:config.text flash:config.old 4)重启交换机 switch: boot 5)当出现问你是否进行配置时,选择 NO(因为它找不到配置文件 config.text 文件了) Would you like to enter the initial configuration dialog? [yes/no]:no 2 6)从用户模式登录特权模式,无需密码。 Switch>en Switch# 7)恢复刚才重命令的配置文件名. Switch#ren flash:config.old flash...