- #1
Tony11235
- 255
- 0
What is the equivalent of dos prompt's 'net view' in linux?
Tony11235 said:So there's not an equivalent? Like with net view you get a list of computer names regardless the os. I'm talking about over a tcp/ip network, atleast I think I am.
Tony11235 said:Since you're not familiar dos commands, net view works like this
C:\>net view
Server Name Remark
-------------------------------------------------------------------------------
\\BLAIR Blair's Computer
\\QUANTUM-3FB626F
The command completed successfully.
This is after connecting to someone's wireless network in my apartment building. There are currently two computers connected. Mine and the owners.
Keep in mind, MS's "network technology" is not. Its closed proprietary stuff. That said, samba supplies the ability to access MS network shares from a linux machine (as well as sharing files or printers with MS machines).
When I said MS network vs TCP/IP network I wasn't very clear. by MS Network I meant specifically a network of windows machines potentially sharing files and printers. What you would see if you went into 'Network Places' in Explorer. These do communicate over TCP/IP with the SMB protocol. By TCP/IP network, I meant more simply just computers connected via ethernet and communicating via TCP/IP, independant of the SMB protocol. Hopefully that made sense.
What is the equivalent of dos prompt's 'net view' in linux?
Anttech said:So TCP/IP and netbios are closed ?
you choice of terminology is confusing at the least. There is no such thing as a M$ network v TCP/IP. it would be more correct to say somthing like IPX V IP or OSI v IPX.
net view polls the master browser and gives you a list of computer names (SMB names).
SMB works at the session layer of the IP protocol suit.
In linux all you need to do is query your SMB master browser, and you will get the same result as net view. This will only work on a local subnet unless you have configured a WINS server or an equivalent, as netbios/smb is a broadcast technology and won't be forwarded by a router, (unless you have configured your router to be a bridge also)
I was under the impression that Netbios was. Obviously TCP/IP is not.
Speaking of which, how can I configure my router(a linux box with an iptables script) to do that?
The Linux equivalent of Net View in Windows is the "smbclient" command. It can be used to view the list of available resources on a network, similar to Net View.
To use the smbclient command, open the terminal and type "smbclient -L [IP address]" where [IP address] is the IP address of the computer or server you want to connect to. This will display a list of available resources on that network.
Yes, you can use the "smbclient -L [IP address] -U [username]" command to view the status of a specific resource. This will prompt you to enter the password for the specified username.
Yes, there are several GUI alternatives to smbclient in Linux, such as "Samba GUI" and "Gnome Network Browser". These can be installed through the package manager in most Linux distributions.
Yes, smbclient can be used to access resources on a Windows computer. However, you may need to specify the workgroup/domain, username, and password of the Windows computer when prompted. You can also use the "smbclient //[IP address]/[resource name] -U [username]" command to directly access a specific resource on a Windows computer.