Network Configuration: Routers and Switches
Router R1 Configuration
Hostname and Enable Secret
hostname R1
enable secret cisco
IP Domain Name
ip domain-name reprobe.cl
Crypto Key
crypto key generate rsa
2048
Username and Password
username alumno password alumno
Line VTY Configuration
line vty 0 4
transport input ssh
login local
exit
SSH Configuration
ip ssh version 2
ip ssh authentication-retries 2
ip ssh time-out 60
Interface Configuration
FastEthernet 0/0.15
interface FastEthernet 0/0.15
encapsulation dot1Q 15
ip address 172.16.0.1 255.255.192.0
!
FastEthernet 0/0.30
interface FastEthernet 0/0.30
encapsulation dot1Q 30
ip address 172.16.96.1 255.255.240.0
!
FastEthernet 0/0.45
interface FastEthernet 0/0.45
encapsulation dot1Q 45
ip address 172.16.64.1 255.255.224.0
!
FastEthernet 0/0.100
interface FastEthernet 0/0.100
encapsulation dot1Q 100
ip address 172.16.112.1 255.255.255.248
!
Serial 0/0/0
interface Serial 0/0/0
ip address 204.106.142.1 255.255.255.252
clock rate 128000
no shutdown
!
OSPF Configuration
router ospf 1
net 204.106.142.0 0.0.0.3 area 0
exit
!
Interface FastEthernet 0/0
interface FastEthernet 0/0
no shutdown
!
Line CON 0
line con 0
pass cisco
login
exit
!
Router R2 Configuration
Hostname and Enable Secret
hostname R2
enable secret cisco
IP Domain Name
ip domain-name reprobe.cl
Crypto Key
crypto key generate rsa
2048
Username and Password
username alumno password alumno
Line VTY Configuration
line vty 0 4
transport input ssh
login local
exit
SSH Configuration
ip ssh version 2
ip ssh authentication-retries 2
ip ssh time-out 60
Interface Configuration
FastEthernet 0/0
interface FastEthernet 0/0
ip address 192.168.0.1 255.255.255.0
no shutdown
!
Serial 0/0/0
interface Serial 0/0/0
ip address 204.106.142.2 255.255.255.252
clock rate 128000
no shutdown
exit
!
Serial 0/0/1
interface Serial 0/0/1
ip address 200.0.0.1 255.255.255.252
clock rate 128000
no shutdown
exit
!
OSPF Configuration
router ospf 1
network 204.106.142.0 0.0.0.3 area 0
network 200.0.0.0 0.0.0.3 area 0
network 192.168.0.0 0.0.0.255 area 0
exit
!
Static Route
ip route 172.16.112.0 255.255.255.248 204.106.142.1
!
Line CON 0
line con 0
pass cisco
login
exit
!
Router R3 Configuration
Hostname and Enable Secret
hostname R3
enable secret cisco
IP Domain Name
ip domain-name reprobe.cl
Crypto Key
crypto key generate rsa
2048
Username and Password
username alumno password alumno
Line VTY Configuration
line vty 0 4
transport input ssh
login local
exit
SSH Configuration
ip ssh version 2
ip ssh authentication-retries 2
ip ssh time-out 60
Interface Configuration
FastEthernet 0/0
interface FastEthernet 0/0
ip address 192.168.1.1 255.255.255.0
no shutdown
!
Serial 0/0/1
interface Serial 0/0/1
ip address 200.0.0.2 255.255.255.252
clock rate 128000
no shutdown
exit
!
OSPF Configuration
router ospf 1
network 200.0.0.0 0.0.0.3 area 0
network 192.168.1.0 0.0.0.255 area 0
exit
!
Default Route
ip route 0.0.0.0 0.0.0.0 200.0.0.1
!
Line CON 0
line con 0
pass cisco
login
exit
!
Switch SW1 Configuration
VLAN Configuration
vlan 15
exit
!
vlan 30
exit
!
vlan 45
exit
!
vlan 100
exit
!
VTP Configuration
vtp domain reprobe.cl
vtp version 2
vtp password reprobe
!
Interface Configuration
Access Ports
interface range fa 0/1 – 7
switchport mode access
switchport access vlan 15
exit
!
interface range fa 0/8 – 13
switchport mode access
switchport access vlan 30
exit
!
interface range fa 0/14 – 22
switchport mode access
switchport access vlan 45
exit
!
Trunk Ports
interface fa 0/24
switchport mode trunk
switchport trunk native vlan 100
exit
!
interface fa 0/23
switchport mode trunk
switchport trunk native vlan 100
exit
!
VTP Server Mode
vtp version 2
vtp domain reprobe.cl
vtp password reprobe
vtp mode server
!
VLAN 100 Interface
interface vlan 100
ip address 172.16.112.2 255.255.255.248
exit
!
Default Gateway
ip default-gateway 172.16.112.1
!
Port Security
interface fa 0/1
switchport port-security mac-address 0001.C986.98C9
switchport port-security maximum 1
switchport port-security violation protect
exit
!
Line VTY
line vty 0 15
password cisco
login
exit
!
Enable Secret
enable secret cisco
!
Switch SW2 Configuration
VLAN Configuration
vlan 15
exit
!
vlan 30
exit
!
vlan 45
exit
!
vlan 100
exit
!
VTP Configuration
vtp domain reprobe.cl
vtp version 2
vtp password reprobe
!
Interface Configuration
Access Ports
interface range fa 0/1 – 7
switchport mode access
switchport access vlan 15
exit
!
interface range fa 0/8 – 13
switchport mode access
switchport access vlan 30
exit
!
interface range fa 0/14 – 22
switchport mode access
switchport access vlan 45
exit
!
Trunk Ports
interface fa 0/24
switchport mode trunk
switchport trunk native vlan 100
exit
!
interface fa 0/23
switchport mode trunk
switchport trunk native vlan 100
exit
!
VTP Client Mode
vtp version 2
vtp domain reprobe.cl
vtp password reprobe
vtp mode client
!
VLAN 100 Interface
interface vlan 100
ip address 172.16.112.3 255.255.255.248
exit
!
Default Gateway
ip default-gateway 172.16.112.1
!
Line VTY
line vty 0 15
password cisco
login
exit
!
Enable Secret
enable secret cisco
!
Switch SW3 Configuration
VLAN Configuration
vlan 15
exit
!
vlan 30
exit
!
vlan 45
exit
!
vlan 100
exit
!
VTP Configuration
vtp domain reprobe.cl
vtp version 2
vtp password reprobe
!
Interface Configuration
Access Ports
interface range fa 0/1 – 7
switchport mode access
switchport access vlan 15
exit
!
interface range fa 0/8 – 13
switchport mode access
switchport access vlan 30
exit
!
interface range fa 0/14 – 22
switchport mode access
switchport access vlan 45
exit
!
Trunk Port
interface fa 0/24
switchport mode trunk
switchport trunk native vlan 100
exit
!
VTP Client Mode
vtp version 2
vtp domain reprobe.cl
vtp password reprobe
vtp mode client
!
VLAN 100 Interface
interface vlan 100
ip address 172.16.112.4 255.255.255.248
exit
!
Default Gateway
ip default-gateway 172.16.112.1
!
Port Security
interface fa 0/22
switchport port-security mac-address sticky
switchport port-security maximum 1
switchport port-security violation shutdown
exit
!
Line VTY
line vty 0 15
password cisco
login
exit
!
Enable Secret
enable secret cisco
!