Компьютерный форум OSzone.net  

Компьютерный форум OSzone.net (http://forum.oszone.net/index.php)
-   Сетевые технологии (http://forum.oszone.net/forumdisplay.php?f=31)
-   -   Доступ по сети к ПК (http://forum.oszone.net/showthread.php?t=263144)

MrGauss 25-06-2013 13:54 2173924

Доступ по сети к ПК
 
Есть три ПК соединенных в сеть вот таким вот образом:

ПК 1 и ПК 3 подключены в сеть через роутер. ПК 2 подвязан через ПК 3 (две сетевые карты, одна сделана общедоступной)

На каждом ПК есть общедоступные папки.
С ПК 3 я могу получить доступ к шаре на ПК 2 и ПК 1, с ПК 2 можно получить доступ к ПК 3 и ПК 1.
А вот как получить доступ к ресурсам ПК 2 с ПК 1 не могу придумать.

Вопрос: как получить доступ к ресурсам ПК 2 с ПК 1.

exo 25-06-2013 14:03 2173930

Цитата:

Цитата MrGauss
как получить доступ к ресурсам ПК 2 с ПК 1 »

настроить маршрутизацию между сетями 0 и 137 на ПК3 с помощью сторонних приложений.
на ПК1 прописать маршрут в сеть 137 через адрес 0.102
на ПК2 прописать маршрут в сеть 0 через адрес 137.Х, где Х второй адрес ПК3...

так же можно использовать NAT на ПК3, с пробросом портов.

diagnoz_ 25-06-2013 14:04 2173931

можно используя проброс портов.

MrGauss 25-06-2013 14:11 2173937

ключове слово в вопросе - как?

exo 25-06-2013 14:19 2173946

Цитата:

Цитата MrGauss
ключове слово в вопросе - как? »

сначала гуглом (справедливо и для 7-ки), потом руками.

Маршруты писать с помощью команды:
Цитата:

читать дальше »
C:\Users\юзер>route /?

Manipulates network routing tables.

ROUTE [-f] [-p] [-4|-6] command [destination]
[MASK netmask] [gateway] [METRIC metric] [IF interface]

-f Clears the routing tables of all gateway entries. If this is used in conjunction with one of the commands, the tables are cleared prior to running the command.

-p When used with the ADD command, makes a route persistent across boots of the system. By default, routes are not preserved when the system is restarted. Ignored for all other commands, which always affect the appropriate persistent routes.

-4 Force using IPv4.

-6 Force using IPv6.

command One of these:
PRINT Prints a route
ADD Adds a route
DELETE Deletes a route
CHANGE Modifies an existing route destination Specifies the host.
MASK Specifies that the next parameter is the 'netmask' value.
netmask Specifies a subnet mask value for this route entry. If not specified, it defaults to 255.255.255.255.
gateway Specifies gateway.
interface the interface number for the specified route.
METRIC specifies the metric, ie. cost for the destination.

All symbolic names used for destination are looked up in the network database file NETWORKS. The symbolic names for gateway are looked up in the host name database file HOSTS.

If the command is PRINT or DELETE. Destination or gateway can be a wildcard, (wildcard is specified as a star '*'), or the gateway argument may be omitted.

If Dest contains a * or ?, it is treated as a shell pattern, and only matching destination routes are printed. The '*' matches any string, and '?' matches any one char. Examples: 157.*.1, 157.*, 127.*, *224*.

Pattern match is only allowed in PRINT command.
Diagnostic Notes:
Invalid MASK generates an error, that is when (DEST & MASK) != DEST.
Example> route ADD 157.0.0.0 MASK 155.0.0.0 157.55.80.1 IF 1
The route addition failed: The specified mask parameter is invalid.

Examples:

> route PRINT
> route PRINT -4
> route PRINT -6
> route PRINT 157* .... Only prints those matching 157*

> route ADD 157.0.0.0 MASK 255.0.0.0 157.55.80.1 METRIC 3 IF 2
destination^ ^mask ^gateway metric^ ^
Interface^
If IF is not given, it tries to find the best interface for a given
gateway.
> route ADD 3ffe::/32 3ffe::1

> route CHANGE 157.0.0.0 MASK 255.0.0.0 157.55.80.5 METRIC 2 IF 2

CHANGE is used to modify gateway and/or metric only.

> route DELETE 157.0.0.0
> route DELETE 3ffe::/32


diagnoz_ 25-06-2013 14:22 2173949

используя route add.что-то подобное тут http://www.sql.ru/forum/806205/dostu...drugoy-podseti


Время: 19:59.

Время: 19:59.
© OSzone.net 2001-