How to Configure IP address ,Default gateway to PC ?
R2(config)#ip route 10.0.0.0 255.0.0.0 20.0.0.1
R2(config)#ip route 40.0.0.0 255.0.0.0 30.0.0.2
R1(config)#ip route 0.0.0.0 0.0.0.0 20.0.0.2
In Router R3
R3(config)#ip route 0.0.0.0 0.0.0.0 30.0.0.1
Codes: C - connected, S - static, I - IGRP, 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, E - EGP i - IS-IS, 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 20.0.0.2 to network 0.0.0.0
C 10.0.0.0/8 is directly connected, FastEthernet0/0
C 20.0.0.0/8 is directly connected, Serial2/0
S* 0.0.0.0/0 [1/0] via 20.0.0.2
is directly connected, Serial2/0
Pinging 40.0.0.10 with 32 bytes of data:
Reply from 40.0.0.10: bytes=32 time=141ms TTL=125
Reply from 40.0.0.10: bytes=32 time=187ms TTL=125
Reply from 40.0.0.10: bytes=32 time=172ms TTL=125
Reply from 40.0.0.10: bytes=32 time=125ms TTL=125
Ping statistics for 40.0.0.10:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 125ms, Maximum = 187ms, Average = 156ms
R3(config)#ip route 0.0.0.0 0.0.0.0 serial 3/0
Post a Comment
Click to see the code!
To insert emoticon you must added at least one space before the code.