URL: https://www.opennet.me/cgi-bin/openforum/vsluhboard.cgi
Форум: vsluhforumID6
Нить номер: 15089
[ Назад ]

Исходное сообщение
"Cisco 2950"

Отправлено Leond , 18-Дек-07 17:20 
Здравствуйте.

Выручайте товарищи. На циске 2950 убил все старые настройки, путём нажатия кнопки Mode и восстановлением значение по умолчанию.
Создал Vlan 1:  
ip address 10.0.0.15 255.255.255.0                                  
no ip directed-broadcast                        
no ip route-cache

и пытаюсь подключиться к циске по TCP/IP. Но циска не даёт себя пинговать. Компутер с циской соединён, порт на циске горит зелёненьким, ip адресс компа 10.0.0.1 255.255.255.0
Может что-нибудь ещё надо сделать чтоб можно было подключаться по IP адресу к циске???


Содержание

Сообщения в этом обсуждении
"Cisco 2950"
Отправлено Den , 18-Дек-07 17:34 
>[оверквотинг удален]
>Создал Vlan 1:
> ip address 10.0.0.15 255.255.255.0
> no ip directed-broadcast
> no ip route-cache
>
>и пытаюсь подключиться к циске по TCP/IP. Но циска не даёт себя
>пинговать. Компутер с циской соединён, порт на циске горит зелёненьким, ip
>адресс компа 10.0.0.1 255.255.255.0
>Может что-нибудь ещё надо сделать чтоб можно было подключаться по IP адресу
>к циске???

а на порту к которуму подключен комп какой прибит access vlan ?


"Cisco 2950"
Отправлено SeRG , 19-Дек-07 07:33 
>[оверквотинг удален]
>> no ip route-cache
>>
>>и пытаюсь подключиться к циске по TCP/IP. Но циска не даёт себя
>>пинговать. Компутер с циской соединён, порт на циске горит зелёненьким, ip
>>адресс компа 10.0.0.1 255.255.255.0
>>Может что-нибудь ещё надо сделать чтоб можно было подключаться по IP адресу
>>к циске???
>
>а на порту к которуму подключен комп какой прибит access vlan ?
>

Сделай no sh vlan 1. По умолчанию он выключен.


"Cisco 2950"
Отправлено Leond , 19-Дек-07 09:00 
>[оверквотинг удален]
>>>и пытаюсь подключиться к циске по TCP/IP. Но циска не даёт себя
>>>пинговать. Компутер с циской соединён, порт на циске горит зелёненьким, ip
>>>адресс компа 10.0.0.1 255.255.255.0
>>>Может что-нибудь ещё надо сделать чтоб можно было подключаться по IP адресу
>>>к циске???
>>
>>а на порту к которуму подключен комп какой прибит access vlan ?
>>
>
>Сделай no sh vlan 1. По умолчанию он выключен.

Сделал no sh vlan 1. Непомогло.

Прибиваю Switch2950(config)#int fa0/6
         Switch2950(config-if)#sw a vlan 1
         Switch2950(config-if)#sw mode a
         Switch2950(config)#end
         Switch2950#wr
Потом делаю Switch2950#sh run int fa0/6
            Building configuration...

            Current configuration:
            !
            interface FastEthernet0/6
            end
и всё!!! Что то я не понимаю, а где вот эти строки?
            switchport access vlan 1
            switchport mode access
Они ведь тоже должны быть в конфил листе?
Может ещё что то недаёт достучаться до влана? Пакет по пингу к влану идёт а обратно нет, хотя карта показывает что 100 мбит/с подключение???


"Cisco 2950"
Отправлено Leond , 19-Дек-07 09:29 
Сделал Vlan 2

interface VLAN2              
ip address 192.168.0.222 255.255.255.0                                      
no ip directed-broadcast                        
no ip route-cache                  
shutdown

Говорю no sh vlan 2. Ноль эмоций, циска не поднимает Vlan.

Вот полный конфиг:

version 12.0            
no service pad              
service timestamps debug uptime                              
service timestamps log uptime                            
service password-encryption                          
!
hostname Switch2950                  
!
aaa new-model            
enable secret 5 $1$5kph$xChdb4WpfuJ6xumXI1adM0                                              
!
!
ip subnet-zero              
!
!
interface FastEthernet0/1                        
!
interface FastEthernet0/                      
!
interface FastEthernet0/3                        
!
interface FastEthernet0/4                        
!
interface FastEthernet0/5                        
switchport access vlan 2                        
!
interface FastEthernet0/6                        
!
interface FastEthernet0/7                        
!
interface FastEthernet0/8                        
!
interface FastEthernet0/9                        
!
interface FastEthernet0/10                          
!
interface FastEthernet0/11                          
!
interface FastEthernet0/12                          
!
interface FastEthernet0/13                          
!
interface FastEthernet0/14                          
!
interface FastEthernet0/15                          
!
interface FastEthernet0/16                          
!
interface FastEthernet0/17                          
!
interface FastEthernet0/18                          
!
interface FastEthernet0/19                          
!
interface FastEthernet0/20                          
!
interface FastEthernet0/21                          
!
interface FastEthernet0/22                          
!
interface FastEthernet0/23                          
!
interface FastEthernet0/24                          
!
interface VLAN1              
ip address 10.0.0.15 255.255.255.0                                  
no ip directed-broadcast                        
no ip route-cache                  
!
interface VLAN2              
ip address 192.168.0.222 255.255.255.0                                      
no ip directed-broadcast                        
no ip route-cache                  
shutdown        
!
no ip http server                
snmp-server engineID local 00000009020000087DEC0380                                                  
snmp-server community private RW                                
snmp-server community public RO                              
!
line con 0          
password 7 094F471A1A0A                        
transport input none
stopbits 1
line vty 0 4
password 7 094F471A1A0A
line vty 5 15
password 7 094F471A1A0A
!
end

Какая то ерунда!!!!! Ничерта непонимаю.


"Cisco 2950"
Отправлено SeRG , 19-Дек-07 09:55 
>[оверквотинг удален]
> transport input none
> stopbits 1
>line vty 0 4
> password 7 094F471A1A0A
>line vty 5 15
> password 7 094F471A1A0A
>!
>end
>
>Какая то ерунда!!!!! Ничерта непонимаю.

Попробуй удалить Vlan2. Затем
conf t
int fa0/1
speed 100
duplex full
switchport access vlan 1
spanning-tree portfast
no shutdown
exit
exit
conf t
int vlan 1
no shutdown
exit
exit
wr me
Должно получиться.


"Cisco 2950"
Отправлено Leond , 19-Дек-07 11:14 
Неполучается. не даёт привязать int fa0/1 к vlan 1.

Switch2950#sh run                
Building configuration...                        

Current configuration:                      
!
version 12.0            
no service pad              
service timestamps debug uptime                              
service timestamps log uptime                            
service password-encryption                          
!
hostname Switch2950                  
!
aaa new-model            
enable secret 5 $1$5kph$xChdb4WpfuJ6xumXI1adM0                                              
!
!
!
!
!
!
ip subnet-zero              
!
!
!
interface FastEthernet0/1                        
!
interface FastEthernet0/2                        
!
interface FastEthernet0/3                        
!
interface FastEthernet0/4                        
!
interface FastEthernet0/5                        
switchport access vlan 2                        
!
interface FastEthernet0/6                        
!
interface FastEthernet0/7                        
!
interface FastEthernet0/8                        
!
interface FastEthernet0/9                        
!
interface FastEthernet0/10                          
!
interface FastEthernet0/11                          
!
interface FastEthernet0/12                          
!
interface FastEthernet0/13                          
!
interface FastEthernet0/14                          
!
interface FastEthernet0/15                          
!
interface FastEthernet0/16                          
!
interface FastEthernet0/17                          
!
interface FastEthernet0/18                          
!
interface FastEthernet0/19                          
!
interface FastEthernet0/20                          
!
interface FastEthernet0/21                          
!
interface FastEthernet0/22                          
!
interface FastEthernet0/23                          
!
interface FastEthernet0/24                          
!
interface V          
ip address 10.0.0.15 255.255.255.0                                  
no ip directed-broadcast                        
no ip route-cache                  
!
no ip http server                
snmp-server engineID local 00000009020000087DEC0380                                                  
snmp-server community private RW                                
snmp-server community public RO                              
!
line con 0          
password 7 094F471A1A0A                        
transport input none                    
stopbits 1          

Switch2950#conf              
Configuring from terminal, memory, or network [terminal]?                                                        
Enter configuration commands, one per line.  End with CNTL/Z.                                                            
Switch2950(config)#int fa 0/1                            
Switch2950(config-if)#speed 100                              
Switch2950(config-if)#duplex full                              
Switch2950(config-if)#?                      
Interface configuration commands:                                
  arp                     Set arp type (arpa, probe, snap) or timeout                                                                    
  bandwidth               Set bandwidth informational parameter                                                              
  carrier-delay           Specify delay for interface transitions                                                                
  cdp                     CDP interface subcommands                                                  
  custom-queue-list       Assign a custom queue list to an interface                                                                    
  default                 Set a command to its defaults                                                      
  delay                   Specify interface throughput delay                                                            
  description             Interface specific description                                                        
  duplex                  Configure duplex operation.                                                    
  exit                    Exit from interface configuration mode                                                                
  fair-queue              Enable Fair Queuing on an Interface                                                            
  help                    Description of the interactive help system                                                                    
  hold-queue              Set hold queue depth                                              
  keepalive               Enable keepalive                                          
  load-interval           Specify interval for load calculation for an                                                                      
                          interface                                  
  logging                 Configure logging for interface                                                        
  loopback                Configure internal loopback on an interface                                                                    
  mac-address             Manually set interface MAC address                                                            
  max-reserved-bandwidth  Maximum Reservable Bandwidth on an Interface                                                                      
  media-type              Interface media type                                              
  mtu                     Set the interface Maximum Transmission Unit (MTU)                                                                          
  negotiation             Select Autonegotiation mode                                                    
  no                      Negate a command or set its defaults                                                              
  port                    Perform switch port configuration                                                          
  priority-group          Assign a priority group to an interface                                                                
  random-detect           Enable Weighted Random Early Detection (WRED) on an                                                                            
                          Interface                                  
  rmon                    Configure Remote Monitoring on an interface                                                                    
  service-policy          Configure QoS Service Policy                                                      
  shutdown                Shutdown the selected interface                                                        
  snmp                    Modify SNMP interface parameters                                                          
  spanning-tree           Spanning                                
  speed                   Configure speed operation.                                                    
  switchport              Set switching mode characteristics                                                            
  timeout                 Define timeout values for this interface                                                                  

Switch2950(config-if)#sw access vlan 1                                      
Switch2950(config-if)#spa ?                          
  cost           Change an interface's spanning tree path cost                                                              
  port-priority  Change an interface's spanning tree priority                                                            
  portfast       Allow a change from blocking to forwarding                                                          
  rootguard      Enforce root guard                                  
  vlan           VLAN Switch Spanning Trees                                          

