Page 1 of 1

share file with difference subnet

Posted: Tue Apr 05, 2016 4:47 am
by yaikun94
I have 1 RB951UI with 2 DHCP server
-server 1: 192.168.10.0/24
-server 2: 172.16.10.0/24
2 clients received DHCP from difference server.
-ClientA: 192.168.10.2/24
-ClientB: 172.160.10.2/24

Client A&B can see each other. I want to share files between them using there "pc-name".Is that possible ??? Because i can only using there ip if i want to share files between them. Using "pc-name" 's not working. Any ideas is helpful.
Thanks in advance and sorry for my bad english.

Re: share file with difference subnet

Posted: Tue Apr 05, 2016 1:01 pm
by p3rad0x
Hi,

I think windows only does device discovery on the same subnet.

What you can do is edit the host files on the computers and point the names to a ip address.

Maybe you can create static dns entries for the on the router

Re: share file with difference subnet

Posted: Wed Apr 06, 2016 4:41 am
by yaikun94
Hi,

I think windows only does device discovery on the same subnet.

What you can do is edit the host files on the computers and point the names to a ip address.

Maybe you can create static dns entries for the on the router
Really @@!!!. But, my friend says he can share files using "pc-name" with config NAT on router and he don't tell me how to do it lol =.=!!. That's why i came here to ask hope someone will show me how :) :)

Re: share file with difference subnet

Posted: Thu Apr 07, 2016 12:29 am
by loveman
Follow

Re: share file with difference subnet

Posted: Thu Apr 07, 2016 7:45 am
by yaikun94
Anyone ?? :( :( :(

Re: share file with difference subnet

Posted: Thu Apr 07, 2016 8:42 am
by MasterXP
You only need to configured Mikrotik as Dns server and assign this DNS via DHCP.

Re: share file with difference subnet

Posted: Thu Apr 07, 2016 9:22 am
by yaikun94
You only need to configured Mikrotik as Dns server and assign this DNS via DHCP.
Could you show me how to do it pls :)

Re: share file with difference subnet

Posted: Thu Apr 07, 2016 11:35 am
by pe1chl
Really @@!!!. But, my friend says he can share files using "pc-name" with config NAT on router and he don't tell me how to do it lol =.=!!. That's why i came here to ask hope someone will show me how :) :)
But that is not a router question, it is a question for the OS, probably Windows in your case.
Windows can have several ways of resolving names to addresses, depending on version, configuration, etc.
(DNS, WINS, broadcast, hostsfile)

Re: share file with difference subnet

Posted: Thu Apr 07, 2016 3:11 pm
by MasterXP
You only need to configured Mikrotik as Dns server and assign this DNS via DHCP.
Could you show me how to do it pls :)
/ip dns
primary dns= Original DNS1
secondary-dns=Original DNS2
allow-remote-request=yes

But you need to understand how DNS works.

Re: share file with difference subnet

Posted: Fri Apr 08, 2016 4:50 am
by yaikun94
Really @@!!!. But, my friend says he can share files using "pc-name" with config NAT on router and he don't tell me how to do it lol =.=!!. That's why i came here to ask hope someone will show me how :) :)
But that is not a router question, it is a question for the OS, probably Windows in your case.
Windows can have several ways of resolving names to addresses, depending on version, configuration, etc.
(DNS, WINS, broadcast, hostsfile)
what do you means it's not router question ??? my friend he config it on router mikrotik using /ip firewall nat (i think he use something like "netmap" in Action tab in some of his rules =.=!!).
/ip dns
primary dns= Original DNS1
secondary-dns=Original DNS2
allow-remote-request=yes

But you need to understand how DNS works.
Could you teach how it works pls :). I would appreciate it

Re: share file with difference subnet

Posted: Mon Apr 11, 2016 5:03 am
by yaikun94
Up again!!!

Re: share file with difference subnet

Posted: Mon Apr 11, 2016 11:13 am
by pe1chl
Ask your friend to come by for a beer and fix your network.

Re: share file with difference subnet

Posted: Mon Apr 11, 2016 11:22 am
by yaikun94
Ask your friend to come by for a beer and fix your network.
No choices huh :lol: :lol: :lol:

Re: share file with difference subnet

Posted: Mon Apr 11, 2016 12:55 pm
by rd228
Ask your friend to come by for a beer and fix your network.
No choices huh :lol: :lol: :lol:

No one on here is going to teach you how DNS works, that isnt what this forum is for. You need to go away and do your own research on how DNS works. There is plenty of information you can find on google.

There would be no possible simple/quick way for someone to teach you DNS via a forum post.

Re: share file with difference subnet

Posted: Tue Apr 12, 2016 4:41 am
by yaikun94
Ask your friend to come by for a beer and fix your network.
No choices huh :lol: :lol: :lol:

No one on here is going to teach you how DNS works, that isnt what this forum is for. You need to go away and do your own research on how DNS works. There is plenty of information you can find on google.

There would be no possible simple/quick way for someone to teach you DNS via a forum post.
im not asking how dns work my original question is how to share file with different subnet using "pc-name" =.=!!!

Re: share file with difference subnet

Posted: Tue Apr 12, 2016 5:13 am
by Van9018
To share files using "pc-name" across a different subnet, you MUST use:

1. Hosts File, or
2. WINS, or
3. DNS

When windows can't resolve a hostname via those 3 options, it then falls back to NetBios (which is what you're trying to use) where it sends out a broadcast packet asking all nodes on the network if it's name is "pc-name".

Because it's a broadcast packet, you cannot use NAT to resolve "pc-name" across 2 subnets.

Re: share file with difference subnet

Posted: Tue Apr 12, 2016 5:19 am
by yaikun94
To share files using "pc-name" across a different subnet, you MUST use:

1. Hosts File, or
2. WINS, or
3. DNS

When windows can't resolve a hostname via those 3 options, it then falls back to NetBios (which is what you're trying to use) where it sends out a broadcast packet asking all nodes on the network if it's name is "pc-name".

Because it's a broadcast packet, you cannot use NAT to resolve "pc-name" across 2 subnets.
Thanks for the info Van9018 :).
I'll try asking my friend about this problem.
i'll post here ASAP when i know how he did it.

Re: share file with difference subnet

Posted: Tue Apr 12, 2016 11:12 am
by pe1chl
I wrote the same thing on Thu Apr 07, 2016 10:35 am but you ignored it...

Re: share file with difference subnet

Posted: Tue Apr 12, 2016 12:16 pm
by yaikun94
I wrote the same thing on Thu Apr 07, 2016 10:35 am but you ignored it...
Sory about that. I still new to network so i don't know much about it.
btw, im not ignored your post. Because my friend say he can do it in on router only. That make me confused =.=!!!