Hot answers tagged

26

Taken from Finding All Hosts On the LAN From Linux/Windows Workstation for ip in $(seq 1 254); do ping -c 1 192.168.1.$ip>/dev/null; [ $? -eq 0 ] && echo "192.168.1.$ip UP" || : ; done But for a great tool, Nmap. Great for mapping networks.


22

You can restrict access to your ssh server in many ways. IMO the most important is to use ssh keys and disable password authentication. See the following wiki pages for details https://help.ubuntu.com/community/SSH/OpenSSH/Keys https://help.ubuntu.com/community/SSH/OpenSSH/Configuring#Disable_Password_Authentication You can restrict access to a specific ...


18

To ping a netbios name in Ubuntu you need to add wins to /etc/nsswitch.conf. Run: gksu gedit /etc/nsswitch.conf And add wins to the line: hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4 So it looks like this: hosts: files mdns4_minimal [NOTFOUND=return] dns wins mdns4 Save the file, close the text editor, and ping away. ...


18

Arp-scan works great for me too... If using Wi-Fi: sudo arp-scan -l --interface=wlan0 -or if using ethernet: sudo arp-scan -l --interface=eth0 (this last is practically identical to what Rajesh Rajendran posted; the -l standing for --localnet) If you don't have arp-scan (it doesn't come with Ubuntu by default), just pull up a terminal and type: sudo ...


14

I finally found the cause thanks to this link. It seems that one shouldn't have spaces in the folder names (containing the driver of course) when building the driver. Replacing the spaces with underscores fixed the issue. I could build just like that. Strange... but it worked!


12

The simplest thing is arp-scan --localnet


9

About your current output ping wstation PING wstation.local.domain Clearly indicates that your pc is appending .local.domain to non-FQDN queries. This is something configured improperly or at least wrong in your set up. (unless you actually use the .local.domain suffix on purpose) Name resolving and periods One important thing what a lot of people don't ...


9

I would do this using just grep: $ sudo arp-scan --interface=eth0 --localnet | grep -oP '^[\d.]+' 192.168.0.1 192.168.0.2 192.168.0.3 192.168.0.10 192.168.0.23 192.168.0.72 192.168.27.1 192.168.27.14 192.168.27.30 Explanation: The -P tells grep to use Perl Compatible Regular Expressions, where \d matches any number. The -o means "print ...


8

This is just a modified version of: http://www.ubuntugeek.com/ubuntu-networking-configuration-using-command-line.html How to configure the network interface using the terminal You can configure a network interface from the command line using the networking utilities. You configure your network client hosts with the command line by using commands to change ...


8

Here's what you want to do: First, open up disk utility and select your hard drive in the sidebar: Now, click the little "Create Partition" icon. Make sure you're selecting the right drive, this is the dangerous part! Now, lets get this drive mounted on our computer. Click that, and then it will mount on your computer. Navigate to it and then right ...


7

The least complicated method to send audio from one Pulse Audio server to another over the LAN is to use the RTP/Multicast feature that you are able to set up using paprefs . On the sender: Choose your local soundcard or choose a separate device you can select as audio output from Audio Preferences. On the receiver: By doing so audio will be sent ...


7

Go to system settings -> Network -> wired Then click on options, select IPV4 tab, and click on routes. Finally enable the Use this connection only for resources of its network This way Ubuntu will use only Wireless for accessing the Internet


6

If both are directly connected to the router and can access internet, then they already are in LAN. Maybe you want to share files and folders, right? If so, its easy: right-click any folder you want to share, go to "Sharing Options", check the "Share this folder" box, choose a share name, and youre basically done. If Samba support is not already installed ...


6

Ubuntu comes with the Avahi implementation of mDNS service discovery (also known under Apple's trademarked name Bonjour), which advertises your hostname over the local network under the .local domain. The standard hostname resolver will also do mDNS lookups. So if you set the hostname of one of your computers to foo, you should be able to ping it from ...


6

Step by Step Procedure: Ubuntu allows multiple connections by default, but sometimes, we need to specify which one to use. In your comments, you have mentioned that you use LAN for the Intranet and WiFi for the Internet. So, firstly search for Network Connections in the unity dash. Then, under the Ethernet section, click 'Add' button. Then, we need to ...


5

Follow the instructions Allan posted, but you need to install the "winbind" (Samba nameservice integration server) package too so you can get name resolution.


5

you need to go into network manager and change your ip4 settings to shared to other computers here is the other method using ip tables this will set the ip of your ethernet card sudo ip addr add 192.168.1.1/24 dev eth0 and this will configure the nat sudo iptables -A FORWARD -o wlan0 -i eth0 -s 192.168.1.0/24 -m conntrack --ctstate NEW -j ACCEPT ...


5

I always use nmap. To scan for all devices in your network, use: nmap -sP 192.168.0.1/24 More here: http://www.cyberciti.biz/networking/nmap-command-examples-tutorials/


5

You can plug both in at the same time and be connected to both, but you can only use the Internet from one of them. The computer will prefer the cable. So if you only have Internet access via one of them then yes you can be connected to both networks. But if both are capable of providing Internet access, then Ubuntu will prefer the cable (Ethernet) network ...


5

Just set the IPs manually using the 'network connection' GUI to, say, 192.168.1.1 on ubuntu 11.04 machine and 192.168.1.2 on ubuntu 12.04 machine. Set the netmask to 255.255.255.0 on both of them. Leave the dns and gateway fields blank (I am assuming you only want each other to talk with no internet). This will work. If you wish to connect just these 2 ...


5

As you're probably going to use IP the MAC addresses won't help you at all. What you want is mDNS to reslove local host names. In Ubuntu, this is activated automatically. You should be able to resolve other computer's IP addresses using their name plus .local as in: my-pc.local


5

You could try adding 10.1.10.129 noranetserver to /etc/hosts, to make the computer you connect from aware of the server hostname. There are other ways as well, as pointed out in the following questions: 1 and 2.


5

I'll assume that on your server eth0 is connected to the switch and eth1 is connected to the router. I'll assume that your LAN network address is 10.1.1.0/255.255.255.0 I'll assume that your router is 192.168.0.1/255.255.255.0 On the NIC connected to the switch, assign an IP address in the same range as the LAN served by your switch. But without gateway ...


4

Here's how I did it: Equipment: Ubuntu 11.04 Desktop on 1st Gen. eeePC Linksys WRT120N Wireless N Router Huawei E620 USB Broadband Modem Ethernet cable Hardware Setup: Huawei plugged into eeePC Ethernet cable plugged into Ethernet port other end of Ethernet cable plugged into the Internet port of The Linksys Ubuntu Setup: connect the Huawei to the ...


4

I found the solution myself. I created an additional NIC in both the VMs and configured the ip of the new network interfaces. Should I leave my question so that others can benifit or should I vote to delete?


4

I used wicd for a long time, but I think Network Manager has matured quite a bit and is quite a decent all round network (including wifi) manager. Especially since it has support for VPN too.


4

You may have to install the package libnss-winbind to be able to find windows computers by hostname. Simply installing winbind may not work. See answer.


4

Running apt-get install winbind fixed it for me.


4

All the details you need should be found here: http://www.ubuntugeek.com/ubuntu-networking-configuration-using-command-line.html


4

As a possible GUI option, the best one I have seen is Angry IP as found in http://angryip.org/download/#linux Simply download the latest DEB package and install. Then run ipscan from Dash. Here is a screenshot:



Only top voted, non community-wiki answers of a minimum length are eligible