SKFREE
Troubleshooting - Routing von z lokalnej siete nefunguje uplne
mienkofax - 01.04.2012 - 09:53
Post subject: Routing von z lokalnej siete nefunguje uplne
Ahojte, mam taky problem,
schema zapojenia
http://www.upnito.sk/imggal.php?viewGallery=5d9e09059ea7647c94db2b222b652307
no a v problem spociva v tom ze z R2 sa dostanem do internetu ale napr z R1 alebo z pc sa uz nedostanem vonku zo siete a nemam sajnu preco, ale vnutorna siet mi ide riadne, treba tam este nieco nastavit ?
R1
Code: R1>enable
R1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#interface e1/0
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#
R1(config)#interface s0/0
R1(config-if)#ip address 192.168.10.1 255.255.255.252
R1(config-if)#clock rate 128000
R1(config-if)#no shutdown
R1(config-if)#do show ip route
Codes: 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
Gateway of last resort is not set
192.168.10.0/30 is subnetted, 1 subnets
C 192.168.10.0 is directly connected, Serial0/0
C 192.168.1.0/24 is directly connected, Ethernet1/0
R1(config-if)#router eigrp 100
R1(config-router)#network 192.168.10.0
R1(config-router)#network 192.168.1.0
R1#show ip route
Codes: 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
Gateway of last resort is 192.168.10.2 to network 0.0.0.0
192.168.10.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.10.0/30 is directly connected, Serial0/0
D 192.168.10.0/24 is a summary, 00:04:11, Null0
D 192.168.137.0/24 [90/2172416] via 192.168.10.2, 00:06:41, Serial0/0
C 192.168.1.0/24 is directly connected, Ethernet1/0
D*EX 0.0.0.0/0 [170/2172416] via 192.168.10.2, 00:02:53, Serial0/0
R1#
R1#ping 8.8.8.8
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 8.8.8.8, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
R2
Code:
R2>enable
R2#configure terminal
R2(config)#interface s1/0
R2(config-if)#ip address 192.168.10.2 255.255.255.252
R2(config-if)#clock rate 128000
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface f0/0
R2(config-if)#ip address 192.168.137.2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#do show ip route
Codes: 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
Gateway of last resort is not set
192.168.10.0/30 is subnetted, 1 subnets
C 192.168.10.0 is directly connected, Serial1/0
C 192.168.137.0/24 is directly connected, FastEthernet0/0
R2(config)#router eigrp 100
R2(config-router)#network 192.168.10.0
R2(config-router)#network 192.168.137.0
R2(config-router)#exit
R2(config)#ip route 0.0.0.0 0.0.0.0 137.168.137.1
R2(config)#router eigrp 100
R2(config-router)#redistribute static
R2(config)#do show ip route
Codes: 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
Gateway of last resort is 192.168.137.1 to network 0.0.0.0
192.168.10.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.10.0/30 is directly connected, Serial1/0
D 192.168.10.0/24 is a summary, 00:01:25, Null0
C 192.168.137.0/24 is directly connected, FastEthernet0/0
D 192.168.1.0/24 [90/2195456] via 192.168.10.1, 00:03:59, Serial1/0
S* 0.0.0.0/0 [1/0] via 192.168.137.1
R2#ping 8.8.8.8
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 8.8.8.8, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (5/5), round-trip min/avg/max = 24/51/68 ms
R2#
siet medzi R1 a C1 je 192.168.137.0/24 na C1 je nastavena 192.168.137.1
zelmar - 01.04.2012 - 16:13
Post subject:
R2 asi nema spδtne routy tym padom nic co vide z routrov za nim do netu on naspat nevrati lebo neviem kam...
a preco ludia ako ty kodia cisca to netusim....
sCARAB - 01.04.2012 - 16:25
Post subject:
zelmar wrote:
a preco ludia ako ty kodia cisca to netusim....
co ked sa to prave len uci a potrebuje poradit?
zelmar - 01.04.2012 - 17:13
Post subject:
sCARAB wrote:
zelmar wrote:
a preco ludia ako ty kodia cisca to netusim....
co ked sa to prave len uci a potrebuje poradit?
Aj tak , lebo take trivialne zakladne veci sa ucia v leveli minus 5....
mienkofax - 01.04.2012 - 17:22
Post subject:
a mohol by som sa opytat ako to spojazdnim? Dakujem a zacinam sa to len ucit.
zelmar - 02.04.2012 - 10:27
Post subject:
Jednoducho R2 nevie kde sa siet 192.168.1.0/24 nachdza....
Smerom von paket vylezie cez dgw jednotlivych routrov ale naspat pride paket z source ip napr. 192.168.1.5 na R2 a ten ostane ymzteny lebo nijake take rozhranie neobsluhuje (vie iba o 192.168.10.0/24 a tam to nespada) tak to jednoducho zahodi.
Po pridani routy na R2 ip route 192.168.1.0 255.255.255.0 192.168.10.1 bude vediet ze siet 192.168.1.0/24 je niekde za routrom s ip 192.168.10.1 a preto mu ho preposle.
jaj boze
Thomas - 02.04.2012 - 10:34
Post subject:
Zelmar , routu do toho subnetu na R2 mα
Code: D 192.168.1.0/24 [90/2195456] via 192.168.10.1, 00:03:59, Serial1/0
mienkofax - 02.04.2012 - 12:32
Post subject:
mate este nejaky napad?
zelmar, naschval som dal sem tie vypisy aby ste mi pomohli a nie typovali ze som nieco zle urobil i ked aj to je mozne
zelmar - 02.04.2012 - 13:05
Post subject:
Hodil si sem ciastkove info...
R4 je co?
Kde a ako sa robi natko?Robi sa pre vsetky subnety?
To ako emulujes ethernet na seriakom?
Mam pokracovat?
Proste debuguj ako by to urobil kazdy z nas...idem od gw smerom do siete a urcite neico najdes...
mienkofax - 02.04.2012 - 16:35
Post subject:
Ak myslis r4, ktory je v cloude, tak tam je len lo virtualny adapter so sietov 192.168.137.0/24 a na mojom wifi adaptere je zdielana tato lo, nat som neriesil vobec na tom som zabudol uplne
Mne nechce napriklad pingnut ani to rozhranie pri cloude(192.168.137.1)