1st day lab Basic Configs ROS DHCP Static Routing

Опубликовано: 27 Сентябрь 2026
на канале: Richard Mehok
78
0

Switch Config

SSH Version 2

enable
config t

hostname cyber_town_switch

enable secret cyber

service password-encryption

int vlan 1
ip address 200.100.10.2 255.255.255.128
no shutdown

ip default-gateway 200.100.10.1

username admin password cyber
ip domain-name cisco.com

ip ssh version 2
ip ssh authentication-retries 2
ip ssh time-out 60

line con 0
password cyber
login

line vty 0 4
login local
transport input ssh
banner motd #Warning#

crypto key generate rsa
[must use 768 1024 2048 bit encryption]

______________________________________________________________

Cyber_Town Router


enable
config t

hostname Cyber_Town

enable secret cyber

service password-encryption

int g0/0
ip address 200.100.10.1 255.255.255.248
no shutdown
description LAN

int g1/0
no shutdown
description LAN

username admin password username
ip domain-name cisco.com

ip ssh version 2
ip ssh authentication-retries 2
ip ssh time-out 60

line con 0
password cyber
login

line vty 0 4
login local
transport input ssh

banner motd #Warning#

crypto key generate rsa
[must use 768 1024 2048 bit encryption]

_________________________________________________
Switch Config

interface GigabitEthernet0/1
switchport mode trunk

interface GigabitEthernet1/1
switchport access vlan 95
switchport mode access

interface GigabitEthernet3/1
switchport access vlan 85
switchport mode access

interface GigabitEthernet4/1
switchport access vlan 75
switchport mode access

interface GigabitEthernet5/1
switchport access vlan 75
switchport mode access

interface GigabitEthernet6/1
switchport access vlan 75
switchport mode access

interface Vlan75
ip address 155.55.10.3 255.255.255.128
no shutdown

interface Vlan85
ip address 155.55.10.130 255.255.255.192
no shutdown

interface Vlan95
ip address 155.55.10.194 255.255.255.224
no shutdown

ip default-gateway 155.55.10.1

______________________________________________________________

Cyber_Town Router


enable
config t

hostname Cyber_Town_Router

int g1/0
no shutdwon

int g1/0.75
encapsulation dot1Q 75
ip address 155.55.10.1 255.255.255.128
no shutdown

int g1/0.85
encapsulation dot1Q 85
ip address 155.55.10.129 255.255.255.192
no shutdown

int g1/0.95
encapsulation dot1Q 95
ip address 155.55.10.193 255.255.255.224
no shutdown

int g0/0
ip address 200.100.10.1 255.255.255.248
no shutdown
_________________________________________________

Ryan_Town Router

hostname Ryan_Town

int g0/0
ip address 200.100.10.2 255.255.255.248
no shutdown

int g1/0
ip address 200.99.0.1 255.255.254.0
no shutdown

int g2/0
ip address 200.103.0.1 255.255.252.0
no shutdown

int g3/0
ip address 200.102.0.1 255.255.248.0
no shutdown


Cyber_Town Router

ip dhcp excluded-address 155.55.10.1 155.55.10.20

ip dhcp pool VLAN75
network 155.55.10.1 255.255.255.128
default-router 155.55.10.1
dns-server 155.55.10.126

ip dhcp excluded-address 155.55.10.129 155.55.10.140

ip dhcp pool VLAN85
network 155.55.10.128 255.255.255.192
default-router 155.55.10.129
dns-server 155.55.10.126

Cyber_Town Router

ip route 0.0.0.0 0.0.0.0 200.100.10.2

Ryan_Town

ip route 155.55.10.0 255.255.255.128 g0/0
ip route 155.55.10.128 255.255.255.192 g0/0
ip route 155.55.10.192 255.255.255.224 200.100.10.1