0% found this document useful (0 votes)
27 views5 pages

Configuracion Router y Swicth

The document configures interfaces, IP addresses, passwords, and other settings on a router and switch. It configures two Ethernet interfaces and their IPv4 and IPv6 addresses on the router. It also sets login passwords, SSH, SNMP, and other security settings on both the router and switch.

Uploaded by

Oskr Krvajal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views5 pages

Configuracion Router y Swicth

The document configures interfaces, IP addresses, passwords, and other settings on a router and switch. It configures two Ethernet interfaces and their IPv4 and IPv6 addresses on the router. It also sets login passwords, SSH, SNMP, and other security settings on both the router and switch.

Uploaded by

Oskr Krvajal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Configuracion Router

Router>ena
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface gigabitEthernet 0/0
Router(config-if)#ip address 192.168.1.158 255.255.255.240
Router(config-if)#ip address 192.168.1.126 255.255.255.224
Router(config-if)#description IT Department LAN
Router(config-if)#no shutdown

Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed


state to up

Router(config-if)#exit
Router(config)#interface gigabitEthernet 0/1
Router(config-if)#ip address 192.168.1.158 255.255.255.240
Router(config-if)#description Administration LAN
Router(config-if)#no sh

Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed


state to up

Router(config-if)#exit
Router(config)#ipv6 unicast-routing
Router(config)#interface gigabitEthernet 0/0
Router(config-if)#ipv6 address 2001:DB8:ACAD:A::1/64
Router(config-if)#ipv6 address FE80::1 link-local
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface gigabitEthernet 0/1
Router(config-if)#ipv6 address 2001:DB8:ACAD:B::1/64
Router(config-if)#ipv6 address FE80::1 link-local
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#hostname Middle
Middle(config)#enable secret class12345
Middle(config)#line console 0
Middle(config-line)#password Cisco_CCNA5
Middle(config-line)#login
Middle(config-line)#exit
Middle(config)#line vty 0 15
Middle(config-line)#password Cisco_CNNA5
Middle(config-line)#login
Middle(config-line)#exit
Middle(config)#line aux 0
Middle(config-line)#password Cisco_CCNA5
Middle(config-line)#login
Middle(config-line)#exit
Middle(config)#banner motd @Authorized Access Only@
Middle(config)#security password min-length 10
Middle(config)#service password-encryption
Middle(config)#ip domain-name Cisco_CCNA5
Middle(config)#username netadmin secret Cisco_CCNA5
Middle(config)#crypto key generate rsa
The name for the keys will be: Middle.Cisco_CCNA5
Choose the size of the key modulus in the range of 360 to 2048 for your
General Purpose Keys. Choosing a key modulus greater than 512 may take
a few minutes.

How many bits in the modulus [512]: 1024


% Generating 1024 bit RSA keys, keys will be non-exportable...[OK]

Middle(config)#line vty 0 15
*mar. 1 0:27:32.67: %SSH-5-ENABLED: SSH 1.99 has been enabled
Middle(config-line)#login local
Middle(config-line)#transport input ssh
Middle(config-line)#exit
Middle(config)#exit
Middle#
%SYS-5-CONFIG_I: Configured from console by console

Middle#copy running-config startup-config


Destination filename [startup-config]?
Building configuration...
[OK]
Middle#

Middle#copy running-config tftp


Address or name of remote host []? 192.168.1.146
Destination filename [Middle-confg]?

Writing running-config....!!
[OK - 1355 bytes]

1355 bytes copied in 3.013 secs (449 bytes/sec)


Middle#
Configuracion Swicth
Switch_2>enable
Switch_2#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch_2(config)#enable secret class12345
Switch_2(config)#service password-encryption
Switch_2(config)#no ip domain-lookup
Switch_2(config)#banner motd @Accesso solo autorizado@
Switch_2(config)#line console 0
Switch_2(config-line)#password cisco12345
Switch_2(config-line)#login
Switch_2(config-line)#logging synchronous
Switch_2(config-line)#exec-timeout 60
Switch_2(config-line)#exit
Switch_2(config)#line vty 0 15
Switch_2(config-line)#password cisco12345
Switch_2(config-line)#login
Switch_2(config-line)#logging synchronous
Switch_2(config-line)#exec-timeout 60
Switch_2(config-line)#exit
Switch_2(config)#interface vlan 1
Switch_2(config-if)#ip address 192.168.1.157 255.255.255.240
Switch_2(config-if)#no shutdown

Switch_2(config-if)#
%LINK-5-CHANGED: Interface Vlan1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up

Switch_2(config-if)#exit
Switch_2(config)#ip default-gateway 192.168.1.158
Switch_2(config)#exit
Switch_2#
%SYS-5-CONFIG_I: Configured from console by console

Switch_2#write
Building configuration...
[OK]
Switch_2#

You might also like