LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 03-08-2013, 03:36 PM   #1
orsty9001
Member
 
Registered: Mar 2008
Distribution: Slackware, Mint, Raspbian
Posts: 47

Rep: Reputation: 0
Trying to share printer and do samba across two subnets.


I have a linux router that has 3 network interfaces. Their is a wireless and wired adapter for the internal network. Apparently since these adapters are in the same box they can't be in the same subnet. So eth1 is 192.168.1.1 and wlan0 is 192.168.10.1. Everything connecting to the wireless is in 192.168.10 and everything wired is 192.168.1.

Everything on the network can ping each other and see the internet. The only problem I have is anything connected to the wireless adapter can't see any samba shares or shared printers. I've found a lot of information online on how to make samba and cups talk across subnets but none of it seems to work.

Any insight will be much appreciated.
 
Old 03-08-2013, 04:06 PM   #2
descendant_command
Member
 
Registered: Mar 2012
Posts: 680

Rep: Reputation: 133Reputation: 133
Can you ping machines on the other subnet?
If not it is a routing or firewall issue - fix that first.

If so, it then just leaves name resolution (you should be able to connect by IP address). Your router should be the master browser and WINS provider.
 
Old 03-08-2013, 10:17 PM   #3
orsty9001
Member
 
Registered: Mar 2008
Distribution: Slackware, Mint, Raspbian
Posts: 47

Original Poster
Rep: Reputation: 0
Anything can ping anything on the network, it doesn't matter what subnet it's in. Samba is set to be the master browser and wins support is set to "yes". I have all the windows machines set to use that computer as the wins server as well.
 
Old 03-09-2013, 01:43 AM   #4
catworld
Member
 
Registered: Nov 2004
Location: Horseheads, New York
Distribution: Mandriva 2010.1 / KDE 4.5.2, Slax, Knoppix, Backtrack & etc...
Posts: 198

Rep: Reputation: 36
Apparently your router is bridging the two, but not on the ports you need for samba. (or cups) If you can access the router's configs look for how it's bridging, eg iptables/ebtables.

Are you sure you can't set the wlan to the same sub, like 192.168.1.2?

And have you tried to access using the IP rather than a host name? In a file browser try smb://192.168.1.x, where "x" is the IP of one of your shares.

One more thing to check is that all machines are in the same workgroup. Windows can be uncooperative sometimes if 'workgroup' differs.
 
Old 03-10-2013, 05:56 AM   #5
orsty9001
Member
 
Registered: Mar 2008
Distribution: Slackware, Mint, Raspbian
Posts: 47

Original Poster
Rep: Reputation: 0
It doesn't work at all if I set wlan0 and eth0 to the same subnet. If you try to ping something you get an error about "martian source" packets. It takes the entire network down when I do that.

Everything is in the same workgroup and can ping the samba server. I've tried to connect using the ip address and it just says that it's not avaliable on the network eventhough that machine can ping it.

I ran tcpdump on all the adapters of the router just to see what is happening. I do get this error.

Code:
192.168.10.109 > 192.168.1.1: icmp: 192.168.1.1 unreachable - need to frag
I tried turning off MTU in throu sysctl but it made no difference.
 
Old 03-10-2013, 08:13 AM   #6
catworld
Member
 
Registered: Nov 2004
Location: Horseheads, New York
Distribution: Mandriva 2010.1 / KDE 4.5.2, Slax, Knoppix, Backtrack & etc...
Posts: 198

Rep: Reputation: 36
is path_mtu_discovery enabled on the LAN ifaces?
 
Old 03-10-2013, 11:32 AM   #7
orsty9001
Member
 
Registered: Mar 2008
Distribution: Slackware, Mint, Raspbian
Posts: 47

Original Poster
Rep: Reputation: 0
I just checked and it is.
 
Old 03-13-2013, 06:33 AM   #8
zafar_dandoti
Member
 
Registered: Dec 2005
Location: India
Distribution: Fedora 17,ubuntu,centos 6.3
Posts: 63

Rep: Reputation: 6
have you added all your interfaces to smb.conf file?
ex hosts allow = 192.168.10. 192.168.2. localhost
ex interface = 192.168.10.10/24 10.10.1.20/24
bind interface only = yes

Last edited by zafar_dandoti; 03-13-2013 at 06:44 AM.
 
Old 03-16-2013, 10:36 AM   #9
zafar_dandoti
Member
 
Registered: Dec 2005
Location: India
Distribution: Fedora 17,ubuntu,centos 6.3
Posts: 63

Rep: Reputation: 6
hey what happened ? did you checked with pervious post?
 
Old 03-17-2013, 09:39 PM   #10
orsty9001
Member
 
Registered: Mar 2008
Distribution: Slackware, Mint, Raspbian
Posts: 47

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by zafar_dandoti View Post
hey what happened ? did you checked with pervious post?
Thanks for responding.

That was the first thing I tried but it didn't make a difference. I gave up and install windows server 2008 on a spare box and made a print / file server out of it. I ran out of time and even hired two different people to solve the problem and no one came up with a solution.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Do I need SAMBA to share a local printer? peliot Linux - Newbie 1 08-19-2005 08:54 AM
Share Printer With Samba... Help gabriellai Linux - Software 7 06-15-2005 01:44 PM
share printer through samba (Suse 9.2) wycolorado Suse/Novell 4 01-03-2005 01:34 PM
samba printer share chongluo Linux - Newbie 4 10-12-2004 08:52 AM
Samba Printer Share vwhk Linux - Software 3 05-23-2003 12:17 AM


All times are GMT -5. The time now is 08:30 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration