Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Route Add

Options
  • 30-06-2015 3:43pm
    #1
    Registered Users Posts: 6,309 ✭✭✭


    Hi guys,

    I am trying to ping a server [10.128.x.x] from the Linux box. The particular server is reachable from the windows box.

    //Linux Box

    USER@TEST:~$ route
    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use Iface
    default 172.16.1.1 0.0.0.0 UG 0 0 0 eth0
    172.16.1.0 * 255.255.255.0 U 0 0 0 eth0
    192.168.122.0 * 255.255.255.0 U 0 0 0 virbr0
    USER@TEST:~$

    //Windows Server

    C:\Users\Administrator>route print
    ============================

    IPv4 Route Table
    ===========================================================================
    Active Routes:
    Network Destination Netmask Gateway Interface Metric
    0.0.0.0 0.0.0.0 172.16.1.1 172.16.1.33 261
    10.128.0.0 255.128.0.0 192.168.255.2 192.168.255.1 13
    127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
    127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
    127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
    172.16.1.0 255.255.255.0 On-link 172.16.1.33 261
    172.16.1.33 255.255.255.255 On-link 172.16.1.33 261
    172.16.1.255 255.255.255.255 On-link 172.16.1.33 261
    192.168.255.0 255.255.255.252 On-link 192.168.255.1 266
    192.168.255.1 255.255.255.255 On-link 192.168.255.1 266
    192.168.255.3 255.255.255.255 On-link 192.168.255.1 266
    224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
    224.0.0.0 240.0.0.0 On-link 172.16.1.33 261
    224.0.0.0 240.0.0.0 On-link 192.168.255.1 266
    255.255.255.255 255.255.255.255 On-link 127.0.0.1 306
    255.255.255.255 255.255.255.255 On-link 172.16.1.33 261
    255.255.255.255 255.255.255.255 On-link 192.168.255.1 266
    ===========================================================================
    Persistent Routes:
    Network Address Netmask Gateway Address Metric
    0.0.0.0 0.0.0.0 172.16.1.1 Default
    ===========================================================================

    IPv6 Route Table
    ===========================================================================
    Active Routes:
    If Metric Network Destination Gateway
    1 306 ::1/128 On-link
    15 261 fe80::/64 On-link
    17 266 fe80::/64 On-link
    17 266 fe80::517f:e152:b3d4:ca9a/128
    On-link
    15 261 fe80::d467:d64e:fd11:4420/128
    On-link
    1 306 ff00::/8 On-link
    15 261 ff00::/8 On-link
    17 266 ff00::/8 On-link
    ===========================================================================
    Persistent Routes:
    None

    C:\Users\Administrator>

    On the linux server I added the following route:

    route add -net 10.128.0.0 netmask 255.128.0.0 gw 172.16.1.33 dev eth0

    The gw being the IP of the windows server. However I am unable to ping the box. Any suggestions greatly appreciated.


Comments

  • Registered Users Posts: 6,309 ✭✭✭T-K-O


    The route was deleted from the linux server before creating this post.


  • Registered Users Posts: 6,309 ✭✭✭T-K-O


    Anyone?


  • Registered Users Posts: 13,980 ✭✭✭✭Cuddlesworth


    Windows servers don't route traffic by default, even if you add the route to it. it's only aware of what to do with its traffic. Static routing is only for when it has multiple gateways. You will need to NAT traffic through it and open ports on its firewall.

    http://www.falconitservices.com/support/KB/Lists/Posts/Post.aspx?ID=77


  • Registered Users Posts: 6,309 ✭✭✭T-K-O


    Thanks for the response and the link, I'll have a read through this evening.


  • Registered Users Posts: 6,309 ✭✭✭T-K-O


    For those interested, my route add was correct. The problem was with the VPN provider.


  • Advertisement
Advertisement