Using Private IP to Simulate ISP - unable to ping WAN IP`s - frustrated :*(
I had a question as I was following some instructions from video in CCNA where they discuss sestting up Router 2 being able to get to the LAN. I have kids and they groan and moan alot about their xbox (sigh). So I tried to plug my main router into my linksys router and simulate a WAN.
Maybe what I am doing is not possible and that is why its not working. However I followed the videos step by step. I didnt want to bother anyone so I posted on the Cisco site but nobody seems to be touching the post and since I dont really have any mentors, and nobody to really help me. I figure out most things on my own but Im kind of stuck here. I dont know if I am wating my time trying to do this or not. I was basically trying to get it running so I can practice all my CCNA stuff.
Anyway I dont expect any professionals to try to spend alot of time trying to go over my problem in depth, I realise everyone is busy, and I dont want to take up valuable time but if someone could maybe just take a breif glance I would really be appreciative.
Below is the link of my posting:
https://supportforums.cisco.com/thread/2156142
======BELOW is the info I posted on that site===============
"
Hi I have a home lab network that is connected to my internet. I basically have a linksys router connected to cable modem and in order for my families internet to not go down while testing and learning my CCNA I am trying to treat the Linksys as the ISP.
1. Plugged my 891W router via FASTETHERNET 8 (192.168.1.10) into LAN Switch port 1 of my Linksys E4200 home router(192.168.1.1).
2. I plugged my 891W Gigabit 0 (10.10.10.1) LAN side into my 2950 Catalyst Switch (10.10.10.5 - VLAN 1)
3. my 2950 Catalyst switch (10.10.10.5 - Vlan 1) is plugged into my 2600 series router via the routers FE port (10.10.10.2).
There is a few more routers connected behind r2 but I am not dealing with them right now and there is also a switch connected into s1 but its not being used for this.
891w is labled r1
2950 is labled s1
2600 is labeled r2
I am running RIP Verison 2 for my network protocol.
r1 information below
----------------------------
r1#show ip protocols
*** IP Routing is NSF aware ***
Routing Protocol is "rip"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Sending updates every 30 seconds, next due in 24 seconds
Invalid after 180 seconds, hold down 180, flushed after 240
Redistributing: rip
Default version control: send version 2, receive version 2
Interface Send Recv Triggered RIP Key-chain
GigabitEthernet0 2 2
Vlan4 2 2
wlan-ap0 2 2
Automatic network summarization is in effect
Maximum path: 4
Routing for Networks:
10.0.0.0
192.168.2.0
Routing Information Sources:
Gateway Distance Last Update
10.10.10.2 120 00:00:02
Distance: (default is 120)
r1#
----------------------------
r1#show ip route
Codes: L - local, 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, + - replicated route
Gateway of last resort is 192.168.1.1 to network 0.0.0.0
S* 0.0.0.0/0 [1/0] via 192.168.1.1
10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
C 10.0.0.0/24 is directly connected, Vlan4
L 10.0.0.1/32 is directly connected, Vlan4
C 10.10.10.0/24 is directly connected, GigabitEthernet0
L 10.10.10.1/32 is directly connected, GigabitEthernet0
172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 172.16.0.0/24 is directly connected, Vlan1
L 172.16.0.1/32 is directly connected, Vlan1
172.168.0.0/29 is subnetted, 1 subnets
R 172.168.0.0 [120/2] via 10.10.10.2, 00:00:19, GigabitEthernet0
192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.1.0/24 is directly connected, FastEthernet8
L 192.168.1.10/32 is directly connected, FastEthernet8
192.168.2.0/30 is subnetted, 1 subnets
R 192.168.2.0 [120/1] via 10.10.10.2, 00:00:06, GigabitEthernet0
r1#
------------------------------------
r1#ping 10.10.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
r2#
-------------------------------------
===========================================================================================================
===================================================r1 configuration==========================================
show run br
Building configuration...
Current configuration : 3569 bytes
!
! Last configuration change at 16:50:46 UTC Fri Jun 22 2012
!
version 15.0
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname r1
!
boot-start-marker
boot-end-marker
!
logging buffered 51200 warnings
enable secret 5 ENCRYPTED STUFF
!
no aaa new-model
!
!
!
service-module wlan-ap 0 bootimage autonomous
!
crypto pki trustpoint "STUFF REMOVED"
!
ip source-route
!
!
ip dhcp excluded-address 10.0.0.1
ip dhcp excluded-address 172.16.0.1
!
ip dhcp pool Wireless
network 10.0.0.0 255.255.255.0
default-router 10.0.0.1
dns-server 192.168.1.2
!
ip dhcp pool WIREDLAN
network 172.16.0.0 255.255.255.0
default-router 192.168.1.1
dns-server 192.168.1.2
!
!
no ip cef
ip domain name MYDOMAINNAME
ip name-server 192.168.1.2
no ipv6 cef
!
!
multilink bundle-name authenticated
license udi pid CISCO891W-AGN-A-K9 sn XXXXXXXXX
!
!
archive
log config
hidekeys
username USERNAME privilege 15 secret 5 ENCRYPTEDSTUFF
!
!
!
!
!
bridge irb
!
!
!
!
interface FastEthernet0
spanning-tree portfast
!
!
interface FastEthernet1
spanning-tree portfast
!
!
interface FastEthernet2
spanning-tree portfast
!
!
interface FastEthernet3
spanning-tree portfast
!
!
interface FastEthernet4
shutdown
spanning-tree portfast
!
!
interface FastEthernet5
spanning-tree portfast
!
!
interface FastEthernet6
spanning-tree portfast
!
!
interface FastEthernet7
shutdown
spanning-tree portfast
!
!
interface FastEthernet8
description $ES_WAN$$FW_OUTSIDE$
ip address 192.168.1.10 255.255.255.0
ip nat outside
ip virtual-reassembly
duplex auto
speed auto
!
!
interface GigabitEthernet0
description $ES_WAN$$FW_OUTSIDE$
ip address 10.10.10.1 255.255.255.0
ip nat inside
ip virtual-reassembly
duplex auto
speed auto
!
!
interface wlan-ap0
description Service module interface to manage the embedded AP
ip unnumbered Vlan4
arp timeout 0
!
!
interface Wlan-GigabitEthernet0
description Internal switch interface connecting to the embedded AP
switchport trunk native vlan 4
switchport mode trunk
!
!
interface Vlan1
description $ETH-SW-LAUNCH$$INTF-INFO-HWIC 4ESW$CVO$$FW_INSIDE$
ip address 172.16.0.1 255.255.255.0
ip nat inside
ip virtual-reassembly
ip tcp adjust-mss 1452
!
!
interface Vlan4
description $FW_INSIDE$
ip address 10.0.0.1 255.255.255.0
ip nat inside
ip virtual-reassembly
!
!
interface Async1
no ip address
encapsulation slip
!
!
router rip
version 2
network 10.0.0.0
network 192.168.2.0
!
no ip forward-protocol nd
ip http server
ip http authentication local
ip http secure-server
ip http timeout-policy idle 60 life 86400 requests 10000
!
!
ip nat inside source list 1 interface FastEthernet8 overload
ip route 0.0.0.0 0.0.0.0 192.168.1.1
!
access-list 1 permit any
!
!
!
!
!
!
control-plane
!
!
bridge 1 protocol ieee
bridge 1 route ip
!
line con 0
logging synchronous
login local
line 1
modem InOut
stopbits 1
speed 115200
flowcontrol hardware
line 2
no activation-character
no exec
transport preferred none
transport input all
transport output pad telnet rlogin udptn ssh
line aux 0
line vty 0 4
privilege level 15
login local
transport input telnet ssh
line vty 5 15
privilege level 15
login local
transport input telnet ssh
!
scheduler max-task-time 5000
end
r1#
=======================================================================================================
=======================================================================================================
r2 information:
r2#show ip protocols
Routing Protocol is "rip"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Sending updates every 30 seconds, next due in 23 seconds
Invalid after 180 seconds, hold down 180, flushed after 240
Redistributing: rip
Default version control: send version 2, receive version 2
Interface Send Recv Triggered RIP Key-chain
FastEthernet0/0 2 2
Serial0/0 2 2
Automatic network summarization is not in effect
Maximum path: 4
Routing for Networks:
10.0.0.0
192.168.1.0
192.168.2.0
Routing Information Sources:
Gateway Distance Last Update
10.10.10.1 120 00:00:05
192.168.1.35 120 3d15h
192.168.1.1 120 4d13h
192.168.2.2 120 00:00:16
Distance: (default is 120)
-----------------------------------------
r2#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
172.168.0.0/29 is subnetted, 1 subnets
R 172.168.0.0 [120/1] via 192.168.2.2, 00:00:25, Serial0/0
10.0.0.0/24 is subnetted, 2 subnets
C 10.10.10.0 is directly connected, FastEthernet0/0
R 10.0.0.0 [120/1] via 10.10.10.1, 00:00:14, FastEthernet0/0
192.168.2.0/30 is subnetted, 1 subnets
C 192.168.2.0 is directly connected, Serial0/0
---------------------------------
r2#ping 10.10.10.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
r2#
------------------------------------
2#ping 192.169.1.10
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.169.1.10, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
r2#
-------------------------------------
I can ping all over my homelab everything I can reach as long as I have a protocol up but I cannot reach the WAN IPs. I watched video by Jeremy Ciorara and I tried to follow the wan and nat part from a website
http://www.networkstraining.com/basic-cisco-800-router-configuration-for-internet-access/
And none of its working. I am not sure if this is a case where a private IP cannot function as a ISP and I am breaking some rule thats not mentioned in CCNA studies or if its something else.
I tried these commands from Jeremy Video:
r1(config)#ip access-list standard "NAT_ADDRESSES"
r1(config-std-nacl)#permit any
r1(config)ip nat inside source list NAT_ADDRESSES interface fastEthernet 8 overload
However they did not work it was pretty close to whats in the basic website up there I listed as well.
I think I went back to the basic configuration in the config file post above. Its really frustrating as I follow directions and they do not seem to work. I understand I am using my private 192.168.1.0 subnet as an ISP and maybe that has something to do with it but when yoru first learning and things dont work its kind of overwelming as you have problems seeing the big picture and dont yet trust in things you have learned as they are unfamiliar so its easy to get lost.
Anyway any asistance would be great. I will also keep trying to figure this out but so far I have only came up with non working ideas.
Thanks,
Brian
"
Thanks in advance for any help.
Respectfully,
Brian W Catlin
Brian,
I would be happy to help you with this configuration, it looks like fun. We might not get it working immediately, but I think what you are attempting to do is possible.
First, I need to understand the design clearly. If I'm reading your post correctly, this is what I got:
You have an internet connection going into a Linksys 4200. You then have a home network off some of the Linksys ports and a Lab network connected to one port on the Linksys, as depicted below:
Internet connection -> Linksys 4200
Linksys 4200 -> home network
Linksys 4200 -> Lab router (891)
There appears to be a lot of extra stuff in the configuration you posted. Unless you are planning on using the same network address space on your home network as in your lab, there shouldn't be a need for the NAT.
Here are a few things I've noticed that might help:
First thing that caught my eye, the default router is on a different network than the network identified in this dhcp pool. If the 4200 is acting as a DHCP server, you shouldn't need this in the 891. If the 891 is the DHCP server, you'll want to change the network to 192.168.1.0.
ip dhcp pool WIREDLAN network 192.168.1.0 255.255.255.0 default-router 192.168.1.1 dns-server 192.168.1.2
Second thing that caught my eye is the ping results posted are for the incorrect network. Shouldn't this be 192.168.1.10
2#ping 192.168.1.10
Third, ditch the NAT unless you know you need it. It's only going to complicate things; and unless you need to "hide" your lab devices from your kid's xbox, it's just going to be another thing that keeps this from working.
Finally, is the RIP just for your lab or is the RIP between the 891 and 4200? You might want to disable auto summarization to make things more specific. Do this with the "no auto-summary" command under router rip. And if you do disable auto summary, do it on all the routers running RIP.
Let me know if this helps and feel free to post more questions. Thanks!
If having your lab network share your Internet connection with your home network is what you are trying to achieve, then that is totally possible.
To your first question, I would urge you to use RFC 1918 compliant addresses because you could inadvertently deny yourself from getting to the real 184 network or whichever one you use. It doesn't make a difference if you use a public address space or private, it will all work the same (they are all networks). What matters is that if you have two routed interfaces on your router, they need to be in different networks. I like to think of them as bubbles. If you have one bubble connected to one interface, it can't touch another bubble, otherwise they'll pop. So, consider your home network one bubble, then make your lab network another bubble. Make sure you use unique network address space for each bubble, and you should be ok.
The next step is being able to route between everything. Once you've clearly configured unique networks on each side of the router, you might need RIP or Static routes to tell the routers how to get to networks that aren't directly connected. From what I can tell in your show commands above, you've got the static default route setup correctly. If you want to route from your home network to your lab network, the linksys is going to need to have a static route configured to point back to the 891's interface (or you could do host routes on your home computers).
My main point with saying ditch the NAT is I'd recommend getting familiar with the different routing and subnetting concepts first. I'm not saying ditch NAT permanently, just try taking things one step at a time, otherwise you might not know what is breaking the communication and it'll make it harder to troubleshoot the real problem.
I hope this helps answer your questions. Keep at it and I'm sure you'll get it working.
I'm glad to hear of your renewed enthusiasm. Best of luck!
Hi,
I appreciate any assistance.
1,) You have my design laid out clearly. Cable Modem > Linksys > 891W plugged into port on Linksys.
2,) MY DHCP for my home network is done by my windows server 2008 R2. DHCP server is 192.168.1.2/24 network. It connects wirelessly to the linksys router. So for my home network I do not use my linksys router though I have emergency scope of DHCP addresess that I excluded on the Server 2008 R2 so that I can switch instantly to linksys if I screw up something on my server when experimenting with windows Server.
I use my Cisco Home Lab to learn the CCNA exam and study jeremy`s CCENT I and II videos. Thats why I dont want it for the main.
I take down the routers and switches and redo them practicing for the CCNA, so this would eventually get me beheaded at the house; as the wife likes Pentros on Iphone and the kids pulse stops if their xbox is down for very long.
I am just playing with the RIP Version 2 right now but soon will go to EIGRP, OSPF.
Jeremy in his videos has his main router connected to the internet and I think its an older version of my 891W. I was just trying to do the same thing but treat my linksys as the internet and plug into that and still get internet access to the 891W router.
That way I can mess it all up and hey no big deal I just erase the configs and start over.
I was studying the nugget video:
NAT: Command-line NAT Configuration
In this video he sets up NAT to the internet (I was tryign to setup my network as a fake internet and mimic this. Here is the thing, I dont know if what I am trying to do is break a rule or if the ISP is really no different than just another network and so the NAT should have worked. In otherwords I dont know enough about it to know if I am trying to break a concrete law if you will.
Thats why I was setting up NAT as I was following the instructions, the only difference is he did it to the ISP and I did it to my linksys router because I thought it would be the same.
I can try it from my ISP as well to test it. I know I have connected up to the ISP with the 891 and gotten to the internet and all my wireless worked as well. What I did not test prior is if I could ping from R2 to my ISP IP addresses.
Right now simulating my linksys IP network 192.168.1.0 as the ISP and acting like those are public IPs I cannot ping them from R2.
does it make a difference if its a private network like that or does it have to be like the 184.180.xxx.xxx which would be my actual static public IP?
So I can ditch the NAT but I was trying to learn NAT thats why I am doing it but maybe I am trying to learn NAT and doing somethign that is impossible and thats my problem. Thing is I have found nothing in my reading that says that is the problem so I am clueless.
I can also erase the wirelss but since I was not using the wireless right now didnt figure it was hurting the lan side. but I am not really ready for wireless in my studies yet that was just to get it working so I could use as my home router should I choose.
The RIP is not between the 891W and the E4200. I actually think the linksys may support RIP but the video series was to keep your network seperate from the public IP and NAT was another tool that allowed nothing from the outside to get to private IPs.
I will check into auto summarization.
Ok I have alot of typing here so sorry for that just trying to give you a feel for whats I am trying to do and whats going on.
I am ok if I am doing something not possible I will just change my goals and if need be plug directly into the cable modem, and work later in the evening. I was more worried not about recreating the wheel but making sure I am not missing some silly little piece of information that I should not be missing.
Anyway hope this clears up some headway in what I am after!
Respectfully,
Brian