Difference between revisions of "IOS CISCO команди"

From Ilianko
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
Смяна име
+
== Смяна име ==
 +
Router>enable
 +
Router#configure terminal
 
  Router(config)#hostname integral
 
  Router(config)#hostname integral
  
Задаване парола
+
== Задаване парола ==
  
  integral(config)#enable password cisco
+
  integral(config)#enable secret cisco
 +
 
 +
== Конфигуриране на telnet ==
 +
 
 +
integral(config)#line vty 0 4
 +
integral(config-line)#pas
 +
integral(config-line)#password class
 +
integral(config-line)#exit
 +
 
 +
==Конфигуриране на IP address ==
 +
 
 +
=== FastEthernet ===
 +
integral(config)#interface FastEthernet 0/0
 +
integral(config-if)#ip address 10.10.11.1 255.255.255.0
 +
integral(config-if)#no shutdown
 +
integral(config-if)#exit
 +
 
 +
=== Serial ===
 +
integral(config)#interface Serial 2/0
 +
integral(config-if)#ip address 10.10.10.1 255.255.255.252
 +
integral(config-if)#clock rate 2000000
 +
integral(config-if)#no shutdown
 +
integral(config-if)#exit
 +
 
 +
integral(config)#interface Serial 3/0
 +
integral(config-if)#ip address 10.10.10.5 255.255.255.252
 +
integral(config-if)#clock rate 2000000
 +
integral(config-if)#no shutdown
 +
integral(config-if)#exit
 +
 
 +
== Запазване на конфигурацията ==
 +
 
 +
integral#copy running-config startup-config
 +
 
 +
 
 +
*show ip route
 +
*route if_name 0.0.0.0 0.0.0.0 gateway_ip

Latest revision as of 21:36, 21 October 2014

Смяна име

Router>enable
Router#configure terminal
Router(config)#hostname integral

Задаване парола

integral(config)#enable secret cisco

Конфигуриране на telnet

integral(config)#line vty 0 4
integral(config-line)#pas
integral(config-line)#password class
integral(config-line)#exit

Конфигуриране на IP address

FastEthernet

integral(config)#interface FastEthernet 0/0
integral(config-if)#ip address 10.10.11.1 255.255.255.0
integral(config-if)#no shutdown 
integral(config-if)#exit

Serial

integral(config)#interface Serial 2/0
integral(config-if)#ip address 10.10.10.1 255.255.255.252
integral(config-if)#clock rate 2000000
integral(config-if)#no shutdown
integral(config-if)#exit
integral(config)#interface Serial 3/0
integral(config-if)#ip address 10.10.10.5 255.255.255.252
integral(config-if)#clock rate 2000000
integral(config-if)#no shutdown
integral(config-if)#exit

Запазване на конфигурацията

integral#copy running-config startup-config


  • show ip route
  • route if_name 0.0.0.0 0.0.0.0 gateway_ip