60 lines
1.6 KiB
Plaintext
60 lines
1.6 KiB
Plaintext
IOS alapok
|
|
|
|
1941 router (soros kábellel van bekötve) (ctrl + shift + 6 - parancs törlés)
|
|
|
|
- Felhasználói mód (user exec)
|
|
Router> enable (2. config módba lépés)
|
|
|
|
- Privilegizált mód (priviliged exec)
|
|
Router# -> lekérdező parancsok
|
|
tesztelő parancsok (show parancsok)
|
|
konfigurációk mentése (copy running-config startup-config)
|
|
|
|
- Globális fonfigurációs mód
|
|
Router(config)#
|
|
|
|
exit - visszalépés
|
|
do config kényszerítés
|
|
|
|
1941 router setup:
|
|
1. hostname -name
|
|
2. service password-encryption (jelszó titkosítás)
|
|
3. banner motd # -banner_text #
|
|
4. enable secret -password (ena jelszavazása)
|
|
5. line console 0 (konzolvonalba lépés)
|
|
6. password -psw
|
|
7. login
|
|
8. exec-timeout 0 0 (perc mp)
|
|
9. line vty 0 15 (0-15) (távoli hozzáférés)
|
|
10. psw -psw
|
|
11. login
|
|
12. exec-timeout 1 00
|
|
13. interface gi0/0 (port a routerből)
|
|
14. ipaddress -ip -subnet (192.168.66.1) (255.255.255.0)
|
|
15. no shutdown (port felkapcsolása)
|
|
16. do copy run start (config mentés)
|
|
17 do show run (tesztelés)
|
|
18. security passwords min-length -num
|
|
19. no ip domain-lookup
|
|
|
|
Otthoni hálózat: 0-255
|
|
Hálózazti cím: .0
|
|
Szórási cím: .255
|
|
Kiosztható címek: .1-.254
|
|
|
|
router ssh:
|
|
1. ip domain-name -name
|
|
2. username -username privilege secret -password 15 (0-15 jogosultsagi fokozatok 15 a legnagyobb)
|
|
3. crypto key generate rsa -> 1024 bit
|
|
4. ip ssh version 2
|
|
5. line vty 0 15
|
|
6. login local
|
|
7. transport input
|
|
|
|
DHCP setup:
|
|
1. ip dhcp pool -name
|
|
2. network -networkip -mask
|
|
3. default-router -routerip
|
|
4. dns-server -serverip (8.8.8.8)
|
|
5. ip dhcp excluded-address -startip -endip
|