Link to home
Start Free TrialLog in
Avatar of imagex
imagex

asked on

connecting two lans

I have two networks 192.168.1.x and 192.168.2.x basicly pc's on one and voip phones on the other each have there own gateway and internet connection192.168.1.1 and 192.168.2.1. I am using a cisco 2600 with two nics to connect the two networks and route betwen the two 192.168.1.254 and 192.168.2.254. i have added routes on each gateway like 192.168.1.0  255.255.255.0 gw 192.168.2.254 and can ping to the other gateway 192.168.1.1 form 192.168.2.x but I cant ping any other ips on that side like a pc at 192.168.1.2 unless I add the route to the pc I'm useing on the 192.168.2.x side. how can I do this with out having to add the route to each pc?
Avatar of OriNetworks
OriNetworks

just a random shot at it since i dont know much about cisco devices. Does some kind of NAT need to be configured?
ASKER CERTIFIED SOLUTION
Avatar of imagex
imagex

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of imagex

ASKER

Update, I have a centos box on 192.168.1x network and it can get to anywhere on the other network with out adding the route to it, just from having the route in the gatway router on its side, so looks like a windows problem.
Please provide the running configuration, stripped of any sensitive detail (passwords, even if encrypted and one octet of public IP addressing masked).
You have to configure all pcs to have a default gw!
PCs on 192.168.1.x shoudl have gw 192.168.1.254 (the IP of the router interface) and the PCS on 192.168.2x should have 192.168.2.254


Avatar of imagex

ASKER

All pc's have a gateway, maybe this will help:
192.168.1.x
192.168.1.1       smoothwall gateway to the net, added route 192.168.2.0 -255.255.255.0 -192.168.1.254
192.168.1.254   cisco 2611 eth0

192.168.2.x
192.168.2.1      wrt-54g gateway to the net, added route 192.168.1.0 -255.255.255.0 -192.168.2.254
192.168.2.254   cisco 2611 eth1

heres my config on the 2611, remeber this is just for a bridge.
Building configuration...

Current configuration : 611 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname netbridge
!
boot-start-marker
boot-end-marker
!
enable secret 5 xxxxxxxxxxxxxxxxxxxxxx
!
no aaa new-model
ip cef
!
!
!
!
!
!
!
!
!
!
interface Ethernet0/0
 ip address 192.168.1.254 255.255.255.0
 full-duplex
!
interface Ethernet0/1
 ip address 192.168.2.254 255.255.255.0
 full-duplex
!
!
ip http server
no ip http secure-server
!
!
control-plane
!
!
line con 0
 password xxxxxxxx
 login
line aux 0
 password xxxxxxxx
 login
line vty 0 4
 password xxxxxxxx
 login
!
!
end

Routes on smoothwall 192.168.1.1
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     *               255.255.255.0   U     0      0        0 eth0
192.168.2.0     192.168.1.254   255.255.255.0   UG    0      0        0 eth0
76.xxx.xxx.0    *               255.255.248.0   U     0      0        0 eth1
default         c-76-xxx-xxx-x. 0.0.0.0         UG    0      0        0 eth1
Routes on the wrt 54g192.168.2.1, I dont have anything on the wan, this is just testing before installing.
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     192.168.2.254   255.255.255.0   UG    0      0        0 br0
192.168.2.0     *               255.255.255.0   U     0      0        0 br0
169.254.0.0     *               255.255.0.0     U     0      0        0 br0
127.0.0.0       *               255.0.0.0       U     0      0        0 lo

Avatar of imagex

ASKER

anyone?
Avatar of imagex

ASKER

I found that with two dd-wrts routers it works fine, must be some thing with the added route on the smoothwall.