cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1460
Views
5
Helpful
17
Replies

Basic Routing. Trying to learn. Need help.

Chris Mickle
Level 1
Level 1

I just bought a Cisco study lab in order to try to further teach myself about routing and switching on Cisco devices. I have been doing some reading and decided that I would design and build my own topology using the equipment I purchased. I have (2) 1721 routers, (2) 2610XM routers, (1) 2811 router and (3) 2960 switches. I decided that for my first project, I would try to use the routers to simulate two different LANs connected to their ISPs which were connected to the real internet. My topology is as follows...

 

 

Please forgive the crudeness of the above diagram. Hopefully it is clear what I'm trying to do. The two 1721s that are acting as the "internet gateways" are running DHCP on their Ethernet interfaces and NAT. All routers are running RIP V1. Everything seems to work as it's supposed to except that the 2811 is supposed to provide access to the real internet via my LAN and it does not. I can ping each computer from the other and I can ping all the interface IPs on each router from both PCs and from all the other routers. I can ping all the way to IP address 192.168.0.200 which is the IP of F0/0 on the 2811 that is connected to my LAN. From the 2811, I can ping 192.168.0.1 which is my LAN firewall's inside interface. I worked on it for several hours yesterday and I have just run out of ideas. I know that I am missing something, I'm just not sure what it is.

 

Any help would be much appreciated.

1 Accepted Solution

Accepted Solutions

Chris

 

It is interesting that the firewall is a PIX that you configured. In that case it is possible to have the PIX do the address translation for all of the inside addresses and not need the 2811 to do it. And depending on how you configured the PIX it may be that it is already set up to translate all of the inside addresses, in which case all the PIX needs are routes to the subnets in your LAB environment.

 

It should be possible to set up a point to point serial, though it may not function with all the attributes of a carrier circuit. You are quite right that there are no serial cards for the PIX so the serial connection will need to be from the 2811.

 

I do not believe that it is possible to configure a HSRP virtual interface and have it learn its IP address using DHCP. So another interface on the 2811 will be needed.

 

Yes I believe that some NAT will be involved to map the address used through the serial connection to the address that is routable on the Internet.

 

The serial interfaces will need some clock source and it seems reasonable to have the 2811 do this. The clocking is usually supplied on the interface that is treated as DCE and the error message you are getting indicates that the 2811 does not think that its interface is DCE. And thinking of the interfaces brings up the question of how you are connecting them. I assume that these interfaces take RJ45 connectors? And probably you have used regular Ethernet cable to connect them? The pin outs for serial T1 are different from the pin outs for Ethernet and so you really should get a cable with the serial pin outs.

 

