2

I have two networks. 10.22.227.X the 227 network has the internet connection on it, I also have 10.22.226.X Network as of right now this network has no internet.

Here is the relevant configuration:

no ip cef
no ipv6 cef
!
interface FastEthernet0/0
ip address 10.22.227.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 10.22.226.1 255.255.255.0
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
ip classless

As of right now i can not communicate between the two networks. What i mean by this is... I can not access files off my computer on the 227 net work from the 226 network and visa-versa. I am using Cisco packet tracer (that's where i got my configuration file from above.) and the network work great! But when i copy it to my router it doesn't work!!!!

Can anyone help my out! I have been trying for weeks to make this work.

10
  • can you ping the remote IP address? May 14, 2015 at 19:50
  • @RonRoyston No Not at all its almost as though the networks are not even connected with in the router
    – Donavon
    May 14, 2015 at 20:06
  • Can you please post your IP configuration of both hosts, and show ip route on the router? May 14, 2015 at 20:16
  • @JordanHead what do you mean? How would i do that. Im sorry im trying to learn
    – Donavon
    May 14, 2015 at 20:17
  • 1
    First, you need to enable "ip routing" on the switch, second your, gateways are not the correct IP's. May 14, 2015 at 20:28

1 Answer 1

2

As @jordanhead points out, the default gateway on your PCs on the 226 network is incorrect. The gateway address should be the address of the router interface - 10.22.226.1 in your case.

The gateway address is where the PC should forward packets if they are not destined for the local network. So if a PC on the 226 network wants to send traffic to the Internet, for example, it must first forward the traffic to 10.22.226.1 so that the router can forward it to your provider (or wherever else it has to go).

But that is only half your problem. Assuming this is a continuation of your earlier questions, the 226 network will not be able to reach the Internet until you configure your Internet router with a static route for 10.22.226.0/24 pointing to 10.22.227.1. This tells the Internet router and all PCs on the 227 network that to reach the 226 network, the packet has to be sent to 10.22.227.1 - i.e. the router interface.

If you can't add a route to the Internet router, then you can't do what you're trying to do. Maybe a different approach to the problem is called for.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.