I have a network which consists of two subnets, each with a linux server
providing Samba services.  With the configuration listed below, I have
successfully achieved Subnet B being able to browse Subnet A but, Subnet
A cannot browse Subnet B (sharename not found).  Is it a Samba
configuration issue or is it DNS?  (I have it fixed if I put an
/etc/lmhosts file on Linux Server A that has the host names and IP
addresses of Subnet B).
LAN A (10.1.1.*) <---->10.1.1.1<--->| Linux Server A
|<--->10.1.2.2<---> LAN B (10.1.2.*) <--->| Linux Server B |
Linux Server A
output of ifconfig
eth0      Link encap:Ethernet  HWaddr 00:10:5A:9C:A7:53
          inet addr:10.1.1.1  Bcast:10.1.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:42876 errors:3 dropped:0 overruns:0 frame:3
          TX packets:26532 errors:0 dropped:0 overruns:0 carrier:0
          collisions:279
          Interrupt:14 Base address:0xdcc0
eth1      Link encap:Ethernet  HWaddr 00:10:5A:9C:A8:2A
          inet addr:10.1.2.2  Bcast:10.1.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6881 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5906 errors:0 dropped:0 overruns:0 carrier:0
          collisions:1
          Interrupt:11 Base address:0xdc80
and route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
255.255.255.255 *               255.255.255.255 UH    0      0       14 eth0
tycho.concentri *               255.255.255.255 UH    0      0        2 ppp0
ppp1.wheeltowhe *               255.255.255.255 UH    0      0        1 ppp1
10.1.1.0        *               255.255.255.0   U     0      0      495 eth0
10.1.2.0        *               255.255.255.0   U     0      0       20 eth1
127.0.0.0       *               255.0.0.0       U     0      0       41 lo
default         tycho.concentri 0.0.0.0         UG    0      0      150 ppp0
smb.conf
# Samba config file created using SWAT
# from localhost (127.0.0.1)
# Date: 1999/06/12 07:00:27
# Global parameters
        workgroup = W2WENGR
        server string = Wheel to Wheel Samba Server
        interfaces = 10.1.1.1/24 10.1.2.2/24
        map to guest = Bad User
        log level = 3
        syslog = 3
        log file = /var/log/samba/log.%m
        max log size = 50
        socket options = TCP_NODELAY
        printer driver file = /etc/samba/lib/printer.def
        client code page = 437
        os level = 65
        preferred master = Yes
        domain master = Yes
        wins proxy = Yes
        wins support = Yes
        remote announce = 10.1.2.255
        remote browse sync = 10.1.2.255
        hosts allow = 10.1.1. 127. 10.1.2.
[homes]
        comment = Home Directories
        read only = No
        browseable = No
[printers]
        comment = All Printers
        path = /var/spool/samba
        create mask = 0700
        print ok = Yes
        browseable = No
[printer$]
        path = /etc/samba/printer
        guest ok = Yes
[hp5kps]
        comment = HP LaserJet 5000 Series PS
        path = /var/spool/samba
        guest ok = Yes
        print ok = Yes
        printer driver = HP LaserJet 5000 Series PS
        printer driver location = \\%h\PRINTER$
[hp5kpcl6]
        comment = HP LaserJet 5000 Series PCL 6
        path = /var/spool/samba
        guest ok = Yes
        print ok = Yes
        printer driver = HP LaserJet 5000 Series PCL 6
        printer driver location = \\%h\PRINTER$
[hp5kpcl5e]
        comment = HP LaserJet 5000 Series PCL 5e
        path = /var/spool/samba
        guest ok = Yes
        print ok = Yes
        printer driver = HP LaserJet 5000 Series PCL 5e
        printer driver location = \\%h\PRINTER$
[hl1660]
        comment = Brother HL-1660
        path = /var/spool/samba
        guest ok = Yes
        print ok = Yes
        printer driver = Brother HL-1660
        printer driver location = \\%h\PRINTER$
