Professional Documents
Culture Documents
Conf Intervlan Sede Huaral
Conf Intervlan Sede Huaral
////////////////////////////////////
router hural
/////////////////////////////////////
en
conf t
hostname HUAR-ROUT_PRIN
ip domain-name cisco.com
username cisco privilege 15 password cisco
crypto key generate rsa
1024
ip ssh version 2
line vty 0 15
password cisco
login local
transport input ssh
logging synchronous
exit
line console 0
password cisco
login local
logging synchronous
exit
enable password cisco
service password-encryption
configure terminal
int gi0/0/0
no sh
int gi0/0/0.30
encapsulation dot1q 30
description RED-VLAN30
ip add 192.168.30.1 255.255.255.0
no sh
int gi0/0/0.40
encapsulation dot1q 40
description RED-VLAN40
ip add 192.168.40.1 255.255.255.0
no sh
int gi0/0/1
description RED-WAN
ip add 10.10.10.2 255.255.255.252
no sh
exit
router eigrp 10
network 10.10.10.0 0.0.0.3
network 192.168.30.0 0.0.0.255
network 192.168.40.0 0.0.0.255
passive-interface gi0/0/0.30
passive-interface gi0/0/0.40
no auto-summary
ip access-list standard restriccion_red-30
permit 192.168.10.0 0.0.0.255
permit 192.168.30.0 0.0.0.255
int gi0/0/0.30
ip access-group restriccion_red-30 out
int gi0/0/0.40
ip access-group restriccion_red-40 out
exit
line vty 0 15
access-class restriccion-ssh in
exit
do wr
/////////////////////////////////////////
HURAL - SW PRINCIPAL
//////////////////////////////////////////
en
conf t
hostname HUAR-SW_PRINCIPAL
ip domain-name cisco.com
username cisco privilege 15 password cisco
crypto key generate rsa
1024
ip ssh version 2
line vty 0 15
password cisco
login local
transport input ssh
logging synchronous
exit
line console 0
password cisco
login local
logging synchronous
exit
service password-encryption
vlan 30
name vlan-30
vlan 40
name vlan_40
exit
int vlan 30
ip add 192.168.30.245 255.255.255.0
line vty 0 15
access-class restriccion-ssh in
exit
int gi0/1
switchport mode trunk
/////////////////////////////////////////
HURAL - SW ACCESO 01
//////////////////////////////////////////
en
conf t
hostname HUAR-SW_ACCESO_01
ip domain-name cisco.com
username cisco privilege 15 password cisco
crypto key generate rsa
1024
ip ssh version 2
line vty 0 15
password cisco
login local
transport input ssh
logging synchronous
exit
line console 0
password cisco
login local
logging synchronous
exit
vlan 30
name vlan-30
vlan 40
name vlan_40
exit
int vlan 30
ip add 192.168.30.246 255.255.255.0
line vty 0 15
access-class restriccion-ssh in
exit
int gi0/1
switchport mode trunk
/////////////////////////////////////////
HURAL - SW ACCESO 02
//////////////////////////////////////////
en
conf t
hostname HUAR-SW_ACCESO_02
ip domain-name cisco.com
username cisco privilege 15 password cisco
crypto key generate rsa
1024
ip ssh version 2
line vty 0 15
password cisco
login local
transport input ssh
logging synchronous
exit
line console 0
password cisco
login local
logging synchronous
exit
vlan 30
name vlan-30
vlan 40
name vlan_40
exit
int vlan 30
ip add 192.168.30.247 255.255.255.0
line vty 0 15
access-class restriccion-ssh in
exit
int gi0/1
switchport mode trunk