Community discussions

MikroTik App
 
yaikun94
Member Candidate
Member Candidate
Topic Author
Posts: 110
Joined: Tue Nov 24, 2015 10:05 am

share file with difference subnet

Tue Apr 05, 2016 4:47 am

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.
 
p3rad0x
Long time Member
Long time Member
Posts: 640
Joined: Fri Sep 18, 2015 5:42 pm
Location: South Africa
Contact:

Re: share file with difference subnet

Tue Apr 05, 2016 1:01 pm

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
 
yaikun94
Member Candidate
Member Candidate
Topic Author
Posts: 110
Joined: Tue Nov 24, 2015 10:05 am

Re: share file with difference subnet

Wed Apr 06, 2016 4:41 am

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 :) :)
 
loveman
Member
Member
Posts: 348
Joined: Tue Mar 10, 2015 9:32 pm

Re: share file with difference subnet

Thu Apr 07, 2016 12:29 am

Follow
 
yaikun94
Member Candidate
Member Candidate
Topic Author
Posts: 110
Joined: Tue Nov 24, 2015 10:05 am

Re: share file with difference subnet

Thu Apr 07, 2016 7:45 am

Anyone ?? :( :( :(
 
MasterXP
newbie
Posts: 25
Joined: Fri Jun 12, 2009 9:05 am

Re: share file with difference subnet

Thu Apr 07, 2016 8:42 am

You only need to configured Mikrotik as Dns server and assign this DNS via DHCP.
 
yaikun94
Member Candidate
Member Candidate
Topic Author
Posts: 110
Joined: Tue Nov 24, 2015 10:05 am

Re: share file with difference subnet

Thu Apr 07, 2016 9:22 am

You only need to configured Mikrotik as Dns server and assign this DNS via DHCP.
Could you show me how to do it pls :)
 
pe1chl
Forum Guru
Forum Guru
Posts: 10568
Joined: Mon Jun 08, 2015 12:09 pm

Re: share file with difference subnet

Thu Apr 07, 2016 11:35 am

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)
 
MasterXP
newbie
Posts: 25
Joined: Fri Jun 12, 2009 9:05 am

Re: share file with difference subnet

Thu Apr 07, 2016 3:11 pm

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.
 
yaikun94
Member Candidate
Member Candidate
Topic Author
Posts: 110
Joined: Tue Nov 24, 2015 10:05 am

Re: share file with difference subnet

Fri Apr 08, 2016 4:50 am

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
 
yaikun94
Member Candidate
Member Candidate
Topic Author
Posts: 110
Joined: Tue Nov 24, 2015 10:05 am

Re: share file with difference subnet

Mon Apr 11, 2016 5:03 am

Up again!!!
 
pe1chl
Forum Guru
Forum Guru
Posts: 10568
Joined: Mon Jun 08, 2015 12:09 pm

Re: share file with difference subnet

Mon Apr 11, 2016 11:13 am

Ask your friend to come by for a beer and fix your network.
 
yaikun94
Member Candidate
Member Candidate
Topic Author
Posts: 110
Joined: Tue Nov 24, 2015 10:05 am

Re: share file with difference subnet

Mon Apr 11, 2016 11:22 am

Ask your friend to come by for a beer and fix your network.
No choices huh :lol: :lol: :lol:
 
rd228
Frequent Visitor
Frequent Visitor
Posts: 81
Joined: Mon Nov 16, 2015 12:13 pm

Re: share file with difference subnet

Mon Apr 11, 2016 12:55 pm

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.
 
yaikun94
Member Candidate
Member Candidate
Topic Author
Posts: 110
Joined: Tue Nov 24, 2015 10:05 am

Re: share file with difference subnet

Tue Apr 12, 2016 4:41 am

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" =.=!!!
 
Van9018
Long time Member
Long time Member
Posts: 558
Joined: Mon Jun 16, 2014 6:26 pm
Location: Canada - Abbotsford

Re: share file with difference subnet

Tue Apr 12, 2016 5:13 am

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.
 
yaikun94
Member Candidate
Member Candidate
Topic Author
Posts: 110
Joined: Tue Nov 24, 2015 10:05 am

Re: share file with difference subnet

Tue Apr 12, 2016 5:19 am

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.
 
pe1chl
Forum Guru
Forum Guru
Posts: 10568
Joined: Mon Jun 08, 2015 12:09 pm

Re: share file with difference subnet

Tue Apr 12, 2016 11:12 am

I wrote the same thing on Thu Apr 07, 2016 10:35 am but you ignored it...
 
yaikun94
Member Candidate
Member Candidate
Topic Author
Posts: 110
Joined: Tue Nov 24, 2015 10:05 am

Re: share file with difference subnet

Tue Apr 12, 2016 12:16 pm

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 =.=!!!