[hp600c]
        comment = HP DeskJet 600C Printer
        path = /var/spool/samba
        guest ok = Yes
        print ok = Yes
        printer driver = HP DeskJet 550C Printer
        printer driver location = \\%h\PRINTER$
[epson]
        comment = Epson Stylus COLOR 850
        path = /var/spool/samba
        guest ok = Yes
        print ok = Yes
        printer driver = EPSON Stylus COLOR 850
        printer driver location = \\%h\PRINTER$
Linux Server B
output of ifconfig
eth0      Link encap:Ethernet  HWaddr 00:10:5A:9C:A7:AE
          inet addr:10.1.2.1  Bcast:10.1.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:8827 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10953 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0
          Interrupt:14 Base address:0xdcc0
and route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
255.255.255.255 *               255.255.255.255 UH    0      0        0 eth0
tycho.concentri *               255.255.255.255 UH    0      0        1 ppp0
10.1.2.0        *               255.255.255.0   U     0      0       62 eth0
10.1.1.0        10.1.2.2        255.255.255.0   UG    0      0       62 eth0
127.0.0.0       *               255.0.0.0       U     0      0       39 lo
default         tycho.concentri 0.0.0.0         UG    0      0      109 ppp0
smb.conf
# Samba config file created using SWAT
# from ts-detroit.tecstarinc.com (10.1.2.1)
# Date: 1999/06/12 07:05:22
# Global parameters
        workgroup = TECSTAR
        server string = TECSTAR Samba Server
        interfaces = 10.1.2.1/24
        map to guest = Bad User
        log file = /var/log/samba/log.%m
        max log size = 50
        socket options = TCP_NODELAY
        printer driver file = /etc/samba/lib/printer.def
        client code page = 437
        os level = 65
        preferred master = Yes
        domain master = Yes
        wins proxy = Yes
        wins server = 10.1.1.1
        remote announce = 10.1.1.255
        remote browse sync = 10.1.1.255
        hosts allow = 10.1.2. 127. 10.1.1.
[homes]
        comment = Home Directories
        read only = No
        browseable = No
[printers]
        comment = All Printers
        path = /var/spool/samba
        create mask = 0700
        print ok = Yes
        browseable = No
[printer$]
        path = /etc/samba/printer
        guest ok = Yes
[qms-color]
        comment = QMS magicolor 330
        path = /var/spool/samba
        read only = No
        create mask = 0700
        guest ok = Yes
        print ok = Yes
        printer name = qms-color
        oplocks = No
        share modes = No
[Epson-1180]
        comment = Epson 1180
        path = /var/spool/samba
        read only = No
        create mask = 0700
        guest ok = Yes
        print ok = Yes
        printer name = Epson-1180
        oplocks = No
        share modes = No
--
"Don't steal, the Government hates competition!"
smeisner@cris.com | http://www.cris.com/~Smeisner
Courtesy of Netscape and Linux 2.0 [running 2.0.33]
Steve Meisner wrote:> > I have a network which consists of two subnets, each with a linux server > providing Samba services. With the configuration listed below, I have > successfully achieved Subnet B being able to browse Subnet A but, Subnet > A cannot browse Subnet B (sharename not found). Is it a Samba > configuration issue or is it DNS? (I have it fixed if I put an > /etc/lmhosts file on Linux Server A that has the host names and IP > addresses of Subnet B).You have WINS, and if configured properly, this is not the problem with DNS.> > LAN A (10.1.1.*) <---->10.1.1.1<--->| Linux Server A |<--->10.1.2.2<---> LAN B (10.1.2.*) <--->| Linux Server B | > > workgroup = W2WENGR > remote announce = 10.1.2.255 > remote browse sync = 10.1.2.255 > > workgroup = TECSTAR > remote announce = 10.1.1.255 > remote browse sync = 10.1.1.255You shall put the workgroup name of the other server in remote announce parameter (e.g. remote announce = 10.1.1.255/W2WENGR, or the other way round), and put both subnets in remote browse sync. There are other possibilities, I think, but your setup will definitely not work. Hope this helps. Michal