# Cisco alap konfiguráció – router/switch

## Teljes alapkonfig sablon

```bash
enable
configure terminal

hostname R1

enable secret Cisco123!

service password-encryption

security passwords min-length 8

banner motd # ILLETEKTELEN BELEPES TILOS #

no ip domain-lookup

line console 0
password console123
login
logging synchronous
exit

line vty 0 4
password vty123
login
logging synchronous
exit

end
copy run start
```

## Hostname

```bash
configure terminal
hostname R1
```

## Enable jelszó

Nem titkosított:

```bash
enable password cisco
```

Titkosított, ezt használd inkább:

```bash
enable secret cisco123
```

## Összes jelszó titkosítása

```bash
service password-encryption
```

## DNS lookup tiltása

Ha elírsz egy parancsot, ne próbáljon DNS-t keresni:

```bash
no ip domain-lookup
```

## Console jelszó

```bash
line console 0
password cisco
login
logging synchronous
```

## VTY jelszó Telnethez

```bash
line vty 0 4
password cisco
login
```

## Interfész IP cím

```bash
interface GigabitEthernet0/0
description LAN kapcsolat
ip address 192.168.1.1 255.255.255.0
no shutdown
```

## Serial interfész

```bash
interface Serial0/0/0
ip address 10.0.0.1 255.255.255.252
clock rate 64000
no shutdown
```

DCE oldalon kell `clock rate`.

## Switch menedzsment IP

```bash
interface vlan 1
ip address 192.168.1.20 255.255.255.0
no shutdown
exit

ip default-gateway 192.168.1.1
```

## Ellenőrzés

```bash
show running-config
show ip interface brief
show interfaces
show protocols
show version
```