Switch2950(config-if)#spa portfast                                  
%Warning: portfast enabled on FastEthernet0/1.                                              
Usually portfast should be enabled on ports connected to a single host.                                                                        
When portfast is enabled, connecting hubs, concentrators, switches, bridges,                                                                            
etc. to this interface may cause temporary spanning tree loops.                                                                
Use with CAUTION.                  
Switch2950(config-if)#no shutdown                                
Switch2950(config-if)#ex                        
00:09:12: %LINK-3-UPDOWN: Interface FastEthernet0/1, changed state to up                                                                        
00:09:12: %LINK-3-UPDOWN: Interface FastEthernet0/1, changed state t                                                                  
Switch2950(config-if)#exit                          
Switch2950(config)#exit                      
Switch2950#          
00:09:24: %SYS-5-CONFIG_I: Configured from console by console                                                            
Switch2950#conf              
Configuring from terminal, memory, or network [terminal]?                                                        
Enter configuration commands, one per line.  End with CNTL/Z.                                                            
Switch2950(config)#int vlan 1                            
Switch2950(config-if)#no shutdown                                
Switch2950(config-if)#exit                          
Switch2950(config)#exit                      
Switch2950#          
00:10:14: %SYS-5-CONFIG_I: Configured from console by console                                                            
Switch2950#wr            
Building configuration...                        
[OK]    
Switch2950#sh conf                  
Using 1389 out of 32768 bytes                            
!
version 12.0            
no service pad              
service timestamps debug uptime                              
service timestamps log uptime                            
service password-encryption                          
!
hostname Switch2950                  
!
aaa new-model            
enable secret 5 $1$5kph$xChdb4WpfuJ6xumXI1adM0                                              
!
!
!
!
!
!
ip subnet-zero              
!
!
!
interface FastEthernet0/1                        
duplex full            
speed 100          
spanning-tree portfast                      
!
interface FastEthernet0/2                        
!
interface FastEthernet0/3                        
!
interface FastEthernet0/4                        
!
interface FastEthernet0/5                        
switchport access vlan 2                        
!
interface FastEthernet0/6                        
!
interface FastEtherne                    
!
interface FastEthernet0/8                        
!
interface FastEthernet0/9                        
!
interface FastEthernet0/10                          
!
interface FastEthernet0/11                          
!
interface FastEthernet0/12                          
!
interface FastEthernet0/13                          
!
interface FastEthernet0/14                          
!
interface FastEthernet0/15                          
!
interface FastEthernet0/16                          
!
interface FastEthernet0/17                          
!
interface FastEthernet0/18                          
!
interface FastEthernet0/19                          
!
interface FastEthernet0/20                          
!
interface FastEthernet0/21                          
!
interface FastEthernet0/22                          
!
interface FastEthernet0/23                          
!
interface FastEthernet0/24                          
!
interface VLAN1              
ip address 10.0.0.15 255.255.255.0
no ip directed-broadcast
no ip route-cache
!
no ip http server
snmp-server engineID local 00000009020000087DEC0380
snmp-server community private RW
snmp-server community public RO
!
line con 0
password 7 094F471A1A0A
transport input none
stopbits 1
line vty 0 4
password 7 094F471A1A0A
line vty 5 15
password 7 094F471A1A0A
!
end


"Cisco 2950"
Отправлено andrew_l , 19-Дек-07 13:09 
Покажите:

sh vlan brief


"Cisco 2950"
Отправлено Leond , 19-Дек-07 13:41 
>Покажите:
>
>sh vlan brief

Switch2950#sh vlan brief
VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa0/1, Fa0/2, Fa0/3, Fa0/4,
                                                Fa0/5, Fa0/6, Fa0/7, Fa0/8,
                                                Fa0/9, Fa0/10, Fa0/11, Fa0/12,
                                                Fa0/13, Fa0/14, Fa0/15, Fa0/16,
                                                Fa0/17, Fa0/18, Fa0/19, Fa0/20,
                                                Fa0/21, Fa0/22, Fa0/23, Fa0/24
2    VLAN0002                         active
1002 fddi-default                     active
1003 token-ring-default               active
1004 fddinet-default                  active
1005 trnet-default                    active

Почему он циска пишет что vlan2 есть? если я его убивал спом команды, no int vlan 2


"Cisco 2950"
Отправлено serg_vlg , 19-Дек-07 13:24 
>ip default-gateway 10.0.0.1

"Cisco 2950"
Отправлено Leond , 19-Дек-07 14:11 
>>ip default-gateway 10.0.0.1

Это же для указания ip роутера.
Изначально он стоял, неработало, убрал не заработало :(


"Cisco 2950"
Отправлено serg_vlg , 19-Дек-07 17:57 
Вот рабочий конфиг:

version 12.1
no service pad
service timestamps debug uptime
service timestamps log datetime localtime
service password-encryption
!
hostname xxxxxxxxxx
!
no logging console
enable secret 5 $1$Njxz$Nw66GVDKN2GOdCnf1Jsxy1
!
username serg password 7 011D0E01175B0501715D5C0F
clock timezone MSK 3
clock summer-time MSK recurring last Sun Mar 3:00 last Sun Oct 2:00
ip subnet-zero
!
ip domain-name xxxxxxxx.ru
ip ssh time-out 120
ip ssh authentication-retries 3
!
spanning-tree mode pvst
no spanning-tree optimize bpdu transmission
spanning-tree extend system-id
!
!
!
!
interface FastEthernet0/1
description trunk
switchport mode trunk
speed 100
duplex full
!
interface FastEthernet0/2
  switchport access vlan 3
switchport mode access
load-interval 30
speed 100
duplex full
storm-control broadcast level 10.00
storm-control multicast level 10.00
storm-control unicast level 80.00
no cdp enable
!
interface FastEthernet0/4
  switchport access vlan 5
switchport mode access
load-interval 30
speed 100
duplex full
storm-control broadcast level 10.00
storm-control multicast level 10.00
storm-control unicast level 80.00
no cdp enable
!
interface FastEthernet0/5
switchport mode access
load-interval 30
speed 100
duplex full
storm-control broadcast level 10.00
storm-control multicast level 10.00
no cdp enable
!
interface FastEthernet0/6
speed 100
duplex full
interface FastEthernet0/7
speed 100
duplex full
!
interface FastEthernet0/8
speed 100
duplex full
!
interface FastEthernet0/9
speed 100
duplex full
!
interface FastEthernet0/10
switchport access vlan 2
switchport mode access
load-interval 30
storm-control broadcast level 10.00
storm-control multicast level 10.00
no cdp enable
!
interface FastEthernet0/11
switchport access vlan 2
switchport mode access
load-interval 30
speed 100
duplex full
storm-control broadcast level 10.00
storm-control multicast level 10.00
storm-control unicast level 80.00
no cdp enable
!
interface FastEthernet0/12
  switchport access vlan 2
switchport mode access
load-interval 30
speed 10
duplex half
storm-control broadcast level 10.00
storm-control multicast level 10.00
storm-control unicast level 80.00
no cdp enable
!

!
interface Vlan2
ip address 80.xx.xx.xx 255.255.255.248
no ip route-cache
!
ip default-gateway 80.xx.xx.xx
no ip http server
logging history informational
logging facility local5
logging 80.xx.xx.xx
access-list 1 permit 80.xx.xx.xx
access-list 1 permit 80.xx.xx.xx
access-list 1 permit 80.xx.xx.xx
access-list 1 permit 80.xx.xx.xx
access-list 1 permit 80.xx.xx.116 0.0.0.3
access-list 1 permit 80.xx.xx.0 0.0.0.7
access-list 2 remark tftp-server list
access-list 2 permit 80.xx.xx.xx
access-list 2 deny   any log
snmp-server community ffdfd RO 1
snmp-server community rferfe RW 2
snmp-server enable traps snmp authentication warmstart linkdown linkup coldstart
snmp-server host 80.xx.xx.xx media-ro
snmp-server tftp-server-list 2
!

line con 0
exec-timeout 15 0
password 7 ccccccccccccccccc
login
line vty 0 4
access-class 1 in
exec-timeout 15 0
password 7 cccccccccccccc
login local
transport input telnet ssh
line vty 5 15
access-class 1 in
exec-timeout 15 0
password 7 cccccccccccccccc
login local
transport input telnet ssh
!
ntp clock-period 17180302
ntp server 80.xx.xx.xx
!
end