新客网WWW.XKER.COM:致力做中国最专业的网络学院!
学院: 操作系统 - 网络应用 - 服务器 - 网络安全 - 工具软件 - 办公软件 - Web开发 - 数据库 - 网页设计 - 图形图像 - 媒体动画 - 硬件学堂 - 存储频道 - QQ专区
您的位置:首页 > 网络学院 > 网络应用 > 交换技术 > 正文:6509为主网络配置实例

6509为主网络配置实例

新客网 XKER.COM 2007-01-31 来源: 收藏本文
   

  bg-sw-03(config)#line vty 0 4              / 进入VTY模式

  bg-sw-03(config.line)#login                 / 登入提示

  bg-sw-03(config.line)#password test                            / 设用户级口令

  bg-sw-03(config.line)#exit

  bg-sw-03 (config)#int vlan 1 / 进入内部管理接口

  bg-sw-03 (config-if)#ip address 10.234.180.23 255.255.255.0/加入IP地址

  bg-sw-03(config-if)#exit

  bg-sw-03(config)#ip default.gateway 10.234.180.234 /设网关

  bg-sw-03(config)#end

  bg-sw-03#vlan database  / 进入vtp数据库

  bg-sw-03(vlan)#vtp domain Corp_Net        /设vtp域 

  bg-sw-03(vlan)#vtp client                                      /设定vtp模式

  bg-sw-03(vlan)#exit

  bg-sw-03(config)#spantree uplinkfast /设定端口快速上连

  bg-sw-03(config)#int g0/1  /进入接口模式 

  bg-sw-03(config-if)#switchport mode trunk /设为trunk模式

  bg-sw-03(config-if)#switchport trunk encapsulation dot1q   /设定封装模式

  bg-sw-03(config-if)#switchport trunk allowed vlan all  /设定trunk许可vlan

  bg-sw-03(config-if)#spanning-tree portfast                      /设定端口快速启用

  bg-sw-03(config-if)#int g0/2/进入接口模式 

  bg-sw-03(config-if)#switchport mode trunk  /设为trunk模式

  bg-sw-03(config-if)#switchport trunk encapsulation dot1q/设定封装模式

  bg-sw-03(config-if)#switchport trunk allowed vlan all  /设定trunk许可vlan

  bg-sw-03(config-if)#spanning-tree portfast                        /设定端口快速启用

  bg-sw-03(config-if)#exit

  bg-sw-03#write memory

  第二台Catalyst 3548

  switch#configure terminal

  Enter configuration commands, one per line. End with CNTL/Z.

  switch(config)#hostname bg-sw-04 /设备名

  bg-sw-04(config)#enable password test /设口令

  bg-sw-04(config)#enable secret test

  bg-sw-04(config)#banner motd % Welcome to the C3548 in the Office % /提示文本

[责任编辑:editor]

收藏】 【评论】 【推荐】 【投稿】 【打印】 【关闭
发表评论
要记得去论坛讨论,点击注册新会员匿名评论
评论内容:不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
阅读排行
随机推荐
实用信息推荐