Operating System training

YBET Forum Technical trainings

1. NET - 2. Hostname - 3. IPConfig - 4. Ping - 5. ARP - 6. Tracert - 7. Route - 8. Netstat

I resumed here the networks under DOS commands. The majority are usable from DOS included in Windows 95 and following, or even no longer exist from Windows 2000.

For the pure DOS, a manager network file must first be installed in the config.sys, for example device=c:\reseau\network.sys. It comes with the network adapter. Other drivers are required at the client level (for Novell for example) and at the protocol level.

The folder that contains the driver for the adapter is usually name_driver.dos. It is accompanied by 2 ini files for the specific setting: oemsetup.inf and protocol.ini. The global setting is most often done by a small executable file on the floppy disk.

Example of drivers to install in the config.sys for a RTL8139

DEVICE = C:\LANMAN.DOS\DRIVERS\PROTMAN\PROTMAN.DOS I:C:\LANMAN.DOS

DEVICE = C:\LANMAN.DOS\DRIVERS\ETHERNET\RTL8139\RTSND.DOS

1. The NET command

The NET command is an external command. It is recognized (I think) from the DOS 5.0 version and allows to manage the network.

1.1. Net use

NET USE uses NetBios and allows you to connect or disconnect a network under DOS drive. The connection is also effective on Windows (current versions). I see only compatible with all orders more than current versions.

NET USE [lecteur: | *] [\\computer\directory [password | ?]]
[/SAVEPW:NO] [/YES] [/NO] /delete

  • Drive: used to determine the drive letter
  • \\computer\directory  is the name of the computer and the shared folder.
  • Password allows you to specify a password, but not the login makes this difficult to use on the current network drives command. | ? to specify that the password must be prompt.
  • /delete: Deletes the network folder
  • [/ user: [domain\ name] username] to designate a user on the specified domain name
  • [/ user: [domain name with point\] username] identical but for the intranet for example.
  • [user: [domain with points user@domain_name]
  • [/ persistent: Yes or No] allows to make the permanent connection.

The command also allows to share printers.

NET USE port \\computer\printer_name [password] to assign a port to a network printer.

Example:

  • NET USE L: \\server\public / persistent: yes means by the letter L the public folder on the server computer. This connection is recreated the next time you start
  • NET USE L: displays the properties of the connection L
  • NET USE L:/Delete removes the L:
  • Net use LPT2 \\serveur\laserjet submitting local port LPT2 to the server network printer.

1.2. Net Send

This command allows to send messages via the network. It's possible on XP, no more on Windows 7.

  • NET SEND users message: sends the message to user of the workgroup.

or NET SEND * message sends the message to all users.

Example: NET Send * Hello from the network

 

This command can be used to instruct all users to disconnect from a server for example.

1.3. NET View

Without option, the Net View command to view the computers on the network.

If the computer name is mentioned as an option, the shared resources on this computer are displayed. In the example below, the PC sharing 4 files and a printer. L: letter indicates that the folder is also configured as network drive in computer.

NET View /domain: domain_name to display the computers in a particular domain.

1.4. Net user (from Windows 2000).

These commands are equivalent to that of the users and passwords in Control Panel of Windows. This command requires Administrator status in some cases (fortunately).

NET user: displays network users of a computer, not the users connected to this computer through the network.
NET user user_1: displays the user's connection settings of user_1

NET user user_1 password: change the password of the user_1
NET user user_1/delete: removes the mentioned user. On Windows, the user running the command must be a local administrator.

1.5 Net start and net stop.

These 2 commands to start or stop services networks. The service must be explicitly designated.

NET START (service) starts the network services (and others), cannot run in a window in Win3.0 - 3.11.

Various options are available and differ depending on the version of the used DOS (including Windows) for a selective startup. You can also start a single example service: NET START DHCP.

NET Stop (service) to stop running services. Here also the option change with versions. Example Net stop dhcp stops the DHCP server. 

This commands are also available in Windows for service

1.6. Net config

NET config workstation: displays the properties of connection of the station Where the command is executed. It's function is generally unnecessary.
NET config server: displays the properties of the server or station connection depending on the option selected. It's function is generally useless.

This function is generally unnecessary, except to check the workgroup or the domain name (with the Workstation option). Available on all Windows versions.

1.7. Net session

NET session: displays the connections on a computer, including other computers.
NET config server: displays the properties of the server or station connection depending on the option selected. It's function is generally useless.

 In the example below, the computer on which the command is is under Windows 2000 with as 2000 user. The address 127.0.0.1 is the local address. Another computer on NT 4.0 (actually under Windows 98) whose name is L7S5L8 is connected with the user name "Bureau" (without activity for 50 minutes).

1.8. Other command NET

NET DIAGNOSTICS [/ names | / status] allows to run tests of connection hardware diagnostics. / names to specify a server/status, a simple computer. This function no longer exists since Windows 2000 and higher.

2. Hostname

hostname displays the computer's network (Netbios) name.

NEXT > Second part of network commands.

<- Autoexec.bat, config.sys

The hardware 1 course: computer and peripherals. The Hardware 2 course: networks, servers and communications