Thursday 18 January 2018

networking - Routing in home LAN

I'm trying to understand some basic concepts of networking. I have following home LAN:


enter image description here



  1. Is it right (like above) to have 2 NIC's each one having 2 different gateways on one station? There PC2 have 2 NICs - the first's one gateway is 192.168.0.1 the second's 192.168.1.1?


  2. Initially (just after system startup) the ip table is like that:


    192.168.0.0    255.255.255.0         On-link      192.168.0.11    276
    192.168.0.11 255.255.255.255 On-link 192.168.0.11 276
    192.168.0.255 255.255.255.255 On-link 192.168.0.11 276

    and when i run netcat:


    nc -zv -s 192.168.0.11 192.168.0.11 80 

    to test if port 80 is open it works - the port 80 is indeed open. But when i remove the 192.168.0.11 route i got "TIMEOUT" on nc test. Shouldn't it pick 192.168.0.0 route and work? Moreover when i add the route manually:


    route add 192.168.0.11 mask 255.255.255.255 0.0.0.0 it still doesn't work!




  3. I can't change the metric to desired value. When i run for eg.
    route change 192.168.0.11 mask 255.255.255.255 192.168.0.11 metric 500
    the result metric is't 500 but 520! (no matter if auto-metric is enabled or not)?



  4. Is there any connection between -s flag (local source address) in netcat and routing table's Interface column?

No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...