Browsing only works when in Samba workgroup

Steve Meisner smeisner at concentric.net
Sat Jul 10 01:46:06 GMT 1999


Robert Franklin wrote:

>                     Samba <server>
>                            |
>             ----------------------------- subnet 1
>                 |
>              Router
>                 |
>       -------------------- subnet 2
>            |
>      Win95 <client>

Your setup is allmost identical to mine.  Here's how I do it.

          WIN95 <Clients>
            |
         ------------------------------------- subnet A (10.1.1.0),
Workgroup=W2WENGR
            | (10.1.1.1)
         Samba Server A
            | (10.1.2.2)
         ------------------------------------- subnet B (10.1.2.0),
Workgroup=TECSTAR
            | (10.1.2.1)             |
         Samba Server B           WIN95 <Clients>



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/TECSTAR
        remote browse sync = 10.1.1.255 10.1.2.255
        hosts allow = 10.1.1. 127. 10.1.2.
...


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/W2WENGR
        remote browse sync = 10.1.2.255 10.1.1.255
        hosts allow = 10.1.2. 127. 10.1.1.
...

--
"Don't steal, the Government hates competition!"
smeisner at cris.com | http://www.cris.com/~Smeisner
Courtesy of Netscape and Linux 2.0 [running 2.0.33]





More information about the samba mailing list