cisco交換機初始配置

通過串口連接好交換機和電腦,顯示如下信息:

cisco3750>
cisco3750>enable           //進入特權模式
Password: 
cisco3750#configure terminal        //進入全局配置模式
Enter configuration commands, one per line.  End with CNTL/Z.
cisco3750(config)#

cisco3750(config)#hostname cisco3750    //交換機命名
cisco3750(config)#end                       //返回上層
cisco3750#

cisco3750(config)#enable secret sss   //更改登錄密碼爲SSS

cisco3750(config)#interface vlan 101    //設置局域網vlan 101
cisco3750(config-if)#i
03:42:35: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan101, changed state to down
cisco3750(config-if)#ip address 10.46.32.254 255.255.255.0    //配置vlan地址和子網掩碼

cisco3750(config-if)#no shut      //使配置處理運行狀態

cisco3750(config)#interface gi1/0/2   //進入接口2

cisco3750#show version   //顯示版本信息

cisco3750#show interface vlan1 //顯示vlan1的相關信息

cisco3750#show running-configure //查看交換機當前的配置

cisco3750#show interface gi1/0/1   //查看端口1的配置和統計信息

cisco3750#show mac-address-table   //查看mac地址表

cisco3750#show mac-address-table aging-time  //查看mac地址表自動老化時間 

system configuration has been modified. Save? [yes/no]:
Proceed with reload? [confirm]    //重啓設備,會提示是否保存並確認

cisco3750#erase startup-config
cisco3750#erase running-config

cisco3750#reboot   //是從新啓動機器(你所有做數據都存在,不會丟失)
cisco3750#reset   //是設備恢復出廠值(就是你進行這個操作以後,你所有的配置數據全部被清除)
cisco3750#reload  //是配置完數據之後從新啓動,配置的數據就會保存在設備裏面,這種說法是錯誤的,都只是重啓設備,你在輸入reload reboot reset 這三個命令後都會提示你保存不?按y就保存並且重啓

cisco3750(config)#line vty 0 4   //配置telnet連接
cisco3750(config-line)#password   ehdfd
cisco3750(config-line)#login

cisco3750(config)#enable secret  //密碼 -> 這個密碼是進入特權模式的密碼,是一定要的
cisco3750(config)#line vty 0 4
cisco3750(config-line)password    //密碼 ->這個密碼是telnet密碼
cisco3750(config-line)login   //交換機或路由器通常支持16個虛擬終端。一般同時允許5個TELNET登錄連接,即0-4號終端。出於安全考慮,必須在設置密碼後虛擬終端才允許登錄。

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章