維護十幾年,配置交換機1分鐘輕鬆搞定,常用y的類型是cisco29系列、cisco35系列等,cisco45系列一般不出問題,所以就沒有完成測試,原理是一樣的。靠的就是下面交換機的總結文檔。
cisco35系列一般前面一般就這個模樣。
好了開始我的心法分享:
> enable ;第一次密碼爲空
# config terminal ;進入全局配置模式
(config)#hostname swa ;設置交換機名
(config)#enable secret aaa ;設置特權加密口令爲 aaa
(config)#enable password aax ;設置特權非密口令爲 aax
(config)#line console 0 ;進入控制檯口(Rs232)
(config-line)#password aa ;設置登錄口令aa
(config-line)#login ;登錄要求口令驗證
(config-line)#line vty 0 4 ;進入虛擬終端virtual tty
(config-line)#password a ;設置登錄口令a
(config-line)#login local;登錄要求口令和用戶名
(config-line)#exit ;返回上一層
(config)#username cisco secret a 登錄用戶名cisco和密碼a
上面是基本的登陸配置。
#ip routing 啓用三層路由
#interface Loopback0 配置管理地址
# ip address 10.3.0.1 255.255.255.255 管理地址
#interface Vlan1
#ip address 10.3.1.1 255.255.255.0 配置vlan 1
#no shutdown 啓用vlan1
#exit
#interface range fastEthernet 0/1 – 24 把1-24口劃爲vlan 1
#switchport mode access
#switchport access vlan 1
# no shutdown
# exit
#interface GigabitEthernet1/1 上連接端口
#no switchport
#ip address 10.3.2.1 255.255.255.252 上連接端口地址
#no shutdown
#router ospf 1 配置 ospf 進程號
#network 10.3.1.0 0.0.0.255 area 0 把10.3.1.0網段定義爲0區域
#network 10.3.0.1 0.0.0.0 area 0 激活管理地址
#network 10.3.1.1 0.0.0.255 area 0 激活vlan 1
#end
#write 保持設置