Configuracoes Diego

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

enable

conf t

hostname S4
no ip domain-lookup
enable secret cisco
banner motd #SOMENTE ACESSO AUTORIZADO#

line console 0
password cisco
logging synchronous
exec-timeout 15 0
login

line vty 0 15
logging synchronous
exec-timeout 15 0
transport input ssh
login local
exit

service password-encryption

ip domain-name gerencia.com
crypto key generate rsa general-keys modulus 1024

ip ssh version 2

username gerencia privilege 15 secret cisco

ip routing

vlan 10
name RH

vlan 20
name ENGENHARIA

vlan 30
name VENDAS

vlan 40
name TI

vlan 100
name GERENCIA
exit

interface vlan 10
ip address 192.168.10.4 255.255.255.0

interface vlan 20
ip address 192.168.20.4 255.255.255.0

interface vlan 30
ip address 192.168.30.4 255.255.255.0

interface vlan 40
ip address 192.168.40.4 255.255.255.0

interface vlan 100


ip address 192.168.100.4 255.255.255.0
exit

interface range gi1/0/1-2, fa0/24


switchport mode trunk
switchport trunk allowed vlan 1,10,20,30,40,100
exit

router ospf 1
router-id 4.4.4.4
network 192.168.10.0 0.0.0.255 area 0
network 192.168.20.0 0.0.0.255 area 0
network 192.168.30.0 0.0.0.255 area 0
network 192.168.40.0 0.0.0.255 area 0
network 192.168.100.0 0.0.0.255 area 0
passive-interface gi1/0/1
passive-interface gi1/0/2
passive-interface gi1/0/3
exit

interface range gi1/0/1-3


switchport mode access
switchport access vlan 40
exit

interface vlan 100


ip address 192.168.100.8 255.255.255.0
exit

interface range fa0/2-23, gi0/2


shutdown

You might also like