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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Two Cisco Routers in 2 Different LANs with one Internet connection 2

Status
Not open for further replies.

sogol

IS-IT--Management
May 7, 2007
20
IR
Hello all,

I have 2 LANs with 2 cisco routers which are connected to each other.My problem is in one LAN I have an ADSL modem and the Router itself has a valid IP,so I have Internet,I need to share this Internet between these two LANs,I have another valid IP address,but the problem is my Cisco 2600 has only one Fast Ethernet Interface which is one LAN and the Serial Interface which connected these two routers via Leased Line.
Is it possible to share the Internet between these two LANs and control the Bandwidth with Control Access Rate????

I really appreciate your advices and helps

Sogol
 
so you have siteA with an internet access.. connected to site B via T1...

i assume you have internal ip addressing on the point to point between the sites?
if so you just need to add a couple static routes to make the communication happen..


site B needs
ip route 0.0.0.0 0.0.0.0 A.A.A.A (ip of siteA serial interface)

site A will need
ip route Y.Y.Y.Y Z.Z.Z.Z B.B.B.B

so y.y.y.y z.z.z.z = the subnet address and subnet mask of the lan at siteb.. and b.b.b.b is the serial ip address of site b.


now to control the amount of bandwidth being used.. you will have to use CAR rate limiting statements or set a service policy with policing...

you could also set up some qos based on certian types of traffic to make sure they are prioritized over internet traffic...
 
Thank you Plshlpme for your fast respond.
In fact the two routers are connected to each other and the Static routes are already defined.They can see each other.My problem is I need to give Internet to the other LAN connected to the Router that does not have any Internet connection.Router A has Internet connection because it has Valid IP address,but is there any way so that I can give Router B Internet connection ,because it has not any valid IP address,The addresses are all Private IP addresses.Other question is should I use NAT for the Router B or not.If yes,how should I use NAT for Router B
so it can have Internet connection and can give it to the other LAN connected to it.

I really appreciate your help and advice.

Sogol
 
post your running configs excluding public IPs and passwords.

Also, is this how your net is configured?

Inet-->R1-->LAN1-->R1-->R2-->LAN2
 
are you natting 2nd sites ip range? on the first sites router?
 
Basically, you have an ACL for your NAT Overload.

a.a.a.a is the inside network of router A
b.b.b.b is the inside network of router B

ip nat inside source list NAT_ACL interface fe0 overload

ip access-list extended NAT_ACL
10 permit ip a.a.a.a 255.255.255.0 any
20 permit ip b.b.b.b 255.255.255.0 any
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top