Boot PXE probleme netbios

Ce forum est destiné à accueillir vos posts concernant la sécurité relative aux logiciels microsoft. Ils peuvent aussi bien traiter des systèmes d'exploitation Windows (NT,WIN2K,WINXP), du serveur web IIS, de Microsoft SQL et ainsi de suite...

Modérateur: modos Ixus

Boot PXE probleme netbios

Messagepar targa » 22 Nov 2005 09:20

Bonjour à tous,

Je rencontre un problème lors d'un boot en pxe, mais également avec un cd de boot.
Je charge la couche réseau et je dois monter un partage avec la commande net use.
Cette commande utilise les noms netbios, et je ne dispose pas de serveur wins. Je remplis le fichier lmhosts, mais cela ne fonctionne pas, il ne trouve pas la ressource réseau.

La mise en place d'un serveur wins est elle la seule solution ??
Avatar de l’utilisateur
targa
Contre-Amiral
Contre-Amiral
 
Messages: 371
Inscrit le: 20 Fév 2003 01:00

Messagepar Gandalf » 22 Nov 2005 09:32

Bonjour, quelle est le script utilisé et quelle est l'erreur remontée ?
/G.
Avatar de l’utilisateur
Gandalf
Amiral
Amiral
 
Messages: 1980
Inscrit le: 22 Août 2002 00:00
Localisation: Strasbourg

Messagepar targa » 22 Nov 2005 10:15

J'utilise le script bpbatch pour le pxe, mais toute cette partie fonctionne.
La carte réseau est bien reconnue, les différents modules réseau se montent.
Il doit manquer le module netbios peut etre mais je ne connais pas son nom alors.
Ou alors un serveur Wins est nécessaire ?
Avatar de l’utilisateur
targa
Contre-Amiral
Contre-Amiral
 
Messages: 371
Inscrit le: 20 Fév 2003 01:00

Messagepar Gandalf » 22 Nov 2005 12:48

Oui, mais peux-tu donner le script en entier quand même stp ? Ainsi que le message d'erreur exact ! Comment veux-tu que l'on t'aide sans ça ?
/G.
Avatar de l’utilisateur
Gandalf
Amiral
Amiral
 
Messages: 1980
Inscrit le: 22 Août 2002 00:00
Localisation: Strasbourg

Messagepar targa » 22 Nov 2005 13:08

Voila le script de connexion.
C'est le script du site netbootdisk.com

@echo off
REM *** Continues from A:\Autoexec.bat

if %PCIscan%==0 goto NoScan
SHOWMENU Autodecting PCI Networking Card
%ramd%\pciscan.exe %ramd%\ndis.map
if not %PCI0%0==0 goto Detected
REM *** Nothing detected, so dump PCI info ***
echo No known PCI Network Cards detected, running pciscan.exe/v for more info...
%ramd%\pciscan.exe -v
echo.
echo *** PLEASE NOTE: PCMCIA & ISA Cards can NOT be auto-detected! ***
echo.
echo *** Also, pciscan.exe can only autodetect PCI network cards that it knows about.
echo *** Some newer cards, or unpopular pci card drivers that have been sent to me,
echo *** do not have the autodection PCI vender/device ID's included. If you know
echo *** their ID's, please email them to me @ bootdisk@hotpop.com :)
echo.
goto Detected
:NoScan
SHOWMENU *** WARNING *** Automatic PCI Network Card Detection has been disabled!
:Detected

REM *** Display Menu, showmenu.exe reads/writes MenuPref.bat + settemp.bat
SHOWMENU Executing Menu
%ramd%\ShowMenu.exe

SHOWMENU Setting Environment Variables
ctty nul
call %ramd%\MenuPref.bat >nul
call %ramd%\settemp.bat
del %ramd%\settemp.bat
ctty con
set path=%RAMD%\
SHOWMENU Saving Menu Perferences to Floppy Disk
echo Note: Settings will not be saved if disk is write protected or missing.
rem (execute copy command in a 'Fail-Continue' shell (undocumented /f) to prevent abort/retry/fail errors if the disk is write protected!)
ctty nul
%COMSPEC% /f /c copy %ramd%\menupref.bat %a%\
ctty con

SHOWMENU Saving LMHOSTS file to Floppy Disk
ctty nul
%COMSPEC% /f /c copy %ramd%\LMHOSTS %a%\FILECOPY\LMHOSTS
ctty con


SHOWMENU *** FLOPPY DISK CAN NOW BE REMOVED ***

SHOWMENU Loading IFSHLP.SYS
%ramd%\device %ramd%\ifshlp.sys


rem ** Hack for SiS900 autodetect speed/duplex issues **
if %NETCARD%==SIS900_1 copy %ramd%\SIS900_1.INI %ramd%\SIS900.INI
if %NETCARD%==SIS900_2 copy %ramd%\SIS900_2.INI %ramd%\SIS900.INI
if %NETCARD%==SIS900_3 copy %ramd%\SIS900_3.INI %ramd%\SIS900.INI
if %NETCARD%==SIS900_4 copy %ramd%\SIS900_4.INI %ramd%\SIS900.INI
if %NETCARD%==SIS900_1 SET NETCARD=SIS900
if %NETCARD%==SIS900_2 SET NETCARD=SIS900
if %NETCARD%==SIS900_3 SET NETCARD=SIS900
if %NETCARD%==SIS900_4 SET NETCARD=SIS900


SHOWMENU Building PROTOCOL.INI
type %ramd%\protocol.1 > %ramd%\PROTOCOL.INI
type %ramd%\%NETCARD%.ini >> %ramd%\PROTOCOL.INI
echo. >> %ramd%\PROTOCOL.INI
type %ramd%\protoADD.txt >> %ramd%\PROTOCOL.INI
echo. >> %ramd%\PROTOCOL.INI
type %ramd%\protocol.2 >> %ramd%\PROTOCOL.INI


SHOWMENU Updating SYSTEM.INI
REM ** RENAME REQUIRED PROTOCOL.INI FILE **

REM ** POKE SETTINGS IN TO SYSTEM.INI **
%ramd%\inifile set %ramd%\system.ini -sNetwork -klogondomain -v%WORKGROUP%
%ramd%\inifile set %ramd%\system.ini -sNetwork -kworkgroup -v%WORKGROUP%
%ramd%\inifile set %ramd%\system.ini -sNetwork -kcomputername -v%wkstn%
%ramd%\inifile set %ramd%\system.ini -sNetwork -klanroot -v%ramd%
%ramd%\inifile set %ramd%\system.ini -sNetwork -kpreferredredir -v%REDIRECTOR%
%ramd%\inifile set %ramd%\system.ini -s"network drivers" -kdevdir -v%ramd%
%ramd%\inifile set %ramd%\system.ini -s"network drivers" -knetcard -v%NETCARD%.DOS


if %packet%==1 goto P_Done
SHOWMENU Unbinding Packet Driver
if not %NETCARD%0==NDIS0 %ramd%\inifile set %ramd%\system.ini -s"network drivers" -ktransport -vtcpdrv.dos,nemm.dos
if %NETCARD%0==NDIS0 %ramd%\inifile set %ramd%\system.ini -s"network drivers" -ktransport -vtcpdrv.dos,nemm.dos,NVNDIS2.DOS

goto P_DONE

:P
SHOWMENU Applying Packet Driver Settings
%ramd%\inifile set %ramd%\protocol.ini -sPKTDRV -kDriverName -vPKTDRV$
if not %NETCARD%0==NDIS0 goto NVNF2NOT
%ramd%\inifile set %ramd%\protocol.ini -sPKTDRV -kBindings -vNVNDIS2
goto NVNF2SKIP
:NVNF2NOT
%ramd%\inifile set %ramd%\protocol.ini -sPKTDRV -kBindings -v%NETCARD%
:NVNF2SKIP
%ramd%\inifile set %ramd%\protocol.ini -sPKTDRV -kintvec -v0x60
%ramd%\inifile set %ramd%\protocol.ini -sPKTDRV -kchainvec -v0x66

:P_DONE

if %DISABLEDHCP%==0 goto D
SHOWMENU Applying Static TCP/IP Settings
%ramd%\inifile set %ramd%\protocol.ini -stcpip -kDisableDHCP -v%DISABLEDHCP%
%ramd%\inifile set %ramd%\protocol.ini -stcpip -kDEFAULTGATEWAY0 -v"%DEFAULTGATEWAY0%"
%ramd%\inifile set %ramd%\protocol.ini -stcpip -kIPADDRESS0 -v"%IPADDRESS0%"
%ramd%\inifile set %ramd%\protocol.ini -stcpip -kWINS_SERVER0 -v"%WINS%"
if not %SUBNETMASK0%0==0 %ramd%\inifile set %ramd%\protocol.ini -stcpip -kSUBNETMASK0 -v"%SUBNETMASK0%"
if not %dns%0==0 %ramd%\inifile set %ramd%\tcputils.ini -sdnr -kNAMESERVER0 -v"%dns%"
:D

SHOWMENU Loading Network Card Driver & Starting Networking...
@call %ramd%\startnet.bat

SHOWMENU Finding MAC Address...
%ramd%\nbmac.exe|%ramd%\set2var mac>%temp%\mac.bat
call %temp%\mac.bat

SHOWMENU Generating IP Config Summary...
echo @ipconfg %ramd% >> %ramd%\IPCONFIG.BAT
if %DNSENABLE%==1 echo @echo DNS Support: Enabled >> %ramd%\IPCONFIG.BAT
if %DNSENABLE%==0 echo @echo DNS Support: Disabled >> %ramd%\IPCONFIG.BAT
if %PACKET%==1 echo @echo Packet Driver Support: Enabled >> %ramd%\IPCONFIG.BAT
if %PACKET%==0 echo @echo Packet Driver Support: Disabled >> %ramd%\IPCONFIG.BAT
echo @echo Hardware MAC Address: %MAC% >> %ramd%\IPCONFIG.BAT


If not %UDMA%==1 goto U
SHOWMENU Loading UltraDMA hard-disk Driver...
%ramd%\device udma.sys
:U

If not %MOUSE%==1 goto M
SHOWMENU Loading Mouse Driver...
%ramd%\ctmouse.exe
:M

if not %CD%==1 goto C
SHOWMENU Loading IDE CD-ROM Driver...
call cdrom.bat
:C

echo.
ECHO -------------------------------------------------------------------------------
if %PROBLEM%==1 goto Stuffed
echo UNIVERSAL TCP/IP NETWORK BOOTDISK - Script Complete!
ECHO -------------------------------------------------------------------------------
echo This Computer is called \\%WKSTN%. Hardware MAC Address: %MAC%
if %DISABLEDHCP%==0 echo To view DHCP'd TCP/IP settings, type: IPCONFIG
if %DISABLEDHCP%==1 echo IP Address: %IPADDRESS0% SubNet: %SUBNETMASK0% Gateway: %DEFAULTGATEWAY0%
echo Type NET VIEW to browse the network, or NET VIEW \\COMPUTER to browse a PC.
echo Or to map to a network drive, type NET USE [drive]: \\SERVER\SHARE
echo.
if not %LOGONSCRIPT%0==0 SHOWMENU Executing Logon Script...
if not %LOGONSCRIPT%0==0 call %LOGONSCRIPT%
:end
del %ramd%\files.uha
Set NETCARD=
Set WORKGROUP=
Set USERNAME=
Set PASSWORD=
Set DISABLEDHCP=
Set IPADDRESS0=
Set SUBNETMASK0=
Set DEFAULTGATEWAY0=
Set DNS=
Set DNSEnable=
Set Packet=
Set LOGONSCRIPT=
Set PCI0=
Set RAMD=
Set RAMDRIVE=
Set CDROM=
set LGLDRV=
set CMDLINE=
set PROBLEM=
set MOUSE=
set REDIRECTOR=
set CD=
set UDMA=
set WINS=
goto TheEnd

:Stuffed
echo ERROR! Part of the Network Client and/or Drivers has failed to load.
echo The scripted failed while executing this command: %CMDLINE%
echo Please note any error message(s) given above.
echo.
echo Now Aborting...
goto TheEnd
:TheEnd

Il y a un serveur DHCP qui ne donne que l'adresse IP de la machine, aucun renseignement supplémentaires.
Le fichier lmhosts contient la ligne suivante :
172.31.10.1 srvghost

Et voila le message d'erreur quand je lance la commande :
net use o: \\srvghost\images
Error 51 : The specifiede computer is not receiving requests
Avatar de l’utilisateur
targa
Contre-Amiral
Contre-Amiral
 
Messages: 371
Inscrit le: 20 Fév 2003 01:00

Messagepar Gandalf » 22 Nov 2005 13:18

Et ya quoi dans ipconfig.bat ?
Quand tu tapes net view, que se passe-t'il ?
As-tu essayé un net use O \\IP_srv\Partage ? C'est pareil ?

Sinon, a priori tu cherches à atteindre un partage sur un serveur Ghost qui contient des images, Ghost possède un générateur de disquettes de boot réseau pour mapper un partage, ça fonctionne assez bien, et les scripts générés sont moins lourds que le tien ( moins de souplesse aussi ! ).

@ +
/G.
Avatar de l’utilisateur
Gandalf
Amiral
Amiral
 
Messages: 1980
Inscrit le: 22 Août 2002 00:00
Localisation: Strasbourg

Messagepar theju » 18 Avr 2006 16:10

Desole pour le deterrage de vieux topic mais as tu trouve une solution pour ton probleme ?
Je suis dans le meme cas : tout se passe tres bien jusqu'a la commande net use g: \\formation\images et ca me renvoie l'erreur : error 53 : the comptuter name specified in the network path cannot be located

Dans mon cas j'ai genere la disquette a l'aide de l'utilitaire ghost, j'ai essaye d'editer les fichiers, de changer le net.exe avec une autre version, bref la je seche :?

Voici mes fichiers generes :
autoexec.bat
Code: Tout sélectionner
@ECHO OFF
SET PATH=a:\net;a:\;
cd \net
a:\net\net initialize
a:\net\netbind.com
a:\net\umb.com
a:\net\tcptsr.exe
a:\net\tinyrfc.exe
a:\net\nmtsr.exe
a:\net\emsbfr.exe
a:\net\net start
A:\NET\NET.EXE USE G: \\dr13fp16\images


protocol.ini
Code: Tout sélectionner
[network.setup]
version=0x3100
netcard=NIC,1,NIC,1
transport=tcpip,TCPIP
lana0=NIC,1,tcpip

[NIC]
drivername=B57$

;INTERRUPT=3
;IOBASE=0x300
;SlotNumber=1

[protman]
drivername=PROTMAN$
PRIORITY=MS$NDISHLP

[ndishlp]
drivername=ndishlp$
BINDINGS=NIC
LANABASE=0

[tcpip]
NBSessions=6
DefaultGateway0=
SubNetMask0=
IPAddress0=
DisableDHCP=0
DriverName=TCPIP$
BINDINGS=NIC
LANABASE=0


system.ini
Code: Tout sélectionner
[network]
filesharing=no
printsharing=no
autologon=no
computername=dr13fp
lanroot=a:\net
username=clonard
workgroup=FORMATION
reconnect=no
dospophotkey=N
lmlogon=0
logondomain=
prefferedredir=full
autostart=full
maxconnections=8

[network drivers]
netcard=B57.dos
transport=tcpdrv.dos,nemm.dos
devdir=a:\net
LoadRMDrivers=yes


Voila, si quelq'un a trouve la solution ....

Merci d'avance
theju
Quartier Maître
Quartier Maître
 
Messages: 18
Inscrit le: 08 Déc 2004 14:09

Messagepar theju » 18 Avr 2006 17:51

Bon je crois que j'ai trouve d'ou venait l'erreur ... :oops:
Je vais creuser un trou et me mettre tout au fond tellemnt c'etait evident :roll:
Sufisait de rentrer l'adresse du serveur (dr13fp16 dans mon cas) dans le fichier LMHOST sur la disquette et ca marche nickel ...

M'enfin si ca peut aider qualqu'un d'autre ...
theju
Quartier Maître
Quartier Maître
 
Messages: 18
Inscrit le: 08 Déc 2004 14:09


Retour vers Logiciels Microsoft

Qui est en ligne ?

Utilisateur(s) parcourant actuellement ce forum : Aucun utilisateur inscrit et 1 invité

cron