04-17-2007 07:48 AM - edited 03-03-2019 04:34 PM
I have a Cisco 2621, and Can't connect 2 LANs. I have 2 Fast Ethernet interfaces, but need some help with the code to get the 2 to see each other, and share resources.
I have 2 LANs - 10.38.77.0 and 192.168.0.0. I can ping both LANs from the router, but, from each side, can only ping that LAN.
Any help would be greatly appreciated!!
04-17-2007 07:52 AM
Make sure that the workstations are configured with a default gateway, which is the router interface address in the respective subnet.
Hope this helps,
04-17-2007 08:36 AM
The workstations all have a default gateway set to their respective firewalls for internet access. Do I need to change all of this, or can I add this router's address as an alternative gateway?
04-17-2007 07:55 AM
Hi Larry
Can you make sure ip routing is enabled on the 2621 router. It should be by default so unless there is a statement
"no ip routing" in the config you should be okay.
Could you send a copy of the 2621 config ?.
Have you set the PC's default gateway to be the relevant router interface ?
Jon
04-17-2007 08:42 AM
Routing is enabled.
I have the router I/Fs set to 10.38.77.35 and 192.168.0.35
I have 2 test machines with respective addresses of 10.38.77.177 and 192.168.0.6
The config is below:
Router#sho runist
Building configuration...ntry
Current configuration : 714 bytes alias Crea
!
version 12.2
service timestamps debug uptime
alps
service timestamps log uptimeol
!d
call rsvp-syncp parameters
!
!
!
!
!
!
!
!
interface FastEthernet0/0
autonomous-sys
ip address 10.38.77.35 255.255.255.0to which we belong
duplex auto
speed auto
!
interface FastEthernet0/1ger Configure Backhaul
ip address 192.168.0.35 255.255.255.0
speed auto
!
ip classless
ip route 0.0.0.0 0.0.0.0 192.168.0.2
ip route 10.38.77.0 255.255.255.0 10.38.77.177
ip route 10.38.77.0 255.255.255.0 192.168.0.0
ip route 192.168.0.0 255.255.255.0 192.168.0.6
ip route 192.168.0.0 255.255.255.0 10.38.77.0
no ip http server
ip pim bidir-enable
!
!
dial-peer cor custom
!
!
!
!
line con 0
line aux 0
line vty 0 4
!
end
04-17-2007 10:10 AM
ip route 0.0.0.0 0.0.0.0 192.168.0.2
ip route 10.38.77.0 255.255.255.0 10.38.77.177
ip route 10.38.77.0 255.255.255.0 192.168.0.0
ip route 192.168.0.0 255.255.255.0 192.168.0.6
ip route 192.168.0.0 255.255.255.0 10.38.77.0
Get rid of the static routes you have configured(see above). Make sure the hosts on the 192.168.0.0/24 network are using 192.168.0.35 as their default gateway.
Make sure the hosts on the 10.38.77.0/24 network are using 10.38.77.35 as their default gateway.
04-17-2007 01:24 PM
Thanks, I'll try that, but this router's only purpose is to connect the 2 LANs. When I get this into the live network, the gateway address for the internet is different (10.38.77.130 and 192.168.0.4 respectively).
04-17-2007 10:13 AM
As hritter said, the users workstations/servers will need to have a default gw set to the 2621. For these users to access the internet, you'll need to add default routes to the 2621 to reach the firewall.
Make sense?
04-17-2007 01:28 PM
Thanks - yes, makes sense. So I would use the command:
ip route 0.0.0.0 0.0.0.0 10.38.77.130
correct? That being the firewall on one of the LANs.
Sorry for my ignorance.
04-17-2007 01:42 PM
THANKS to all - it works now, using 1 gateway address for both LANs, then routing to the firewall!
04-25-2007 12:40 AM
Well, I thought it worked on the test machines, but didn't test internet on Both - only one of them. So, when I put them on-site, the only way they talked to each other was to set each LAN gateway as the other's firewall.
So am I correct in thinking that I need to (as stated in an earlier reply) set each LAN's workstations' gateway as the corresponding FA address? And then add routes from each of those to their respective firewalls as below?
ip route 10.38.77.35 255.255.255.0 10.38.77.130
ip route 192.168.0.35 255.255.255.0 192.168.0.4
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide