Find the answer to your Linux question:
Results 1 to 2 of 2
given above is my network structure i want to enable routing in my machine(192.168.1.5,192.168.2.1) i have already configured /etc/sysctl.conf and disabled firewall in my machine i can ping 192.168.2.3,192.168.2.4 and ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2010
    Posts
    1

    Exclamation Routing(Urgent)


    given above is my network structure

    i want to enable routing in my machine(192.168.1.5,192.168.2.1)

    i have already configured /etc/sysctl.conf

    and disabled firewall in my machine i can ping 192.168.2.3,192.168.2.4

    and in return these two machines can ping 192.168.2.1 but they could not ping 192.168.1.6 and 192.168.1.7

    pls if any one could tell me the configuration for the case described in the image that would be great help!!

    (URGENT)
    Attached Images Attached Images

  2. #2
    Just Joined! jr0sco's Avatar
    Join Date
    Aug 2010
    Location
    Australia
    Posts
    41
    try adding this to 192.168.2.3 and 192.168.2.4 (Assuming both interface are on eth0)

    Code:
    route add -net 192.168.1.0 netmask 255.255.225.0 eth0
    And

    Code:
    route add -net 192.168.2.0 netmask 255.255.225.0 eth0
    to 192.168.1.6 and 192.168.1.7

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •