bio-sk:cisco-routing-statyczny
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| bio-sk:cisco-routing-statyczny [2024/11/21 15:44] – [Układ portów na routerze używanym do zajęć] jkonczak | bio-sk:cisco-routing-statyczny [2024/11/24 16:35] (current) – [Konfiguracja routerów CISCO z linii poleceń IOS] jkonczak | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| < | < | ||
| ┌────────────────────────────────────────┐ | ┌────────────────────────────────────────┐ | ||
| - | │ Cisco c921-4P | + | │ Cisco c921-4P |
| │ | │ | ||
| │ ┌──────────║─────────┐ | │ ┌──────────║─────────┐ | ||
| - | │ │ Wbudowany mostek | + | │ │ Wbudowany mostek |
| │ │ ┆ ┆ ┆ ┆ │ ┆ ┆ │ | │ │ ┆ ┆ ┆ ┆ │ ┆ ┆ │ | ||
| └──┴──║────║────║────║──┴────║──────║────┘ | └──┴──║────║────║────║──┴────║──────║────┘ | ||
| Line 21: | Line 21: | ||
| Dlatego na portach '' | Dlatego na portach '' | ||
| należy nadać na odpowiednim interfejsie '' | należy nadać na odpowiednim interfejsie '' | ||
| - | te porty są w VLANie 1, czyli żeby nadać routerowi adres IP który będzie dostępny | + | te porty są w VLANie 1, czyli żeby nadać routerowi adres IP (który będzie dostępny |
| - | z wszystkich | + | z każdego z tych portów) należy do nadać na interfejsie '' |
| Interfejsy '' | Interfejsy '' | ||
| Line 50: | Line 50: | ||
| * '' | * '' | ||
| * '' | * '' | ||
| - | * '' | + | * '' |
| * < | * < | ||
| * '' | * '' | ||
| Line 65: | Line 65: | ||
| * '' | * '' | ||
| * '' | * '' | ||
| + | |||
| + | ++++ Przykładowe wyniki poleceń | | ||
| + | < | ||
| + | <div style=" | ||
| + | Komunikat powitalny routera bez startowej konfiguracji – zawsze należy odpowiedzieć " | ||
| + | <pre> | ||
| + | --- System Configuration Dialog --- | ||
| + | |||
| + | Would you like to enter the initial configuration dialog? [yes/no]: < | ||
| + | </ | ||
| + | |||
| + | Lista i stan interfejsów: | ||
| + | <pre> | ||
| + | Router#< | ||
| + | Interface | ||
| + | GigabitEthernet0 | ||
| + | GigabitEthernet1 | ||
| + | GigabitEthernet2 | ||
| + | GigabitEthernet3 | ||
| + | GigabitEthernet4 | ||
| + | GigabitEthernet5 | ||
| + | <span style=" | ||
| + | |||
| + | Router#< | ||
| + | Interface | ||
| + | Gi0 up | ||
| + | Gi1 up | ||
| + | Gi2 down | ||
| + | Gi3 down | ||
| + | Gi4 admin down | ||
| + | Gi5 up | ||
| + | Vl1 up | ||
| + | </ | ||
| + | |||
| + | Lista i stan interfejsów wbudowanego switcha: | ||
| + | <pre> | ||
| + | Router#< | ||
| + | |||
| + | Port Name | ||
| + | Gi0 connected | ||
| + | Gi1 connected | ||
| + | Gi2 notconnect | ||
| + | Gi3 notconnect | ||
| + | |||
| + | Router#< | ||
| + | |||
| + | VLAN Name | ||
| + | ---- -------------------------------- --------- ------------------------------- | ||
| + | 1 default | ||
| + | </ | ||
| + | |||
| + | Konfiguracja wbudowanego switcha, po której będą trzy grupy portów: [Gi0] → Vlan 3, | ||
| + | [Gi1,Gi2] → Vlan 2, [Gi3] → połączenie trunk: | ||
| + | <pre> | ||
| + | Router(config)#< | ||
| + | Router(config-if)#< | ||
| + | % Access VLAN does not exist. Creating vlan 3 | ||
| + | Router(config-if)#< | ||
| + | Router(config)#< | ||
| + | Router(config-if-range)#< | ||
| + | % Access VLAN does not exist. Creating vlan 2 | ||
| + | Router(config-if-range)#< | ||
| + | Router(config)#< | ||
| + | Router(config-if)#< | ||
| + | Router(config-if)#< | ||
| + | Router#< | ||
| + | |||
| + | Port Name | ||
| + | Gi0 connected | ||
| + | Gi1 connected | ||
| + | Gi2 notconnect | ||
| + | Gi3 connected | ||
| + | |||
| + | Router#< | ||
| + | |||
| + | VLAN Name | ||
| + | ---- -------------------------------- --------- ------------------------------- | ||
| + | 1 default | ||
| + | 2 VLAN0002 | ||
| + | 3 VLAN0003 | ||
| + | |||
| + | Router#< | ||
| + | |||
| + | Port Mode | ||
| + | Gi3 | ||
| + | |||
| + | Port Vlans allowed on trunk | ||
| + | Gi3 | ||
| + | |||
| + | Port Vlans allowed and active in management domain | ||
| + | Gi3 1-3 | ||
| + | |||
| + | Port Vlans in spanning tree forwarding state and not pruned | ||
| + | Gi3 1-3 | ||
| + | </ | ||
| + | |||
| + | Konfiguracja adresów IP na portach: | ||
| + | <pre> | ||
| + | Router(config)#< | ||
| + | Router(config-if)#< | ||
| + | Router(config-if)#< | ||
| + | Router(config-if)#< | ||
| + | Router(config)#< | ||
| + | Router(config-if)#< | ||
| + | Router(config-if)#< | ||
| + | Router(config)#< | ||
| + | Router(config-if)#< | ||
| + | Router(config-if)#< | ||
| + | Router(config)# | ||
| + | Router(config-if)#< | ||
| + | |||
| + | Router#< | ||
| + | Interface | ||
| + | GigabitEthernet0 | ||
| + | GigabitEthernet1 | ||
| + | GigabitEthernet2 | ||
| + | GigabitEthernet3 | ||
| + | GigabitEthernet4 | ||
| + | GigabitEthernet5 | ||
| + | Vlan1 unassigned | ||
| + | Vlan2 192.168.2.5 | ||
| + | Vlan3 192.168.3.5 | ||
| + | </ | ||
| + | |||
| + | |||
| + | Wyświetlenie i konfiguracja trasowania: | ||
| + | <pre> | ||
| + | Router#< | ||
| + | Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP | ||
| + | D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area | ||
| + | N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 | ||
| + | E1 - OSPF external type 1, E2 - OSPF external type 2 | ||
| + | i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 | ||
| + | ia - IS-IS inter area, * - candidate default, U - per-user static route | ||
| + | o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP | ||
| + | a - application route | ||
| + | + - replicated route, % - next hop override, p - overrides from PfR | ||
| + | |||
| + | Gateway of last resort is not set | ||
| + | |||
| + | 192.168.2.0/ | ||
| + | C 192.168.2.0/ | ||
| + | L 192.168.2.5/ | ||
| + | 192.168.3.0/ | ||
| + | C 192.168.3.0/ | ||
| + | L 192.168.3.5/ | ||
| + | 192.168.5.0/ | ||
| + | C 192.168.5.0/ | ||
| + | L 192.168.5.5/ | ||
| + | |||
| + | |||
| + | Router(config)#< | ||
| + | Router(config)#< | ||
| + | Router(config)#< | ||
| + | Router(config)#< | ||
| + | |||
| + | Router#< | ||
| + | Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP | ||
| + | D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area | ||
| + | N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 | ||
| + | E1 - OSPF external type 1, E2 - OSPF external type 2 | ||
| + | i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 | ||
| + | ia - IS-IS inter area, * - candidate default, U - per-user static route | ||
| + | o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP | ||
| + | a - application route | ||
| + | + - replicated route, % - next hop override, p - overrides from PfR | ||
| + | |||
| + | Gateway of last resort is 192.168.5.254 to network 0.0.0.0 | ||
| + | |||
| + | S* 0.0.0.0/0 [1/0] via 192.168.5.254 | ||
| + | S | ||
| + | S | ||
| + | 172.31.0.0/ | ||
| + | S 172.31.3.0 [1/0] via 192.168.3.1 | ||
| + | 192.168.2.0/ | ||
| + | C 192.168.2.0/ | ||
| + | L 192.168.2.5/ | ||
| + | 192.168.3.0/ | ||
| + | C 192.168.3.0/ | ||
| + | L 192.168.3.5/ | ||
| + | 192.168.5.0/ | ||
| + | C 192.168.5.0/ | ||
| + | L 192.168.5.5/ | ||
| + | </ | ||
| + | |||
| + | Testowanie łączności: | ||
| + | <pre> | ||
| + | Router#< | ||
| + | Type escape sequence to abort. | ||
| + | Sending 5, 100-byte ICMP Echos to 172.31.3.9, timeout is 2 seconds: | ||
| + | .!!!! | ||
| + | Success rate is 80 percent (4/5), round-trip min/avg/max = 1/1/2 ms | ||
| + | |||
| + | Router#< | ||
| + | Type escape sequence to abort. | ||
| + | Tracing the route to 172.31.3.9 | ||
| + | VRF info: (vrf in name/id, vrf out name/id) | ||
| + | 1 192.168.3.1 60 msec 12 msec 20 msec | ||
| + | 2 10.56.22.100 40 msec 52 msec 28 msec | ||
| + | 3 10.153.97.3 32 msec 40 msec 40 msec | ||
| + | 4 172.31.3.9 84 msec 68 msec 72 msec | ||
| + | </ | ||
| + | |||
| + | Użycie CDP do diagnostyki: | ||
| + | <pre> | ||
| + | Router#< | ||
| + | Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge | ||
| + | S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone, | ||
| + | D - Remote, C - CVTA, M - Two-port Mac Relay | ||
| + | |||
| + | Device ID Local Intrfce | ||
| + | MojRouter | ||
| + | II_pietro | ||
| + | TenZielony | ||
| + | |||
| + | Total cdp entries displayed : 3 | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | ++++ | ||
| + | |||
| ==== [Ekstra] Symulacja routerów CISCO ==== | ==== [Ekstra] Symulacja routerów CISCO ==== | ||
bio-sk/cisco-routing-statyczny.1732203894.txt.gz · Last modified: (external edit)