學習啦>學習電腦>網(wǎng)絡知識>路由器>路由器設置>cisco思科>

怎么配置配置思科WS-C2950T-24

時間: 權威724 分享

  cisco生產(chǎn)的路由器、交換機設備和其他設備承載了全世界80%的互聯(lián)網(wǎng)通信,成為硅谷中新經(jīng)濟的傳奇,那么你知道怎么配置配置思科WS-C2950T-24嗎?下面是學習啦小編整理的一些關于怎么配置配置思科WS-C2950T-24的相關資料,供你參考。

  使用序列號簡化思科IOS的ACL修改操作的方法

  Would you like to enter the initial configuration dialog? [yes/no]: 是否按提示步驟操作

  % Please answer 'yes' or 'no'.

  Would you like to enter the initial configuration dialog? [yes/no]: n 輸入n(自己手工一點點的設置)

  Press RETURN to get started!

  Switch> 首先看到的是用戶模式

  Switch>en 輸入en(即enable)進入特權模式

  1y13w: %LINK-5-CHANGED: Interface Vlan1, changed state to administratively down

  1y13w: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to down

  Switch#conf t 進入配置模式

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

  Switch(config)#hostname xy_c2950t24_e0201 給交換機命名

  xy_c2950t24_e0201(config)#enable password Cisco 給交換機配置管理口令(明碼的)

  xy_c2950t24_e0201(config)#line vty 0 4 給交換機開啟遠程管理

  xy_c2950t24_e020(config-line)#pass Cisco! 設置遠程管理口令

  xy_c2950t24_e020(config-line)#login 允許遠程登陸

  xy_c2950t24_e020(config-line)#exit 退出到上級目錄

  xy_c2950t24_e0201(config)#int vlan 1 進入vlan1 接口

  xy_c2950t24_e0201(config-if)#no shut 開啟此接口

  1y13w: %LINK-3-UPDOWN: Interface Vlan1, changed state to up

  1y13w: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up

  xy_c2950t24_e0201(config-if)#ip add 172.25.161.22 255.255.255.0 設置此接口地址

  xy_c2950t24_e0201(config-if)#exit 退出到上一層

  xy_c2950t24_e0201(config)#ip default-gateway 172.25.161.16 將交換機的網(wǎng)關指向上聯(lián)交換機

  xy_c2950t24_e0201(config)#int ran gi 0/1 - 2 配置上連下連端口

  xy_c2950t24_(config-if-range)#sw mo tr 將此端口設置成trunk

  xy_c2950t24_(config-if-range)#no shut 開啟此端口

  xy_c2950t24_(config-if-range)#exit 退出到上一級目錄

  xy_c2950t24_e0201(config)#int ran fa 0/1 - 24 進入一段接口range一段范圍,接電腦用戶

  xy_c2950t24_(config-if-range)#no shut 開啟此段端口

  xy_c2950t24_(config-if-range)#sw mo acc 將此段端口設置成問接入access模式

  xy_c2950t24_(config-if-range)#exit 退出到上一級目錄

  (公司內(nèi)部沒有設置VLAN,所以沒有用到將此段端口劃分到某個vlan里的命令:sw acc vlan 2 )

  xy_c2950t24_e0201(config)#vtp mo cl 設置vtp(vlan transport portocol)模式為client(一般來講,匯聚和接入交換機都配置成client)

  Setting device to VTP CLIENT mode.

  xy_c2950t24_e0201(config)#vtp domain xyass 設置vtp域名(只有域名相同的情況下,vlan信息才能透傳過來)

  Domain name already set to xyass.

  xy_c2950t24_e0201(config)#end 退到根目錄

  xy_c2950t24_e0201#wr 保存配置

  4d00h: %SYS-5-CONFIG_I: Configured from console by console

  Building configuration...

  [OK] (保存好了,已經(jīng)生效)

  以上就是全部設置過程。

  以下是查看當前設備的配置:

  xy_c2950t24_e0201#show run 查看當前設備的配置(show running-config )

  Building configuration...

  Current configuration : 1880 bytes

  !

  version 12.1

  no service pad

  service timestamps debug uptime

  service timestamps log uptime

  no service password-encryption

  !

  hostname xy_c2950t24_e0201

  !

  enable password Cisco

  !

  ip subnet-zero

  !

  !

565579