baltun
Администратор
- Сообщения
- 10.731
- Реакции
- 2.542
- Баллы
- 2.003
Установка пароля для консоли
- R1(config)#line console 0
- R1(config-line)#password cisco
- R1(config-line)#login
- R1(config)#line vty 0 4
- R1(config-line)#password cisco
- R1(config-line)#login
- router(config)#line console 0
- router(config-line)#no login
- router(config-line)#no password
- router(config)#no enable secret
- router>enable
- router#show version
- R1(config)#interface Serial0/0/0
- R1(config-if)#ip address 192.168.2.1 255.255.255.0
- router(config)#int s0/0
- router(config-if)#shutdown
- router#configure terminal
- router(config)#interface s0/0
- router(config-if)#no shutdown
- router(config-if)#clock rate 64000
- router(config)#show interfaces s0/0
- Router(config)#ip route 10.10.10.0 255.255.255.0 {ip-address | exit-interface }
- R1#show ip route
- R1#show interfaces
- R1#show ip interface brief
- Router#show cdp neighbors
- Router#show cdp neighbors detail
- Router(config)#no cdp run
- Router(config-if)#no cdp enable
- router#show controllers s0/0
- router#copy running-config startup-config
- R#copy tftp flash:
- router#copy startup-config tftp
- router#write memory
- router#copy run st
- router#write erase
- router#show startup-config
- show mac-address-table
- #mac-address-table static MAC address vlan {1-4096, ALL} interface interface-id command
- S1(config)#vlan 20
- S1(config-vlan)#name students
- S1(config)#interface vlan 20
- S1(config-if)#ip address 10.2.2.1 255.255.255.0
- S1(config-if)#no shutdown
- S1(config)#interface fa0/18
- S1(config-if)#switchport mode access
- S1(config-if)#switchport access vlan 20
- S1(config)#interface fa0/18
- или S1(config-if)#switchport mode trunk
- ли S1(config-if)#switchport mode dynamic auto
- или S1(config-if)#switchport mode dynamic desirable
- или S1(config-if)#switchport mode nonegotiate
- S1(config-if)#switchport trunk allowed vlan 18 (можно указывать диапазоны или all)
- S1(config-if)#no switchport trunk allowed vlan
- S1(config-if)#no switchport trunk native vlan
- S1(config-if)#switchport mode access
- S1(config)#interface fa0/18
- S1(config-if)#switchport mode trunk
- S1(config-if)#switchport trunk native vlan 18
- S1#show interfaces fa0/18 switchport
- или show vlan brief
- или show vlan id 20
- или show vlan name students
- или show vlan summary
- show interfaces vlan 20
- show interfaces fa0/18 switchport
- S1(config)#ip default gateway 1.2.3.4
- R1(config)#router протокол (rip, eigrp и т.д.)
- R1(config-router)#network network_number [wildcard_mask]
- R1(config-if)#bandwidth 64
- R1(config-router)#passive-interface s 0/0/0
- R1(config-router)#passive-interface default
- R1(config-router)#no passive-interface s 0/0/0