0% found this document useful (0 votes)
15 views

RivaldoO Lab 4

The document describes configurations made on a router (R1) and switch (S1). On R1, two interfaces were configured and enabled with IP addresses to connect to subnets A and B. SSH was enabled for secure access. The configurations were copied to startup-config. On S1, VLAN interface 1 was configured and enabled with an IP address. Inactive ports were shut down. SSH was enabled and configurations were copied to startup-config.

Uploaded by

rivaldoaries04
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)
15 views

RivaldoO Lab 4

The document describes configurations made on a router (R1) and switch (S1). On R1, two interfaces were configured and enabled with IP addresses to connect to subnets A and B. SSH was enabled for secure access. The configurations were copied to startup-config. On S1, VLAN interface 1 was configured and enabled with an IP address. Inactive ports were shut down. SSH was enabled and configurations were copied to startup-config.

Uploaded by

rivaldoaries04
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/ 9

RIVALDO ARIES PRAYOGA

XII TKJ 2

ROUTER

Press RETURN to get started!

Router>ena

Router#ex

Router con0 is now available

Press RETURN to get started.

Router>ena

Router#config t
Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#no ip domain-lookup

Router(config)#host r1

r1(config)#banner motd #unauthorized access to this device is prohibited#

r1(config)#int g0/0/0

r1(config-if)#des

r1(config-if)#description connect to subnet b

r1(config-if)#ip add 192.168.10.129 255.255.255.192

r1(config-if)#no shut

r1(config-if)#

%LINK-5-CHANGED: Interface GigabitEthernet0/0/0, changed state to up

r1(config-if)#exit

r1(config)#

r1(config)#int g0/0/1

r1(config-if)#des

r1(config-if)#description connect to subnet a

r1(config-if)#ip add 192.168.10.1 255.255.255.128

r1(config-if)#no shut

r1(config-if)#

%LINK-5-CHANGED: Interface GigabitEthernet0/0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0/1, changed state to up

r1(config-if)#exit

r1(config)#

r1(config)#enable sec

r1(config)#enable secret cisco12345

r1(config)#service pass
r1(config)#service password-encryption

r1(config)#security pass

r1(config)#security passwords min-le

r1(config)#security passwords min-length 10

r1 con0 is now available

Press RETURN to get started.

unauthorized access to this device is prohibited

r1>

r1>en

Password:

r1#conf t

Enter configuration commands, one per line. End with CNTL/Z.

r1(config)#ip domain-name smktelkom2.net

r1(config)#username netadmin secret cisco12345

r1(config)#line console 0

r1(config-line)#pass

r1(config-line)#password cisco12345

r1(config-line)#login

r1(config-line)#exit

r1(config)#

r1(config)#line vty 0 15

r1(config-line)#trans

r1(config-line)#transport input ssh

r1(config-line)#login local

r1(config-line)#exit

r1(config)#

r1(config)#cryp

r1(config)#crypto key gen

r1(config)#crypto key generate rsa

The name for the keys will be: r1.smktelkom2.net

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]:

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

r1(config)#end

*Mar 1 2:38:36.214: RSA key size needs to be at least 768 bits for ssh version 2

*Mar 1 2:38:36.214: %SSH-5-ENABLED: SSH 1.5 has been enabled

r1#

%SYS-5-CONFIG_I: Configured from console by console

r1#copy run

% Incomplete command.

r1#copy run

r1#copy running-config start

r1#copy running-config startup-config

Destination filename [startup-config]?

Building configuration...

[OK]

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

r1 con0 is now available

Press RETURN to get started.

SWITCH
s1(config)#banner motd #unauthorized access to this device is prohibited#
s1(config)#int vlan1
s1(config-if)#des
s1(config-if)#description switch subnet A
s1(config-if)#IP ADD
% Incomplete command.
s1(config-if)#ip add
s1(config-if)#ip address 192.168.10 .2 255.255.255.128
^
% Invalid input detected at '^' marker.
s1(config-if)#ip address 192.168.10.2 255.255.255.128
s1(config-if)#no shut

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

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

s1(config-if)#exit
s1(config)#
s1(config)#ip gate
s1(config)#ip default
s1(config)#ip default-gateway 192.168.10.1
s1(config)#ena secret cisco12345
s1(config)#service pass
s1(config)#service password-encryption
s1(config)#ip domain-name smktelkom2.net
s1(config)#usern
s1(config)#username netadmin secret cisco12345
s1(config)#line console 0
s1(config-line)#pass
s1(config-line)#password cisco12345
s1(config-line)#login
s1(config-line)#exit
s1(config)#line vty 0 15
s1(config-line)#trans
s1(config-line)#transport input ssh
s1(config-line)#login local
s1(config-line)#exit
s1(config)#
s1(config)#crypt
s1(config)#crypto key gener
s1(config)#crypto key generate rsa
The name for the keys will be: s1.smktelkom2.net
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]:


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

s1(config)#
*Mar 1 3:1:14.684: RSA key size needs to be at least 768 bits for ssh version 2
*Mar 1 3:1:14.684: %SSH-5-ENABLED: SSH 1.5 has been enabled
s1(config)#int rang f0/1-4, f0/7-24,g0/1-2
s1(config-if-range)#desc
s1(config-if-range)#description port yang tidak aktif
s1(config-if-range)#shut

%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to administratively down

%LINK-5-CHANGED: Interface FastEthernet0/2, changed state to administratively down

%LINK-5-CHANGED: Interface FastEthernet0/3, changed state to administratively down

%LINK-5-CHANGED: Interface FastEthernet0/4, changed state to administratively down

%LINK-5-CHANGED: Interface FastEthernet0/7, changed state to administratively down

%LINK-5-CHANGED: Interface FastEthernet0/8, changed state to administratively down

%LINK-5-CHANGED: Interface FastEthernet0/9, changed state to administratively down

%LINK-5-CHANGED: Interface FastEthernet0/10, changed state to administratively down

%LINK-5-CHANGED: Interface FastEthernet0/11, changed state to administratively down

%LINK-5-CHANGED: Interface FastEthernet0/12, changed state to administratively down

%LINK-5-CHANGED: Interface FastEthernet0/13, changed state to administratively down

%LINK-5-CHANGED: Interface FastEthernet0/14, changed state to administratively down

%LINK-5-CHANGED: Interface FastEthernet0/15, changed state to administratively down

%LINK-5-CHANGED: Interface FastEthernet0/16, changed state to administratively down

%LINK-5-CHANGED: Interface FastEthernet0/17, changed state to administratively down

%LINK-5-CHANGED: Interface FastEthernet0/18, changed state to administratively down

%LINK-5-CHANGED: Interface FastEthernet0/19, changed state to administratively down

%LINK-5-CHANGED: Interface FastEthernet0/20, changed state to administratively down

%LINK-5-CHANGED: Interface FastEthernet0/21, changed state to administratively down

%LINK-5-CHANGED: Interface FastEthernet0/22, changed state to administratively down

%LINK-5-CHANGED: Interface FastEthernet0/23, changed state to administratively down

%LINK-5-CHANGED: Interface FastEthernet0/24, changed state to administratively down

%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to administratively down


%LINK-5-CHANGED: Interface GigabitEthernet0/2, changed state to administratively down
s1(config-if-range)#
s1(config-if-range)#end
s1#
%SYS-5-CONFIG_I: Configured from console by console

s1#copy runn
s1#copy running-config start
s1#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy