Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple router setup question -- static routes

Status
Not open for further replies.

1Drisnil

MIS
Joined
Mar 29, 2003
Messages
131
Location
US
If I have a pair of routers (1721) each having one serial interface and one FastEthernet interface, then having set up each interface, is it okay to just have one defined static route?

If I have one defined static route, then do I anything else? Is it appropriate to have helper-address, name-server, and dhcp information defined on each router?

As an example, please read and critique the below configuration (will use Class A Private address for illustrations):
!
! Router A
!
Version 12.2
service timestamps debug uptime
service timestamps log uptime
service password-encryption
!
hostname Router A
!
enable password 7 ***********
!
no ip subnet-zero
no ip domain-lookup
!
interface FastEthernet0
description router A to router B
ip address 10.0.1.1 255.255.255.0
ip helper-address 10.0.1.10
!
interface serial0
description router A to router B
ip unnumbered FastEthernet0
encapsulation ppp
!
ip classless
ip route 10.0.1.0 255.255.255.0 10.0.1.1
no ip http server



!Router B
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
service password-encryption
!
hostname Router B
!
enable password 7 ******************
!
no ip subnet-zero
no ip domain-lookup
!
interface FastEthernet0
description router B to router A
ip address 10.0.2.1 255.255.255.0
!
interface Serial0
description connected to Clarendon
ip unnumbered FastEthernet0
encapsulation ppp
!
ip classless
ip route 10.0.2.0 255.255.255.0 10.0.2.1
no ip http server

Looking forward to hearing feedback.

Thanxs in advance...

Inquiring Minds,
[sadeyes]
 
Static routes are fine but you have them backwards.

try this:

Router A:
ip route 10.0.2.0 255.255.255.0 serial0

Router B:
ip route 10.0.1.0 255.255.255.0 serial0
 
So, what your saying is that the next hop in the setting of the static route is the ip information on Serial0 interface, or the Fe0 ?

I did in fact put into place what you said in your above answer, and it appears to be working well.

Thanxs for all your help and assistance.



Inquiring Minds,
[sadeyes]
 
Basically what the ip route statement says is to get to the 10.0.2.0 network go out the serial0 (next hop) interface. If you put IP addresses on the serial interfaces instead of IP unnumbered you would use the next hop IP address instead of the interface.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top