Cisco Switch és Router Konfiguráció

Másold ki az alábbi konfigurációt:

enable
conf t
!
!-- Switch konfiguráció --
hostname Sw
!
clock timezone CET 1 0
clock set 12:00:00 29 Jan 2025
!
security passwords min-length 8
!
interface vlan 1
 ip address 202.11.19.253 255.255.255.0
 no shutdown
 exit
!
banner motd "Unauthorized access to this device is prohibited!"
!
ip default-gateway 202.11.19.1
ip domain-name airport.com
crypto key generate rsa general-keys modulus 1024
ip ssh version 2
!
username admin privilege 15 secret sshpass
!
line console 0
 password consolepass
 login
 exit
!
line vty 0 15
 no password cisco
 login
 transport input ssh
 privilege level 15
 login local
 exit
!
!-- Router konfiguráció --
hostname Router
!
interface GigabitEthernet0/0
 ip address 202.11.19.1 255.255.255.0
 no shutdown
 exit
!
ip dhcp excluded-address 202.11.19.1 202.11.19.10
ip dhcp pool LAN
 network 202.11.19.0 255.255.255.0
 default-router 202.11.19.1
 dns-server 8.8.8.8
 lease 7
 exit
!
end