0% found this document useful (0 votes)
10 views2 pages

1

The document contains configuration commands for two network switches, S1 and S2. Each switch is configured with a hostname, console and VTY line passwords, a service for password encryption, a message of the day banner, and an IP address for VLAN 1. Both switches save their configurations to startup-config after setting up their interfaces.

Uploaded by

THURGAH SHEINI
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)
10 views2 pages

1

The document contains configuration commands for two network switches, S1 and S2. Each switch is configured with a hostname, console and VTY line passwords, a service for password encryption, a message of the day banner, and an IP address for VLAN 1. Both switches save their configurations to startup-config after setting up their interfaces.

Uploaded by

THURGAH SHEINI
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/ 2

1.

PC A

Switch>enable

Swith#conf

Swith#conf term

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

Swith(config)#hostname S1

S1(config)#line console 0

S1(config-line)#password sisco

S1(config-line)#login

S1(config-line)#exit

S1(config)#line vty 0 15

S1(config-line)#password sisco

S1(config-line)#login

S1(config-line)#exit

S1(config)#service password-encryption

S1(config)#banner motd &Unathourized access is strickly Prohibited&

S1(config-if)#interface vlan 1

S1(config-if)#ip 192.168.1.1 255.255.255.0

S1(config-if)#no shutdown

S1(config)#

%LINEPROTO-5-UPDOWN: Line Protocol On Interface Vlan 1 change state to up

S1#copy running-config startup-config

Destination filename [startup-config]?

Building configuration…

[OK]

S1#

2. PC B

Switch>enable

Switch#conf term
Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#hostname S2

S2(config)#line console 0

S2(config-line)#password sisco

S2(config-line)#login

S2(config-line)#exit

S2(config)#line vty 0 15

S2(config-line)#password cisco

S2(config-line)#login

S2(config-line)#exit

S2(config)#service passwors-encryption

S2(config)#banner motd &warn Uathourized access is strickly Prohibited&

S2(config)#interface vlan 1

S2(config-if)#ip 192.168.1.2 255.255.255.0

S2(config-if)#no shutdown

%LINEPROTO-5-UPDOWN: Line Protocol On Interface Vlan 1 change state to up

S2#

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

S2#copy running-config startup-config

Destination filename [startup-config]?

Building configuration…

[OK]

S2#

You might also like