Discussion Locked

Connect 2 netwroks with 1 router

0 helpful
8 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Ok, So I am having a lot of trouble getting something setup that seems easy. So all you Cisco guru's show me the way. Below is a URL of my past trys. thanks Joseph:

https://www.techrepublic.com/forumqa/thread_detail.jhtml?thread_id=122418

I have 1router with 2 Eth ports. 1 port is 10.0.0.4 and the other is 192.168.1.1. I want the 192.168.1.x clients to access the 10.0.0.x clients. If I do pings from the router it gets everywhere but the clients cant get through the router on both sides.

On the 10.0.0.0 side there is a PIX 10.0.0.1 going to the internet, so I want 192.168.0.0 clients to access the internet too.

I have tried RIP, static commands, etc. HELP!!!

help!

8 replies

by maelgwyn

So this is what I have understood:

Internet (10.0.0.1) --> 10.0.0.0 --> 10.0.0.4 Router 192.168.1.1 --> 192.168.1.0

Is that right? Now if you ping from the router, it works, but not from the actual segments. Now is it a proper router (i.e. aCisco) or is it a multihomed machine (ie. 2 NICs). If it is a multihomed machine, and it is running 2K, do you use RRAS? that may be what the issue is... are you using static route tables on that machine? Please drop me a line with more particulars, I may be able to help, but I dont know what the router is...

Maelgwyn

(So Drop me a line, ne?)

by curlergirl

You've got a problem, because you will need static routes on your workstations to make this work. Have you already tried this? If so, what have you tried? Respond and I'll try to follow up.

Deb

by curlergirl

P.S. Tried to go to that URL for your previous thread, but got a message that the thread had been withdrawn.

by mshavrov

You may do all this stuff with your router & PIX, and you don't need to create any static routes on your clients.

1. Configure your clients with default gateway pointing to appropriate interface on the router. I assume you have some kind of DHCP server, where you should change appropriate DHCP Scope:

Network / Subnet / Gateway
10.0.0.x / 255.255.255.0 / 10.0.0.4
192.168.1.x / 255.255.255.0 / 192.168.1.1

2. On your router do following:

a. Configure "ip routing" (just to make sure it's on)

Router(config)#ip routing

b. Configure ethernet interfaces with correct IP addresses:

Router(config)#interface e0/0 (or interface e0)
Router(config-if)#ip address 10.0.0.4 255.255.255.0
Router(config-if)#interface e0/1
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#exit

c. Configure default route pointing to your PIX Firewall:

Router(config)#ip route 0.0.0.0 0.0.0.0 10.0.0.1
Router(config)#end

d. Check routing on your router:

Router#show ip route

You should have 3 entries: 2 starting with "C" for 10.0.0.0 & 192.168.1.0, and one starting with "S*", pointing to your PIX.

3. You should check if your PIX makes address translations for 192.168.1.0 network.

PIX#show nat
nat (inside) 1 10.0.0.0 255.255.255.0 0 0
PIX#

If you this as result, your 192.x.x.x network will be enable to go to Internet. You may do one of the following:

PIX#config t
PIX(config)#nat (inside) 1 192.168.1.0 255.255.255.0

or

PIX(config)#no nat (inside) 1
PIX(config)#nat (inside) 1 0.0.0.0 0.0.0.0

This will allow you to translate ALL inside addresses to public "global" address.

If you have any problems on any step, contact me through e-mail.

Good luck.

Michael Shavrov
MCSE+I, MCSE W2K, CCNA, CCDA, CSS1

This discussion is closed to new replies.