LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   router connectivity (https://www.linuxquestions.org/questions/linux-general-1/router-connectivity-876462/)

hasanatizaz 04-22-2011 03:15 AM

router connectivity
 
i got 2 routers, one is on 192 and the other one is 10. there seems to be a problem when i am accessing 10 network from 192 although, when i do the opposite it works correctly.
router configured with 192 is Huawei 510
router configured with 10 is Dlink - DIR 618

i have even tried to open 2nd interface on Huawei 510 even then it doesnt seem to work.

T3RM1NVT0R 04-22-2011 03:50 AM

@ Reply
 
Hi Syed,

What exactly the problem is when you say there is a problem?

Also paste the routing table from both the routers. Also the neighbour list from both the routers and their interface configuration.

hasanatizaz 04-23-2011 03:45 PM

the problem is connectivity itself, i am unable to access the router page of router B which is on 10's network from Router A which is on 192.

Router A - routing table.

> route

Usage: route add <IP address> <subnet mask> <[<gateway>] [<interface>]>
route delete <IP address> <subnet mask>
route show
route --help
> route show

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
119.155.16.1 * 255.255.255.255 UH 0 0 0 ppp_0_10
3_1
192.168.1.0 * 255.255.255.0 U 0 0 0 br0
10.0.0.0 * 255.0.0.0 U 0 0 0 br0
default 119.155.16.1 0.0.0.0 UG 0 0 0 ppp_0_10
3_1

>

the above router is configured on 192. however the 2nd interface was turned on deliberately so that Router B can have access to router A. -
the interesting thing is the 2nd interface on Router A is br0:0
- i am unable to set gateway on br0:0
lol there is no sysctl.conf for ip_forwarding :P

-- on router B the configuration is set, able to ping 192 as well as 10.

T3RM1NVT0R 04-23-2011 04:34 PM

@ Reply
 
Try this

echo 1 > /proc/sys/net/ipv4/ip_forward

and then try to add a static route on router A on br0:0 interface to router B.

hasanatizaz 06-09-2011 09:12 AM

Quote:

Originally Posted by T3RM1NVT0R (Post 4333890)
Try this

echo 1 > /proc/sys/net/ipv4/ip_forward

and then try to add a static route on router A on br0:0 interface to router B.

thanks very much able to fix the issue, how ever forwarding packets plays a crucial role,
the next thing i did was by adding a static route in 192.168.1.1 to destination 10.0.0.0 and gateway set to 192.168.1.2[other router which is on 10]
thanks you.

Destination Subnet Mask Gateway
10.0.0.0 255.0.0.0 192.168.1.2


All times are GMT -5. The time now is 01:31 AM.