Cisco-C2960交换机管理ip配置

     Cisco-C2960交换机  
    奇怪的现象:有许多地方像是华为的模式
 
    查看交换机的版本
    
Cisco-C2960>en
Password:
Cisco-C2960#show version
Cisco IOS Software, C2960 Software (C2960-LANBASE-M), Version 12.2(35)SE5, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2007 by Cisco Systems, Inc.
Compiled Thu 19-Jul-07 20:06 by nachen
Image text-base: 0x00003000, data-base: 0x00D40000
ROM: Bootstrap program is C2960 boot loader
BOOTLDR: C2960 Boot Loader (C2960-HBOOT-M) Version 12.2(25r)SEE1, RELEASE SOFTWARE (fc1)
ZC502-R1C4-YiMei-100M uptime is 23 hours, 49 minutes
System returned to ROM by power-on
System image file is "flash:c2960-lanbase-mz.122-35.SE5/c2960-lanbase-mz.122-35.SE5.bin"
cisco WS-C2960-24TC-L (PowerPC405) processor (revision D0) with 61440K/4088K bytes of memory.
Processor board ID FOC1150Z8DA
Last reset from power-on
3 Virtual Ethernet interfaces
24 FastEthernet interfaces
2 Gigabit Ethernet interfaces
The password-recovery mechanism is enabled.
64K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address       : 00:21:D7:8F:AB:00
Motherboard assembly number     : 73-9832-07
Power supply part number        : 341-0097-02
Motherboard serial number       : FOC12210Z8B
Power supply serial number      : DCA12208561
Model revision number           : D0
Motherboard revision number     : A0
Model number                    : WS-C2960-24TC-L
System serial number            : FOC1150Z8DA
Top Assembly Part Number        : 800-26671-03
Top Assembly Revision Number    : B0
Version ID                      : V03
CLEI Code Number                : COM3K00BRA
Hardware Board Revision Number  : 0x01

Switch   Ports  Model              SW Version              SW Image           
------   -----  -----              ----------              ----------         
*    1   26     WS-C2960-24TC-L    12.2(35)SE5             C2960-LANBASE-M    

Configuration register is 0xF
 
    奇怪的VLAN配置模式:
    从下面可以看出,此交换机支持最多4094个vlan。vlan的配置模式也跟思科的不一样
  创建vlan 4089并在此vlan设置管理ip
Cisco-C2960#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Cisco-C2960(config)#vlan ?
  WORD      ISL VLAN IDs 1-4094
  internal  internal VLAN
Cisco-C2960(config)#vlan 4089
Cisco-C2960(config-vlan)#exit 
% Failed to create VLANs 4089
Extended VLAN(s) not allowed in current VTP mode.
%Failed to commit extended VLAN(s) changes.
Cisco-C2960(config)#int vlan 4089
Cisco-C2960(config-if)#ip add 192.168.1.5 255.255.255.0
Cisco-C2960(config)#exit
   
    奇怪的VLAN信息:
    查看VLAN信息,居然没有4089VLAN的信息,明明刚才我们是可以创建并在4089VLAN上配置了管理ip
Cisco-C2960#show vlan
VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Gi0/2
110  VLAN0110                         active    Fa0/1, Fa0/3, Fa0/5, Fa0/7
                                                Fa0/9, Fa0/11, Fa0/13, Fa0/15
                                                Fa0/17, Fa0/19, Fa0/21, Fa0/23
210  VLAN0210                         active    Fa0/2, Fa0/4, Fa0/6, Fa0/8
                                                Fa0/10, Fa0/12, Fa0/14, Fa0/16
                                                Fa0/18, Fa0/20, Fa0/22
1001 VLAN1001                         active    Fa0/24
1002 fddi-default                     act/unsup
1003 token-ring-default               act/unsup
1004 fddinet-default                  act/unsup
1005 trnet-default                    act/unsup
VLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1    enet  100001     1500  -      -      -        -    -        0      0  
110  enet  100110     1500  -      -      -        -    -        0      0  
210  enet  100210     1500  -      -      -        -    -        0      0  
1001 enet  101001     1500  -      -      -        -    -        0      0  
1002 fddi  101002     1500  -      -      -        -    -        0      0  
1003 tr    101003     1500  -      -      -        -    -        0      0  
         
VLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1004 fdnet 101004     1500  -      -      -        ieee -        0      0  
1005 trnet 101005     1500  -      -      -        ibm  -        0      0  
Remote SPAN VLANs
------------------------------------------------------------------------------

Primary Secondary Type              Ports
------- --------- ----------------- ------------------------------------------
 
    最后配置网关:
Cisco-C2960(config)#ip default-gateway 192.168.1.1 
    结果这个vlan的管理ip是无法访问的。那么怎么办呢?
  问题所在就是4089这个vlan虽然我们创建了,有可能这个交换机根本就不支持4094多个vlan;但查看vlan信息却没有查到此vlan的信息。于是删除配置在vlan 4089上的ip和删除vlan 4089,后重新创建小于1005的vlan配置管理ip就行了
 

本文出自 “联通IDC” 博客,谢绝转载!

你可能感兴趣的:(配置,Cisco,交换机,C2960,管理ip)