Zarządzanie systemem – komendy

Transkrypt

Zarządzanie systemem – komendy
Zarządzanie systemem – komendy
•
Nazwa hosta
set system host‐name nazwa_hosta
show system host‐name
delete system host‐name
•
Nazwa domeny
set system domain‐name nazwa_domeny
show system domain‐name
delete system domain‐name nazwa_domeny
•
Brama domyślna
set system gateway‐address adres_ip
show system gateway‐address
delete system gateway‐address adres_ip
•
Serwery DNS
set system name‐server serwer_glowny
set system name‐server serwer_zapasowy
show system name‐server
delete system name‐server serwer
•
Data i czas (poziom operatora)
set date format
format może mieć następującą postać: MMDDhhmmCCYY,
MMDDhhmm,MMDDhhmmYY lub MMDDhhmmCCYY.ss.
show host date
•
Serwer NTP (poziom operatora)
set date ntp IP
show ntp
delete date ntp IP
•
Automatyczna synchronizacja z serwerem NTP
set system ntp server IP
show system ntp server
delete system ntp server IP
•
Strefa czasowa
set system time‐zone region/lokalizacja
show system time‐zone
delete system time‐zone
•
Ponowne uruchomienie system
reboot
•
Wyświetlenie historii komend
show history
•
Wyświetlenie informacji o interfejsach
show interfaces
Zarządzanie interfejsami – komendy
•
Konfiguracja interfejsu loopback – nie jest konieczna ponieważ system sam
konfiguruje interfejs
set interfaces loopback lo address IP
show interfaces loopback lo
delete interfaces loopback lo address IP
•
Wyświetlenie wszystkich interfejsów dostępnych w systemie
show interfaces system
•
Konfiguracja interfejsu Ethernet – statyczny adres
set interfaces ethernet ethx address IP – ethx np. Eth0, eth1
show interfaces ethernet ethx
delete interfaces ethernet ethx address IP
Istnieje możliwość nadanie kilku adresów jednemu interfejsowi.
•
Konfiguracja interfejsu Ethernet – DHCP
set interfaces ethernet ethx address dhcp
show interfaces ethernet ethx
delete interfaces ethernet ethx address dhcp
•
Wyłączenie interfejsu Ethernet
set interfaces ethernet ethx disable
set interfaces ethernet ethx
delete interfaces ethernet ethx disable
•
Opis interfejsu Ethernet
set interfaces ethernet ethx description descr
show interfaces ethernet ethx description
delete interfaces ethernet ethx description descr
•
Identyfikator sprzętowy interfejsu
set interfaces ethernet ethx hw‐id mac‐addr
show interfaces ethernet ethx hw‐id
delete interfaces ethernet ethx hw‐id
•
Adres MAC interfejsu
set interfaces ethernet ethx mac mac‐addr
mac
delete interfaces ethernet ethx mac
•
Przechwytywanie pakietów na konkretnym interfejsie
monitor interfaces ethernet ethx traffic
•
Wyświetlenie skrótu ze stanu interfejsu
show interfaces ethernet ethx brief
•
Identyfikacja interfejsu poprzez zapalenie diody LED
show interfaces ethernet ethx identify
•
Statystyki interfejsu
show interfaces ethernet ethx statics
Routing statyczny – komendy
•
Konfiguracja trasy statycznej
set protocols static route IP_sieci_zdalnej/maska next‐hop IP_następnego_skoku
delete protocols static route IP_sieci_zdalnej/maska
RIP - komendy
•
Wyłączenie komunikatów zdarzeń RIP
monitor protocol rip disable events
•
Wyłączenie komunikatów debugowania pakietów RIP
monitor protocol rip disable packet [recv | send ]
•
Odległość administracyjna - zmiana
set protocols rip default‐distance distance
show protocols rip default‐distance
delete protocols rip default‐distance
•
Rozgłoszenie trasy domyślnej – bardzo ważne, domyślnie RIP nie rozgłasza trasy
domyślnej
set protocols rip default‐information originate
show protocols rip default‐information originate
delete protocols rip default‐information originate
•
Rozgłoszenie sieci podłączonej bezpośrednio
set protocols rip redistribute connected
show protocols rip redistribute connected
delete protocols rip redistribute connected
•
Rozgłoszenie trasy statycznej
set protocols rip redistribute static [metric metryka]
show protocols rip redistribute static [metric]
delete protocols rip redistribute static [metric]
•
Rozgłoszenie trasy uzyskanej z protokołu OSPF
set protocols rip redistribute ospf [metric metryka]
show protocols rip redistribute ospf [metric]
delete protocols rip redistribute ospf [metric]
•
Zmiana domyślnej metryki RIP
set protocols rip default‐metric metric
show protocols rip default‐metric
delete protocols rip default‐metric
•
Funkcjonowanie RIP na interfejsie
set protocols rip interface ethx
show protocols rip interface ethx
delete protocols rip interface ethx
•
Skonfigurowanie sieci do których rozgłaszane będą informacje RIP
set protocols rip network IP/maska
show protocols rip network IP/maska
delete protocols rip network IP/maska
•
Odległość administracyjna dla sieci
set protocols rip network‐distance ipv4
show protocols rip network‐distance ipv4
delete protocols rip network‐distance ipv4
•
Interfejs pasywny
set protocols rip passive‐interface ethx
show protocols rip passive‐interface
delete protocols rip passive‐interface ethx
•
Trasa statyczna RIP
set protocols rip route ipv4
show protocols rip route
delete protocols rip route ipv4
•
Odstęp czasowy pomiędzy aktualizacjami (domyślnie 30)
set protocols rip timers update seconds
show protocols rip timers update
delete protocols rip timers update [seconds]
•
Autoryzacja RIP na interfejsie
set interfaces ethernet ethx ip rip authentication [md5 md5‐key password md5‐
password | plaintext‐password password]
delete interfaces ethernet ethx ip rip authentication [md5 md5‐key password |
plaintext‐password]
show interfaces ethernet ethx ip rip authentication [md5 md5‐key password |
plaintext‐password]
•
Podzielony horyzont [ z zatruciem wstecz ]
set interfaces ethernet ethx ip rip split‐horizon [disable | poison‐reverse]
show interfaces ethernet ethx ip rip split‐horizon
delete interfaces ethernet ethx ip rip split‐horizon [disable | poison‐reverse]
RIPng - komendy
Uruchomienie przekazywania IPv6
delete system ipv6 disable‐forwarding
Wyłączenie komunikatów zdarzeń RIPng
monitor protocol ripng disable events
Wyłączenie komunikatów debugowania pakietów RIPng
monitor protocol ripng disable packet [recv | send ]
Rozgłoszenie trasy domyślnej – bardzo ważne, domyślnie RIPng nie rozgłasza trasy
domyślnej
set protocols ripng default‐information originate
show protocols ripng default‐information originate
delete protocols ripng default‐information originate
Rozgłoszenie sieci podłączonej bezpośrednio
set protocols ripng redistribute connected
show protocols ripng redistribute connected
delete protocols ripng redistribute connected
Rozgłoszenie trasy statycznej
set protocols ripng redistribute static [metric metryka]
show protocols ripng redistribute static [metric]
delete protocols ripng redistribute static [metric]
Rozgłoszenie trasy uzyskanej z protokołu OSPFv3
set protocols ripng redistribute ospfv3 [metric metryka]
show protocols ripng redistribute ospfv3 [metric]
delete protocols ripng redistribute ospfv3 [metric]
Zmiana domyślnej metryki RIPng
set protocols ripng default‐metric metric
show protocols ripng default‐metric
delete protocols ripng default‐metric
Skonfigurowanie sieci do których rozgłaszane będą informacje RIPng
set protocols ripng network IPv6/maska
show protocols ripng network IPv6/maska
delete protocols ripng network IPv6/maska
Funkcjonowanie RIPng na interfejsie
set protocols rip interface ethx
show protocols rip interface ethx
delete protocols rip interface ethx
Interfejs pasywny
set protocols ripng passive‐interface ethx
show protocols ripng passive‐interface
delete protocols ripng passive‐interface ethx
Trasa statyczna RIPng
set protocols ripng route ipv6
show protocols ripng route
delete protocols ripng route ipv6
Odstęp czasowy pomiędzy aktualizacjami (domyślnie 30s)
set protocols ripng timers update seconds
show protocols ripng timers update
delete protocols ripng timers update [seconds]
Timeout – usunięcie trasy z tablicy jeśli nie pojawi się w aktualizacji (domyślnie
180s)
set protocols ripng timers timeout seconds
show protocols ripng timers timeout
delete protocols ripng timers timeout [seconds]
Podzielony horyzont [ z zatruciem wstecz ]
set interfaces ethernet ethx ipv6 ripng split‐horizon [disable | poison‐
reverse]
show interfaces ethernet ethx ipv6 ripng split‐horizon
delete interfaces ethernet ethx ipv6 ripng split‐horizon [disable | poison‐
reverse]
Linux i IPv6
Adres IPv6 na interfejsie
ifconfig ethx inet6 add ipv6address/prefixlength
ifconfig ethx inet6 del ipv6address/prefixlength
Brama domyślna
route ‐A inet6 add default gw 2001:0db8:0:f101::1
route ‐A inet6 del default gw 2001:0db8:0:f101::1
OSPF - komendy
Wyłączenie wiadomości zdarzeń OSPF
monitor protocol ospf disable event
Wyłączenie wiadomości LSA
monitor protocol ospf disable lsa [flooding | generate | install | refresh]
Wyłączenie wiadomości dotyczących pakietów
monitor protocol ospf disable packet all [detail | recv [detail] | send
[detail]]
Wyłączenie wiadomości dotyczących pakietów DD (Database Description)
monitor protocol ospf disable packet dd [detail | recv [detail] | send
[detail]]
Wyłączenie monitorowania pakietów hello
monitor protocol ospf disable packet hello [detail | recv [detail] | send
[detail]]
Wyłączenie monitorowania pakietów LSack
monitor protocol ospf disable packet ls‐ack [detail | recv [detail] | send
[detail]]
Wyłączenie monitorowania pakietów LS-request
monitor protocol ospf disable packet ls‐request [detail | recv [detail] | send
[detail]]
Wyłączenie monitorowania pakietów LS-update
monitor protocol ospf disable packet ls‐update [detail | recv [detail] | send
[detail]]
Uruchomienie OSPF na routerze
set protocols ospf
show protocols ospf
delete protocols ospf
Ustawienie identyfikatora OSPF
set protocols ospf parameters router‐id identyfikator
show protocols ospf parameters router‐id
delete protocols ospf parameters router‐id identyfikator
Referencyjna szerokość pasma – przedział 1 – 4294967, domyślnie 108
set protocols ospf auto‐cost reference‐bandwidth szerokosc_pasma
show protocols ospf auto‐cost reference‐bandwidth
delete protocols ospf auto‐cost reference‐bandwidth
Rozgłoszenie trasy domyślnej
set protocols ospf default‐information originate [always | metric metryka]
show protocols ospf default‐information originate [always | metryka]
delete protocols ospf default‐information originate [always | metryka]
Domyślna metryka OSPF
set protocols ospf default‐metric metryka
show protocols ospf default‐metric
delete protocols ospf default‐metric
Dystans administracyjny
set protocols ospf distance [global dystans]
show protocols ospf distance [global]
delete protocols ospf distance [global]
Definiowanie sąsiada OSPF
set protocols ospf neighbor ipv4 [priority priorytet]
show protocols ospf neighbor ipv4 [priority]
delete protocols ospf neighbor ipv4 [priority]
Skonfigurowanie sieci do których rozgłaszane będą informacje OSPF
set protocols ospf area obszar network sieć/maska
show protocols ospf area obszar network sieć/maska
delete protocols ospf area obszar network sieć/maska
Funkcjonowanie OSPF na interfejsie
set protocols rip interface ethx
show protocols rip interface ethx
delete protocols rip interface ethx
Interfejs pasywny
set protocols ospf passive‐interface [ethx]
show protocols ospf passive‐interface
delete protocols ospf passive‐interface [ethx]
Rozgłoszenie sieci podłączonej bezpośrednio
set protocols ospf redistribute connected
show protocols ospf redistribute connected
delete protocols ospf redistribute connected
Redystrybucja RIP
set protocols ospf redistribute rip [metric metryka]
show protocols ospf redistribute rip [metric]
delete protocols ospf redistribute rip [metric]
Redystrybucja tras statycznych
set protocols ospf redistribute static [metric metryka]
show protocols ospf redistribute static [metric]
delete protocols ospf redistribute static [metric]
Wyświetlenie bazy OSPF
show ip ospf database [max‐age | self‐originate | {asbr‐summary | external |
network | nssa‐external | opaque‐area | opaque‐as | opaque‐link | router |
summary}
[adv‐router <ipv4> |<ipv4> [adv‐router <ipv4> | self‐originate]]]
Szczegóły interfejsu OSPF
show ip ospf interface
Informacje o sąsiedzie OSPF
show ip ospf neighbor
Informacje o trasie OSPF
show ip ospf route
Obszar OSPF
set protocols ospf area area‐id
show protocols ospf area area‐id
delete protocols ospf area area‐id
area‐id może być wyrażone poprzez adres IP lub wartość dziesiętną.
Autoryzacja OSPF
set protocols ospf area area‐id authentication type
show protocols ospf area area‐id authentication
delete protocols ospf area area‐id authentication
type – md5 lub plaintext‐password
Autoryzacja OSPF na interfejsie
set interfaces ethernet ethx ip ospf authentication [md5 key‐id key‐id md5‐key
md5‐key | plaintext‐password password]
show interfaces ethernet ethx ip ospf authentication [md5 key‐id key‐id md5‐key
| plaintext‐password]
delete interfaces ethernet ethx ip ospf authentication [md5 key‐id key‐id md5‐
key | plaintext‐password]
Referencyjna szerokość pasma na interfejsie
set interfaces ethernet ethx ip ospf bandwidth bandwidth
show interfaces ethernet ethx ip ospf bandwidth
delete interfaces ethernet ethx ip ospf bandwidth
Domyślny koszt OSPF na interfejsie
set interfaces interface ip ospf cost cost
show interfaces interface ip ospf cost
delete interfaces interface ip ospf cost
Koszty OSPF dla wybranych przepustowości:
Typ
Koszt
56 Kbps
64 Kbps
128 Kbps
256 Kbps
512 Kbps
768 Kbps
T1 (1.544 Mbps)
E1 (2.048 Mbps)
4 Mbps Token Ring
10 Mbps Ethernet
16 Mbps Token Ring
T3 (44.736 Mbps)
100+ Mbps
1785
1562
781
390
195
130
64
48
6
10
6
2
1
Timer uznania za niedostępny
set interfaces ethernet ethx ip ospf dead‐interval interval
show interfaces ethernet ethx ip ospf dead‐interval
delete interfaces ethernet ethx ip ospf dead‐interval
Interval: 1 – 65535 [s], domyślnie 4*odstęp hello.
Odstępy pomiędzy hello
set interfaces ethernet ethx ip ospf hello‐interval interval
show interfaces ethernet ethx ip ospf hello‐interval
delete interfaces ethernet ethx ip ospf hello‐interval
Interval: 1 – 65535 [s], domyślnie 10.
Typ sieci OSPF
set interfaces ethernet ethx ip ospf network [broadcast | non‐broadcast |
point‐to‐multipoint | point‐to‐point]
show interfaces ethernet ethx ip ospf network
delete interfaces ethernet ethx ip ospf network
Priorytet interfejsu OSPF
set interfaces interface ip ospf priority priority
show interfaces interface ip ospf priority
delete interfaces interface ip ospf priority
Priority: 0 – 255, domyślnie 1.

Podobne dokumenty