顯示具有 3850 標籤的文章。 顯示所有文章
顯示具有 3850 標籤的文章。 顯示所有文章

2015年10月21日 星期三

Cisco 3850 & 3750X 回復原廠預設值

在設定都不要的情況下,又可以進入config模式
Switch>en
Switch#
Switch#wr e             
//若不想將之前設定取回而是要恢復原廠預設值時 
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]y[OK]
Erase of nvram: complete
Switch#
*Oct 20 20:21:08.637: %SYS-7-NV_BLOCK_INIT: Initialized the geometry of nvram
Switch#
Switch#
Switch#
Switch#reload                        //重新啟動 Switch
System configuration has been modified. Save? [yes/no]: no //不將舊有設定回存  
Proceed with reload? [confirm]y      //確定將 Switch 重新啟動


在沒有帳號密碼的情況下,先拔掉電源,按住Mode鍵,在插上電源,等燈號出現綠燈橫亮,console會停在password recovery的下後,放掉Mode鍵

1.先輸入flash_init
switch: flash_init
Initializing Flash…
flashfs[0]: 547 files, 19 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 32514048
flashfs[0]: Bytes used: 15487488
flashfs[0]: Bytes available: 17026560
flashfs[0]: flashfs fsck took 11 seconds.

…done Initializing Flash.

2.要先做第一步驟,第二步驟才能執行dir flash:
switch: dir flash:
Directory of flash:/

2  -rwx  564       <date>               vlan.dat
3  -rwx  1914      <date>               private-config.text
5  drwx  192       <date>               c2960-lanbasek9-mz.122-58.SE2
6  -rwx  3096      <date>               multiple-fs

7  -rwx  2289      <date>               config.text

3.刪除config.text 及 vlan.dat檔案
switch: del flash:config.text
Are you sure you want to delete “flash:config.text” (y/n)?y
File “flash:config.text” deleted

switch: del flash:vlan.dat
Are you sure you want to delete “flash:vlan.dat” (y/n)?y

File “flash:vlan.dat” deleted

4.輸入boot,讓switch重新開機

2015年10月7日 星期三

Cisco 3850 Vlan 設定

需求:
要將預設的vlan 1 IP網段為192.168.0.X/24  VLAN Interface IP設定為192.168.0.54
Port 數為1~10 Fiber Port 1~4

新增第二個VLAN 2 名稱為 Server
網段為192.168.200.X /24 VLAN 2 Interface IP 設定為192.168.200.1
Port 數為11~24

Switch>en
Switch#conf t
Switch(config)#vlan 2
Switch(config-vlan)#name server
Switch(config-vlan)#exit
Switch(config)#interface range GigabitEthernet 1/0/11-24
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 2
Switch(config-if-range)#exit
Switch(config)#interfacr vlan 2

Switch(config-vlan)# ip address 192.168.200.1 255.255.255.0

以上為新增Vlan 2, IP 及指定PORT數

Switch(config)#vlan 1
Switch(config)#interface range gigaEthernet 1/0/1-10
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 1

Switch(config-if-range)#exit
Switch(config)#interfacr range GigabitEthernet1/1/1-4
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 1

Switch(config-if-range)#exit
Switch(config)#interfacr vlan 1
Switch(config-vlan)# ip address 192.168.0.54 255.255.255.0

以上為修改Vlan 1, IP 及指定PORT數
 
Switch(config)# ip routing

以上為讓兩個網段可以互通