Beruflich Dokumente
Kultur Dokumente
//Router Site 1
enable
configure terminal
hostname Site-1
no ip domain-lookup
enable secret class
service password-encryption
line console 0
logging synchronous
password cisco
login
line vty 0 15
password cisco
login
exit
banner motd #message-of-the-day#
exit
//configuracion de interfaces
configure terminal
interface Serial0/0/0
bandwidth 128
ip address 192.168.10.105 255.255.255.252
description Router Site 1 y HQ
clock rate 128000
no shutdown
exit
//Ruta estatica
configure terminal
ip route 0.0.0.0 0.0.0.0 s0/0/0
exit
//Configurar Router-on-a-Stick inter-Vlan
configure terminal
interface g0/0
no shutdown
exit
interface g0/0.45
encapsulation dot1Q 45
ip address 192.168.45.1 255.255.255.0
exit
interface g0/0.47
encapsulation dot1Q 47
ip address 192.168.47.1 255.255.255.0
exit
interface g0/0.101
encapsulation dot1Q 101
ip address 192.168.101.1 255.255.255.0
exit
//Configuracion OSPFv2
configure terminal
router ospf 10
router-id 1.1.1.1
network 192.168.10.104 0.0.0.3 area 0
network 192.168.45.0 0.0.0.255 area 0
network 192.168.47.0 0.0.0.255 area 0
network 192.168.101.0 0.0.0.255 area 0
passive-interface g0/0.45
passive-interface g0/0.47
passive-interface g0/0.101
exit
interface s0/0/0
bandwidth 128
ip ospf cost 7500
exit
//Configuracion DHCP
ip dhcp excluded-address 192.168.45.1 192.168.45.20
ip dhcp excluded-address 192.168.47.1 192.168.47.20
ip dhcp pool VLAN45
network 192.168.45.0 255.255.255.0
default-router 192.168.45.1
dns-server 192.168.18.100
exit
ip dhcp pool VLAN47
network 192.168.47.0 255.255.255.0
default-router 192.168.47.1
dns-server 192.168.18.100
exit
//Router HQ
enable
configure terminal
hostname HQ
no ip domain-lookup
enable secret class
service password-encryption
line console 0
logging synchronous
password cisco
login
line vty 0 15
password cisco
login
exit
banner motd #message-of-the-day#
//Configuracion de interfaces
configure terminal
interface serial0/0/0
bandwidth 128
ip address 192.168.10.106 255.255.255.252
no shutdown
exit
interface serial0/0/1
bandwidth 128
interface s0/0/0
no shutdown
exit
//Switch1 Site1-SW1
enable
configure terminal
hostname Site1-SW1
no ip domain-lookup
enable secret class
service password-encryption
line console 0
logging synchronous
password cisco
login
line vty 0 15
password cisco
login
exit
banner motd #message-of-the-day#
exit
//Configuracion de VLAN
configure terminal
vlan 45
name finance
vlan 47
name sales
vlan 101
name netadmin
exit
configure terminal
interface gi1/1
switchport mode trunk
no shutdown
exit
interface gi1/2
switchport mode trunk
no shutdown
exit
interface fa0/10
switchport mode access
switchport access vlan 45
no shutdown
exit
interface fa0/15
switchport mode access
switchport access vlan 47
no shutdown
exit
//Asignacion de Gateway e IP address
ip default-gateway 192.168.101.1
interface vlan 101
ip address 192.168.101.2 255.255.255.0
exit
//Apagar interfaces que no se usaran
int range fa0/1-9, fa0/11-14, fa0/16-24
switchport mode access
shutdown
exit
//Switch2 Site1-SW2
enable
configure terminal
hostname Site1-SW2
no ip domain-lookup
enable secret class
service password-encryption
line console 0
logging synchronous
password cisco
login
line vty 0 15
password cisco
login
exit
banner motd #message-of-the-day#
exit
//Configuracion de VLAN
configure terminal
vlan 45
name finance
exit
vlan 47
name sales
exit
vlan 101
name netadmin
exit
interface gi1/1
switchport mode trunk
no shutdown
exit
interface fa0/3
switchport mode access
switchport access vlan 45
no shutdown
exit
interface fa0/21
switchport mode access
switchport access vlan 47
no shutdown
exit
//Asignacion de Gateway e IP address
ip default-gateway 192.168.101.1
interface vlan 101