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 |