[Samba] Vmware and samba

Antonio Gulli gulli at ideare.com
Tue Feb 11 19:14:39 GMT 2003


I'm not able to use samba and vmnetnat. Please help me because this is
making me crazy.

I use XP on an ADSL connection. PPPoE IP is assigned dinamically. Eth0
IP can be assigned dinamically or statical *tried both*

RedHat 8.0 is the guest, XP service pack 1 is the host. I also uses
sygate firewall on XP *but i set allow all for testing*

Linux routes via NAT and it works fine (even DNS resolution).
If i play with vmnetnat.cfg adding

18401 = 192.168.100.128:22
13139 = 192.168.100.128:139

I can access guest (i can log in with slogin and see the smb
port). So port forwarding works!

But this is just a test which is ok for ssh, but NOT for browse with
XP's explorer (am i wrong?)

If i try to browse directly the address NAT and Host hardware i always
see my XP shares not the RedHat ones.

All this stuff work better and trasparently in vmware 3.1!

Any suggestion?

-=-=-
Here is my numbers from XP:

ipconfig
C:\Documents and Settings\antonio.LORENIX\Menu Avvio>ipconfig /all

         Nome host . . . . . . . . . . . . . . : lorenixp
         Suffisso DNS primario  . . . . . . .  :
         Tipo nodo . . . . . . . . .  : Sconosciuto
         Routing IP abilitato . . . . . . . .  : Sì
         Proxy WINS abilitato . . . . . . . .  : Sì

Scheda Ethernet WmWare NAT:

         Suffisso DNS specifico per connessione:
         Descrizione . . . . . . . . . . . . . : VMware Virtual
Ethernet Adapter
(Network Address Translation (NAT) for VMnet8)
         Indirizzo fisico. . . . . . . . . . . : 00-50-56-C0-00-08
         DHCP abilitato. . . . . . . . . . . . : Sì
         Configurazione automatica abilitata   : Sì
         Indirizzo IP configurazione automatica: 169.254.218.201
         Subnet mask . . . . . . . . . . . . . : 255.255.0.0
         Gateway predefinito . . . . . . . . . :

Scheda Ethernet VmWare Host:

         Suffisso DNS specifico per connessione:
         Descrizione . . . . . . . . . . . . . : VMware Virtual
Ethernet Adapter
(basic host-only support for VMnet1)
         Indirizzo fisico. . . . . . . . . . . : 00-50-56-C0-00-01
         DHCP abilitato. . . . . . . . . . . . : Sì
         Configurazione automatica abilitata   : Sì
         Indirizzo IP configurazione automatica: 169.254.25.142
         Subnet mask . . . . . . . . . . . . . : 255.255.0.0
         Gateway predefinito . . . . . . . . . :

Scheda Ethernet FastEth CNET:

         Suffisso DNS specifico per connessione:
         Descrizione . . . . . . . . . . . . . : Scheda Fast Ethernet
PCI CNet PR
O200
         Indirizzo fisico. . . . . . . . . . . : 00-80-AD-7C-DB-9E
         DHCP abilitato. . . . . . . . . . . . : No
         Indirizzo IP. . . . . . . . . . . . . : 192.168.100.5
         Subnet mask . . . . . . . . . . . . . : 255.255.255.0
         Gateway predefinito . . . . . . . . . :

Scheda PPP {A6BAF807-87CC-4686-BC4F-E536BB32A9E5}:

         Suffisso DNS specifico per connessione:
         Descrizione . . . . . . . . . . . . . : WAN (PPP/SLIP)
Interface
         Indirizzo fisico. . . . . . . . . . . : 00-53-45-00-00-00
         DHCP abilitato. . . . . . . . . . . . : No
         Indirizzo IP. . . . . . . . . . . . . :
         Subnet mask . . . . . . . . . . . . . : 255.255.255.255
         Gateway predefinito . . . . . . . . . : 0.0.0.0
         Server DNS . . . . . . . . . . . . .  : 217.141.255.204
                                             212.216.112.112
         NetBIOS su TCPIP. . . . . . : Disabilitato


=======> From Linux side i get this IP: 192.168.10.128
=======> How can i route to this IP is from XP side NAT interface
=======> is on another IP CLASS?

++++
Here it is My vmnetnat.conf

# Windows NAT configuration file

[host]

# NAT gateway address
ip = 192.168.100.2/24
hostMAC = 00:50:56:C0:00:08

# enable configuration; disabled by default for security reasons
#
# Added by AG for fun
#configport = 33445

# VMnet device if not specified on command line
device = VMnet8

# Allow PORT/EPRT FTP commands (they need incoming TCP stream...)
activeFTP = 1

# Allows the source to have any OUI.  Turn this one if you change the
OUI
# in the MAC address of your virtual machines.
#allowAnyOUI = 1

[udp]
# Timeout in seconds, 0 = no timeout, default = 60; real value might
# be up to 100% longer
timeout = 30

[dns]
# This section applies only to Windows.
#
# Policy to use for DNS forwarding.  Accepted values include order,
# rotate, burst.
#
# order: send one DNS request at a time in order of the name servers
# rotate: send one DNS request at a time, rotate through the DNS
servers
# burst: send to three servers and wait for the first one to respond
policy = order;

# Timeout in seconds before retrying DNS request.
timeout = 2

# Retries before giving up on DNS request
retries = 3

# Automatically detect the DNS servers (not supported in Windows NT)
autodetect = 1

# List of DNS servers to use.  Up to three may be specified
#nameserver1 = 208.23.14.2
#nameserver2 = 63.93.12.3
#nameserver3 = 208.23.14.4

[netbios]
# This section applies only to Windows.

# Timeout for NBNS queries.
nbnsTimeout = 2

# Number of retries for each NBNS query.
nbnsRetries = 3

# Timeout for NBDS queries.
nbdsTimeout = 3

[incomingtcp]
# Use these with care - anyone can enter into your virtual machine
through these...

# FTP (both active and passive FTP is always enabled)
#      ftp localhost 8887
#8887 = 192.168.27.128:21

# WEB (make sure that if you are using named webhosting, names point
to
#     your host, not to guest... And if you are forwarding port other
#     than 80 make sure that your server copes with mismatched port
#     number in Host: header)
#      lynx http://localhost:8888
#8888 = 192.168.27.128:80

# SSH
#      ssh -p 8889 root at localhost
#8889 = 192.168.27.128:22
#
# Added by AG for fun
18401 = 192.168.100.128:22
13139 = 192.168.100.128:139

[incomingudp]
# UDP port forwarding example
#6000 = 192.168.27.128:6001


++++++
And my vmnetdhcp.conf


#
# Configuration file for VMware port of ISC 2.0 release running on
# Windows NT and Windows 2000.
#
# This file is generated by the VMware installation procedure; it
# is edited each time you add or delete a VMware host-only network
# adapter.
#
# We set domain-name-servers to make some clients happy
# (dhclient as configued in SuSE, TurboLinux, etc.).
# We also supply a domain name to make pump (Red Hat 6.x) happy.
#
allow unknown-clients;
default-lease-time 1800;                # 30 minutes
max-lease-time 7200;                    # 2 hours

# Virtual ethernet segment 1
# Added at 12/23/02 16:38:42
subnet 192.168.23.0 netmask 255.255.255.0 {
range 192.168.23.128 192.168.23.254;            # up to 126 VM's
option broadcast-address 192.168.23.255;
option domain-name-servers 192.168.23.1;
option domain-name "localdomain";
}
host VMnet1 {
     hardware ethernet 00:50:56:C0:00:01;
     fixed-address 192.168.23.1;
     option domain-name-servers 0.0.0.0;
     option domain-name "";
}
# End

# Virtual ethernet segment 8
# Added at 12/23/02 16:38:54
subnet 192.168.100.0 netmask 255.255.255.0 {
range 192.168.100.128 192.168.100.254;            # up to 126 VM's
option broadcast-address 192.168.100.255;
option domain-name-servers 192.168.100.2;
option domain-name "localdomain";
option netbios-name-servers 192.168.100.2;
option routers 192.168.100.2;
}
host VMnet8 {
     hardware ethernet 00:50:56:C0:00:08;
     fixed-address 192.168.100.1;
     option domain-name-servers 0.0.0.0;
     option domain-name "";
     option routers 0.0.0.0;
} # End
-- 
Ciao
AG



More information about the samba mailing list