- May 26, 2016
- 18
- 0
- 6
I'm trying to understand some basic concepts of networking. I have following home LAN:
- 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? - Initially (just after system startup) the ip table is like that:
and when i run netcat:Code:
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 276to 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:Code:nc -zv -s 192.168.0.11 192.168.0.11 80it still doesn't work!Code:route add 192.168.0.11 mask 255.255.255.255 0.0.0.0 - I can't change the metric to desired value. When i run for eg.
the result metric is't 500 but 520! (no matter if auto-metric is enabled or not)?Code:
route change 192.168.0.11 mask 255.255.255.255 192.168.0.11 metric 500 - Is there any connection between -s flag (local source address) in
netcat and routing table's Interface column?
