Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -----ospf-----
- //Router:
- enable
- conf t
- router ospf xx //xx=id, musi być takie samo na wszystkich routerach
- router-id 1.1.1.1 //najczęściej R1= same jedynki, R2= same dwójki itp, itd, etc...
- clear ip ospf process //po zmianie id, trzeba to jebnąć
- //alternatywne ustawianie ID przy użyciu loopbacka:
- int loopback 0
- ip address 1.1.1.1 255.255.255.255 //tak, maska taka dziwna
- network 172.16.1.0 0.0.0.255 area 0 //odwrotność 'prawdziwej maski sieci' [maska blankietowa]
- //odwracanie maski: 255.255.255.255-'prawdziwa maska'
- network 172.16.1.1 0.0.0.0 area 0 //adres interfejsu- nie trzeba liczyć maski
- passive interface g0/0
- passive interface default //wszystkie wyłącza w trzy diabły
- auto-cost reference-bandwidth 100 //default
- //bzdury:
- show ip ospf neighbor
- show ip protocols
- show ip ospf
- show ip ospf interface brief/port
- -----rip------
- //Router:
- enable
- conf t
- router rip
- version 2
- no auto-summary
- passive-interface g0/0 //nie wysyłaj przez ten interfejs
- passive-interface default //wyłącza wszystkie w pizdu
- no passive interface s0/0 //włącza interfejs
- network 192.168.0.0 //zera zamiast maski. takie *
- ip route 0.0.0.0 0.0.0.0 s0/0/1 192.168.0.1
- //domyślna trasa statyczna- interfejs wyjściowy - adres następnego przeskoku
- ///RIPng- ipv6
- enable
- conf t
- ipv6 unicast-routing
- int g0/0
- ipv6 rip RIP-AS enable //RIP-AS= domain name
- int s0/0/0
- ipv6 rip RIP-AS enable
- no shutdown //bo mogę
- ipv6 rip domain-name default-information originate
- //informuje router, że jest on źródłem informacji o trasie domyślnej i ma propagować informację
- //o domyślnej trasie statycznej w swoich aktualizacjach RIPng, wysyłanych z tego interfejsu.
- ------vlan------
- Router: //Do routera dopieprzyć WIC-1T
- int fa 0/0 //do switcha
- no shutdown
- int fa 0/0.xx //do switcha, gdzie xx=vlan id
- encapsulation dotQ xx
- ip address 192.168.0.1 255.255.255.0
- no shutdown
- int serial 0/0
- ip address 192.168.4.1 //taki będzie default gateway na switchu
- no shutdown
- conf terminal
- ip route 0.0.0.0 0.0.0.0 serial 0/0
- interface Serial0/0 //można z gui
- clock rate 64000 //j.w.
- Switch:
- int fa 0/3 //routera
- switchport mode trunk
- no shutdown
- int fa 0/1 //komp
- switchport mode access
- switchport access vlan xx
- no shutdown
- conf terminal
- ip default-gateway 192.168.4.1
- int vlan 10
- ip address 192.168.0.2 255.255.255.0
- no shutdown
- int vlan 20
- ip address 192.168.1.2 255.255.255.0
- no shutdown
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement