0% found this document useful (0 votes)
2 views1 page

Comandos Linux

The document outlines configuration commands for a router (R1) and a switch (S1), including disabling domain lookup, setting passwords, and configuring VLANs. R1 is set up with a management interface and a default gateway, while S1 is configured with VLAN 10 and trunking settings. Additionally, it includes commands to show VLAN and interface status.

Uploaded by

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

Comandos Linux

The document outlines configuration commands for a router (R1) and a switch (S1), including disabling domain lookup, setting passwords, and configuring VLANs. R1 is set up with a management interface and a default gateway, while S1 is configured with VLAN 10 and trunking settings. Additionally, it includes commands to show VLAN and interface status.

Uploaded by

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

R1(config)# no ip domain-lookup

R1(config)# enable secret class

R1(config)# line console 0


R1(config-line)# password cisco
R1(config-line)# login

R1(config)# service password-encryption

R1(config)# banner motd $ Authorized Users Only! $

R1# clock set 15:30:00 27 Aug 2019

S1(config)# vlan 10
S1(config-vlan)# name Management

S1(config)# interface vlan 10


S1(config-if)# ip address 192.168.10.11 255.255.255.0
S1(config-if)# no shutdown
S1(config-if)# exit
S1(config)# ip default-gateway 192.168.10.1

S1(config)# interface range f0/2 - 4


S1(config-if-range)# switchport mode access
S1(config-if-range)# switchport access vlan 999
S1(config-if-range)# shutdown

S1# show vlan brief

S1(config)# interface f0/1


S1(config-if)# switchport mode trunk

S1(config-if)# switchport trunk native vlan 1000

S1(config-if)# switchport trunk allowed vlan 10,20,30,1000

S1# show interfaces trunk

R1(config)# interface g0/0/1.10


R1(config-subif)# encapsulation dot1q 10
R1(config-subif)# description Management Network
R1(config-subif)# ip address 192.168.10.1 255.255.255.0

R1# show ip interface brief

You might also like