Sunday, November 13, 2005

IOS gyorstalpaló

Összefoglaltam a legfontosabb IOS parancsokat, amivel egy router konfigurálása alatt gyakrabban találkozunk:

Terminál editor:
Ctrl-A -sor elejére Ctrl-E sor végére ugrás

>
terminal history size 25 //mennyi parancsot jegyezzen meg

>
show history

# show history //Elozöleg kiadott parancsok listája

>
terminal length 2 //Hány sor után adjon --More-- Rövidítések:

show sh
enable en
ethernet e (int e0)
serial s (int s0)

BANNEREK:

#banner exec "
#banner login "
#banner motd "
(config-if)# interface e0

(config-if)# description ......akármi megjegyzés............
(config)# line vty 0 4

(config-line)# exec-timeout min sec // mennyi ido mulva lép ki

(config-line)# password xxxx

(config-line)# login
PROMPT:

(config)# prompt %h%sLine%s%n%p --> név Line 0 (%h név,%s
space,%t tab)

(config)# no promp
(config)# ip name-server 192.168.19.61 // igy már
fel tudja oldani a neveke pl. ping tpc.hu

(config)# no ip domain-lookup // így már nem fogja
keresni
Vagy a local host tábla alapján dolgozik

(config)# ip host GépNeve 172.16.20.1 // local host táblába

>
show hosts // ezeket listázza ki

# clear host GépNeve // egy bej törlése a hosttáblából

# clear host * // mind törlése


(Config)# hostname Routerneve // routerátnevezése

show run = write terminal

copy start run = configure memory

erase start = write erase

interfacek konfigurálása

(config)# interface serial0

(config-if)# ip address 192.168.254.1 255.255.255.0

(config-if)# description akármi megj.....

(config-if)# no shutdown
Viruális interfacek: Lookback,Tunnel,Dialer,Null,Bridge
Statikus routolás:

(config)# ip route hálózat mask interface/ipcim

(config)# ip route 192.168.2.0 255.255.255.0 s0/0 //hozzáadás

(config)# no ip route 192.168.2.0 255.255.255.0 s0/0 //törlés
Dinamikus routolás:

(config)# router rip // kikapcsolni: no router rip

(config-router)# network 192.168.2.0 // ezt a hálózatot hirdesse
meg

(config-router)# version 2

(config-router)# passive-interface ethernet0 // update kikapcsolva itt
(config)# router igrp 100 // ki: no router igrp 100

(config-router)# network 192.168.2.0 // ezt a hálózatot hirdesse meg

(config)# router eigrp 100 // ki: no router eigrp 100

(config-router)# network 192.168.2.0 // ezt a hálózatot hirdesse
meg


#show protocols //melyik interface muködik, melyik nem
Global values:
Internet protocol routing is enabled
Serial0/1 is administratively down, line protocol is down
Serial0/0 is administratively down, line protocol is down
FastEthernet0/1 is administratively down, line protocol is up
FastEthernet0/0 is administratively down, line protocol is down
> show controllers fastethernet 0/0 //minden beállítás,forg statisztika
> show line //console/aux beállításai 9600/...stb
> show users //kik vannak bejelentkezve
..
..
# send 5 // 5-ös usernek üzenet küldése


>show ip route //route bejegyzések listázása

0 Comments:

Post a Comment

<< Home