The clock rate and the bandwidth for the serial connection is kind of interesting and is a surprise to many people who are just getting acquainted with serial connections. The answer is actually pretty simple. The clock rate determines the speed of the connection (or how quickly a given amount of data can be transmitted). Many beginners intuitively believe that bandwidth controls the speed of the interface. But that is not the case. The Bandwidth configuration of the interface is descriptive of the operation of the interface but does not have any real effect on the speed of the interface. The bandwidth command is there mostly for any software running on the router that wants to know how fast the interface is running (for example for EIGRP which uses bandwidth as part of its metric calculation, or OSPF which also uses bandwidth in its calculation of cost.

 

I believe that what you describe can be done. Whether there is a better way depends in part on how you define your objectives, and depends in part on how you would evaluate the alternatives. If your objective is to gain experience with using serial point to point then I am not sure that there is any better. If your objective is to emulate a carrier environment then it comes up a bit short. You do not have external clocking which you would get with a true carrier, and you do not have a monitoring service checking on the performance of the serial link which you would with a true carrier, you do not have someone to call if there is a cable cut which you would with a true carrier, you will not receive periodic reports of the performance of the link which you might get from a true carrier.

 

As a project for a beginner in networking I believe that it has merit and I encourage you to undertake it.

 

HTH

 

Rick  

HTH

Rick

View solution in original post

17 Replies 17

johnd2310
Level 8
Level 8

Hi,

Is the NAT on your Internet firewall configured correctly for the 192.168.10.0/24 and 192.168.20.0/24 networks?

Does the Internet firewall know how to get back to the 192.168.10.0/24 and 192.168.20.0/24 networks?

Thanks

John

**Please rate posts you find helpful**

Why would my LAN firewall have to be aware of 192.168.10.0/24 and 192.168.20.0/24? Wouldn't the source address for internet traffic from PC1 and PC2 ultimately be 192.168.0.200 when it reached the firewall?

 

Hi,

If the 2811 router (R5) is doing NAT.

 

Thanks

John

**Please rate posts you find helpful**

It is not doing NAT. I was trying to set static routes between R3,R4 and R5

Chris

All your addressing is 192.168.x.x which doesn't route on the internet.

The reason (I assume) John asked if your firewall knew how to get back to 192.168.10.x and 192.168.20.x was because you said your 1721s were doing NAT so the source IPs would not be 192.168.100.x or 192.168.200.x.

Basically none of your 192.168.x.x IPs route on the internet so whatever IPs they appear as to the firewall it needs to be setup to NAT those to a public IP and it also needs to know how to get back to those subnets.

Jon

Oh I see! Thanks for the help. Remember I'm still at the very beginning of trying to learn.

 

Let me see if I understand... so in this topology, R5 would also have to perform NAT translations to a 192.168.0.0/24 address on my LAN in order for the PCs to access the internet because the source address of those computers would be on the 192.168.10.0 and 192.168.20.0 networks hence unable to use 192.168.0.1 as a gateway to the internet. That explains why the PCs can ping and tracert all the way to F0/0 on R5, but not to the next hop.

Thanks again guys!

Chris

 

It sounds like you got the right understanding. And have learned an important lesson about routing and about the need to translate addresses. It is likely that your firewall is configured to do address translation as your traffic goes out to the Internet. But this firewall knows only 192.168.0.0/24 on the inside. So your R5 needs to translate the addresses from your lab setup so that the firewall recognizes them and will translate them. Note that if you have access to make changes on the firewall you might be able to configure the firewall to translate for 192.168.100.0 and 192.168.200.0 and not need R5 to do address translation. (That is another important lesson that in networking there frequently is more than one way to achieve what you want if you carefully consider the possibilities)

 

Good luck as you continue to learn about networking.

 

HTH

 

Rick

HTH

Rick

Yes, I do have access to the firewall. It is a PIX 525 that I configured myself.

 

That brings up another question actually... I had a thought the other day of setting up a simulated T1 for my lab that would have access to the real internet. Let me give a brief description of my production LAN environment and then my idea and hopefully I can get some feedback.

 

I have AT&T U-verse service with a /29 pubic IP. The AT&T RG is connected via fastethernet to a 2811. Because of an ARP limitation on the RG that allows only one public IP to be assigned per MAC address, I am using HSRP on the WAN interface of the 2811 to provide 4 virtual and 1 physical interface to the RG each of which is statically configured with an IP address in the public block. The 2811 is then NATing the public IPs to addresses in a 10.0.0.0/29 network on the LAN interface. The LAN interface is connected via fastethernet to the outside interface of a PIX 525 which has 6 physical interfaces. The PIX is then NATing 10 10.0.0.0/29 addresses into a single IP address that is routed to each inside physical interface. The end result is that I have 5 physical inside LANs each of which uses one of my available Public IPs. The first three physical LANs are used to host services in my production environment with the last two being available for testing purposes. I hope that my description was good enough to provide a clear picture of my existing topology.

 

My idea is as follows... Since I want to have a simulated T1, I will need to use a serial interface to connect my LAB. To the best of my (limited) knowledge, there are no serial interface cards available that I can add to the PIX so the serial interface would have to be physically installed in the 2811. In addition to the /29 IP address, the AT&T RG also has a DHCP provided public IP available for use. In other words... if I plug a computer directly in to the RG, it's DHCP server will assign a NATed private IP with a route to the DHCP assigned public IP. What I am envisioning is using that DHCP provided public IP as a gateway to the internet for my LAB. The RG does have an IP passthrough mode, but it only works with the DHCP provided public IP. This, of corse, depends on several factors and brings up several questions...

 

1. Since the RG will only provide a route to the desired IP address via DHCP, can a virtual interface created via HSRP be configured to obtain an IP address via DHCP or will this require the installation of a third physical fastethernet interface in the 2811?

 

2. Once physical connectivity is established, I assume NAT would be required to translate the "public" IP configured on the serial interface of the 2811 to the real public IP that is routable on the internet.

 

3. Since the goal is to emulate as closely as possible a carrier provided T1 (which is a point to point link I think), the serial interface obtained for the 2811 should be the clock provider(?) for the circuit. I have a 2811 with two WIC 1 DSU-T1 V2 interfaces in my LAB. When those interfaces are connected to WIC 1 DSU-T1 interfaces in one of the 2610XM routers in my lab and I try to set the clock rate, the 2811 says "this command only applies to DCE interfaces." The link still works between the two, but without having to sat a clock rate. I guess the WIC 1 DSU-T1 V2 can automatically set the clock rate in a point to point serial link? Also, what would be the appropriate module to obtain for my production LAN 2811 to accomplish the goal?

 

4. Can someone pleased explain the clock rate and bandwidth settings for serial interfaces? I understand that a point to point serial link requires a clock that both interfaces can operate on in order to establish connectivity. I also understand what bandwidth is. My question is what is the significance of a particular clock rate setting and how does it relate to bandwidth if at all? For instance, what is the difference between or effect of setting the clock rate to 64000 and/or 128000? Does this setting have anything to do with the bandwidth setting? Is there an appropriate clock rate based on type of interface or a particular bandwidth setting? It seems to me that the bandwidth setting is optional. What happens if you don't set it?

 

5. Lastly, can what I have described even be done and is there a better way?

 

Sorry for the long post and thanks again for all the help!

Chris

 

It is interesting that the firewall is a PIX that you configured. In that case it is possible to have the PIX do the address translation for all of the inside addresses and not need the 2811 to do it. And depending on how you configured the PIX it may be that it is already set up to translate all of the inside addresses, in which case all the PIX needs are routes to the subnets in your LAB environment.

 

It should be possible to set up a point to point serial, though it may not function with all the attributes of a carrier circuit. You are quite right that there are no serial cards for the PIX so the serial connection will need to be from the 2811.

 

I do not believe that it is possible to configure a HSRP virtual interface and have it learn its IP address using DHCP. So another interface on the 2811 will be needed.

 

Yes I believe that some NAT will be involved to map the address used through the serial connection to the address that is routable on the Internet.

 

The serial interfaces will need some clock source and it seems reasonable to have the 2811 do this. The clocking is usually supplied on the interface that is treated as DCE and the error message you are getting indicates that the 2811 does not think that its interface is DCE. And thinking of the interfaces brings up the question of how you are connecting them. I assume that these interfaces take RJ45 connectors? And probably you have used regular Ethernet cable to connect them? The pin outs for serial T1 are different from the pin outs for Ethernet and so you really should get a cable with the serial pin outs.

 

The clock rate and the bandwidth for the serial connection is kind of interesting and is a surprise to many people who are just getting acquainted with serial connections. The answer is actually pretty simple. The clock rate determines the speed of the connection (or how quickly a given amount of data can be transmitted). Many beginners intuitively believe that bandwidth controls the speed of the interface. But that is not the case. The Bandwidth configuration of the interface is descriptive of the operation of the interface but does not have any real effect on the speed of the interface. The bandwidth command is there mostly for any software running on the router that wants to know how fast the interface is running (for example for EIGRP which uses bandwidth as part of its metric calculation, or OSPF which also uses bandwidth in its calculation of cost.

 

I believe that what you describe can be done. Whether there is a better way depends in part on how you define your objectives, and depends in part on how you would evaluate the alternatives. If your objective is to gain experience with using serial point to point then I am not sure that there is any better. If your objective is to emulate a carrier environment then it comes up a bit short. You do not have external clocking which you would get with a true carrier, and you do not have a monitoring service checking on the performance of the serial link which you would with a true carrier, you do not have someone to call if there is a cable cut which you would with a true carrier, you will not receive periodic reports of the performance of the link which you might get from a true carrier.

 

As a project for a beginner in networking I believe that it has merit and I encourage you to undertake it.

 

HTH

 

Rick  

HTH

Rick

Thanks for the reply Rick,

 

I have had the PIX and the 2811 in my production environment for a couple of years now so that is where most of my limited experience comes from. I had a lot of help in the beginning from people on this forum setting them up initially. As a result of that experience, I have acquired bits and pieces of knowledge here and there, but the complete picture still eludes me. I have wanted to further my knowledge in this area for a long time, but since the only equipment I had was in a production environment, I pretty much had to get it working and then leave it alone. That is why I decided to purchase the LAB hardware.

I believe you are right about not being able to configure DHCP on a virtual interface using HSRP. I read through some info on HSRP on the Cisco site and was unable to find anything related to DHCP. I had the idea of just setting another virtual interface using an IP address on 192.168.1.0/24 which is the LAN network of the AT&T RG, but when I did that the router responded with a warning that the IP was not on the same subnet. After thinking about it, it makes sense that the virtual interfaces setup using HSRP would have to be in the same subnet as the IP of the physical interface. I also tried configuring a secondary IP on physical interface. It was picked up by the RG and appeared to work, but of corse had the same MAC address as the physical interface.

Another physical fast Ethernet interface will defiantly be required for the 2811.

You are correct that the serial interfaces have RJ45 connectors, but I am aware that they require a cable with a serial pinout and am using said cables. My lab actually came with 4 of them and I have been able to successfully connect serial interfaces using them.

Thanks for clearing up the clock rate/bandwidth command concept. I was under the impression (as are others when they initially get started apparently) that bandwidth was to control the data rate. It now makes sense to me. I suppose another application that may use the bandwidth value would be QoS is implemented? So now that I understand that the clock rate is the speed of the interface, is it appropriate to assign any desired speed that is supported by both interfaces or are there other considerations?

I think my main objective here is to provide, as much as possible, a carrier-like T1 with real access to the internet for the purpose of gaining experience with serial point to point links.

 

I just thought of another possible solution that I think would accomplish the same goal...

 

What if instead of fooling around with the AT&T RG (which is a pain), what if I were to use say my last usable IP from my /29 address block?

The way I'm envisioning this to add a serial interface to the 2811 and use the existing virtual interfaces and NAT structure to route traffic to and from the serial interface.

My current 2811 config below to hopefully clarify my thoughts...

 

R1#sh run
Building configuration...

Current configuration : 1640 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
enable secret 5
!
no aaa new-model
!
resource policy
!
clock timezone EST -5
clock summer-time EDT recurring
ip subnet-zero
!
!
ip cef
!
!
ip domain name
!
username router privilege 15 secret 5
!
!
!
interface FastEthernet0/0
 ip address XXX.XXX.XXX.5 255.255.255.248
 ip nat outside
 duplex auto
 speed auto
 standby timers 254 255
 standby preempt
 standby 1 ip XXX.XXX.XXX.1
 standby 1 mac-address 0000.0000.0001
 standby 2 ip XXX.XXX.XXX.2
 standby 2 mac-address 0000.0000.0002
 standby 3 ip XXX.XXX.XXX.3
 standby 3 mac-address 0000.0000.0003
 standby 4 ip XXX.XXX.XXX.4
 standby 4 mac-address 0000.0000.0004
!
interface FastEthernet0/1
 ip address 10.0.0.6 255.255.255.248
 ip nat inside
 duplex full
 speed auto
 no mop enabled
!
ip classless
ip route 0.0.0.0 0.0.0.0 XXX.XXX.XXX.6
!
ip http server
ip http authentication local
ip http timeout-policy idle 600 life 86400 requests 10000
ip nat inside source list acl-inet interface FastEthernet0/0 overload
ip nat inside source static 10.0.0.1 XXX.XXX.XXX.1
ip nat inside source static 10.0.0.2 XXX.XXX.XXX.2
ip nat inside source static 10.0.0.3 XXX.XXX.XXX.3
ip nat inside source static 10.0.0.4 XXX.XXX.XXX.4
ip nat inside source static 10.0.0.5 XXX.XXX.XXX.5
!
ip access-list standard acl-inet
 permit 10.0.0.0 0.0.0.7
!
!
control-plane
!
!
line con 0
line aux 0
line vty 0 4
 password
 login
!
scheduler allocate 20000 1000
!
end

 

So what if I were to make the following changes...

******

interface s0/0/0

ip address 172.16.10.1 255.255.255.252

 

ip nat inside source static 172.16.10.1 XXX.XXX.XXX.4

********

Would that work based on the info I've provided?

 

Thanks a lot for all your help!

 

 

Chris

 

Thanks for clarifying about the serial cables. It is good that you do have cables with serial pin out, but that was not apparent in the earlier part of the thread.

 

Perhaps another way to think about clock rate and bandwidth is that clock rate is the physical control of interface speed and that bandwidth is the logical description of the control. And yes QOS is certainly another part of the software that might need to use bandwidth. As far as considerations of constraints on what to set for clock rate you are correct that the most important is to not exceed the capability of the particular interface you are configuring. In a live environment there is also usually a constraint based on the rate that you have contracted with the carrier for.

 

Your config looks like it is already using XXX.4. Is that the case? If XXX.4 is available then I would think that it is a much more attractive alternative than using the RG.

 

HTH

 

Rick

HTH

Rick

Yes .4 is available. I am not using that particular IP for anything right now. So would the config changes I listed and the addition of a serial interface to the 2811 accomplish the goal?

Chris

 

It seems like they would.

 

HTH

 

Rick

HTH

Rick

Ok. I borrowed a serial interface from the 2811 in my lab and I was able to configure it as discussed above and get it working. I set the clock rate to 2000000.

 

Thanks so much for all your help!