Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Connect to my Linux network remotely? Post 302878697 by bakunin on Sunday 8th of December 2013 06:14:36 AM
Old 12-08-2013
There are a couple of issues and i am not sure if i manage to answer them all right now (RL demanding my attention), so stay tuned for more tomorrow:

1. Your network setup

Please refrain from posting photos, they are using an awful lot of bandwidth. I have redrawn your picture using ASCII graphics using vi:

Code:
  Switch                 WLAN-Router
    ---                    ---
     |  +--------------+    |
     |--| ProLiant 1   |----|
     |  +--------------+    |
     |  +--------------+    |
     |--| ProLiant 2   |----|            +--------------+
     |  +--------------+    |------------| Laptop       |
     |  +--------------+    |            +--------------+
     |--| ProLiant 3   |----|
     |  +--------------+    |
     |  +--------------+   ---
     |--| Rasberry 1   |    
     |  +--------------+    
     |  +--------------+    
     |--| Rasberry 2   |    
     |  +--------------+    
     |  +--------------+
     |--| Rasberry 3   |
     |  +--------------+
    ---

You have two separate ethernets: one which connects all the servers and one which connects all the ProLiants with the Laptop. While this is possible, it is not desirable at all for your cause.

Such a setup, with a separate "admin LAN" to access the systems is sometimes used in very big installations (data centers) to make it easier to create firewall-rules to limit the physical connection to the admin LAN. You use that to restrict access only to a select number designated client systems, so that even knowing the password would not help a prospective hacker as long as he hasn't access to such a system (the admins workplace) too.

A serious drawback of this setup is that access to the Rasberry systems is only possible via one of the ProLiants, so you will have to enable IP-forwarding on at least one of them or connect the Rasberries to the WLAN router.

In short: this is not a good idea and i think you could make life easier for you. Consider the following:

Code:
                                Switch
                                  ---
                  WLAN-Router      |
                     ---           |  +--------------+
                      |            |--| ProLiant 1   |
                      |------------|  +--------------+
   +--------------+   |            |  +--------------+
   | Laptop       |---|            |--| ProLiant 2   |
   +--------------+   |            |  +--------------+
                     ---           |  +--------------+
                                   |--| ProLiant 3   |
                                   |  +--------------+
                                   |  +--------------+
                                   |--| Rasberry 1   |
                                   |  +--------------+
                                   |  +--------------+
                                   |--| Rasberry 2   |
                                   |  +--------------+
                                   |  +--------------+
                                   |--| Rasberry 3   |
                                   |  +--------------+
                                  ---

This way you need access only to the WLAN-Router to access your whole network and you do not need to activate IP-forwarding (which creates problems all of its own).

You may notice that i haven't made any distinction between WLAN and cable-bound Ethernet: the reason is that there is no difference. For networking a WLAN connection is just "another sort of cable", so to say and above the level of cabling it doesn't matter.

Notice also, that eth1 on the ProLiants is not used any more. You do not need it.

2. DHCP

DHCP (Dynamic Host Configuration Protocol) is a way to assign IP hosts with addresses and was invented to deal with a scarcity of IP addresses. Normally, every IP host will have an address. If you have more and more hosts sharing the same network range IP addresses will eventually become scarce. DHCP was invented, so that this problem could be somewhat alleviated. Not all the systems are permanently active, therefore you do not need as many addresses as you have hosts, but only so many as you have active hosts. One system would do the bookkeeping and give out "leases" with IP addresses when a host starts and collect these addresses when the host shuts down. A host would not be guaranteed to get the same address again if it reconnects.

It is possible to run a network with servers using DHCP if you use some sort of dynamic DNS, so that the IP addresses are dynamic while the DNS names of the servers are static. This is sometimes done (again: in big data centers with hundreds(thousands of servers), but would add a lot of configuration effort to your setup. AND you do not need it at all.

My suggestion is to give static IP addresses to all the servers. Then construct a common /etc/hosts and distribute this among the systems to have name resolution. This is not as elegant as setting up a DNS server, but it is done in seconds instead of hours and the drawbacks for six servers and one client (the laptop) are zero.

You can activate DHCP for your laptop or not, it doesn't matter. If you want to access the Internet at the same time from the laptop you will have to configure it this way:

- use an outside DNS server (to resolve names in the internet)
- put the file "/etc/hosts" with your local systems on it.
- let take "/etc/hosts" take precedence by setting "local, bind4" in "/etc/netsvc.conf"

Now, if you use a name, first the file "/etc/hosts" is queried for it, only then the DNS is asked. Because the DNS would not know about your servers this is as it should be.

a possible "/etc/hosts" could look like:

Code:
# Suppose the internal network to be 192.168.128/8
# Layout:  1-50 Infrastructure
#          51-99 Servers
#          100-  Clients

# ------------------------------------------------------------- Infrastructure
192.168.128.1      router router.mynetwork.org
# 192.168.128.2      printer1 printer1.mynetwork.org      # activate if you have a printer

# ------------------------------------------------------------- Servers
192.168.128.51      proliant1 proliant1.mynetwork.org
192.168.128.52      proliant2 proliant1.mynetwork.org
192.168.128.53      proliant3 proliant1.mynetwork.org
192.168.128.54      rasberry1 rasberry1.mynetwork.org
192.168.128.55      rasberry2 rasberry2.mynetwork.org
192.168.128.56      rasberry3 rasberry3.mynetwork.org

# ------------------------------------------------------------- Clients
# This only if you want to use static IPs for the laptop too
# 192.168.128.100     mylaptop mylaptop.mynetwork.org

So far, stay tuned for more. If you have questions, feel free to ask.

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
 

10 More Discussions You Might Find Interesting

1. IP Networking

Connect: Network is unreachable

I am running RH7.3 on a compaq presario box. The network card is a Linksys one. I am only able to communicate with the local network (only the local IPs are accessible). When I try to ping another box I get a "Connect: Network is unreachable" message. What could be the problem. Thanks in... (2 Replies)
Discussion started by: skotapal
2 Replies

2. IP Networking

Cannot connect to rest of network/internet

I have a solaris 9 system that cannot get to the internet and cannot ping outside of the router. I can ping any other system on this campus but when i try to ping any other system outside of the campus im on i get unreachable. Here is the systems info: ip: 10.241.3.254 subnet: 255.254.0.0... (7 Replies)
Discussion started by: meyersp
7 Replies

3. Filesystems, Disks and Memory

How to connect to a Network disk using SAMBA

Hi, I have a network disk that runs windows xp embedded. It doesnt support NFS. But Samba is supported. How do i connect to it through solaris 9. What are the steps required. I have the IP address of the drive. Thanks (1 Reply)
Discussion started by: R00tSc0rpi0n
1 Replies

4. Shell Programming and Scripting

Not able to remotely connect to server using ssh

Hi, I am trying to run the below command in perl but when the perl script is executed it prompts a error message saying " ssh: <username>: Name or service not known ". Not able to understand this as this command runs perfectly on the server prompt. ` ssh <username>@pus4026dev df -k >>... (2 Replies)
Discussion started by: be2sp1
2 Replies

5. UNIX for Dummies Questions & Answers

How to connect remotely to a unix machine

Hello, I am connecting on a machine equiped with Unix, via SSH Secure Shell. On this machine I am running a script and I would like this script to be able to connect to another (Unix) machine to run a different process. In other words: when I am connected on a machine, how can I execute a... (1 Reply)
Discussion started by: jolecanard
1 Replies

6. IP Networking

Can AnyOne Help Me (connect two network)

Hi.. I have problem about connecting two network. First let me tell about my project. I use Quagga to build up IPv6 Island Network. At first, i build one (1) PC Router or one (1) network, i call it as Network A. All PC's or Laptop's (node's) that connect to Network A can communicated to each other... (4 Replies)
Discussion started by: Lieyza
4 Replies

7. Solaris

Cannot connect to network in Solaris 11

I want to install Solaris 11 Express on my x86 system. I'm facing network driver problems. I've 3 network cards: 1. Intel(R) 82579V Gigabit Network Connection In Device Driver Utility, This device is displayed as Ethernet controller, Driver is UNK and its highlighted in RED. 2. Belkin... (3 Replies)
Discussion started by: choudharypranay
3 Replies

8. Shell Programming and Scripting

How to identify a network device before trying to connect to it?

Hello all, Here is the explanation of my problem: I have a cronjob that connects to a NAS to do backups from my laptop to this NAS device. The script that I wrote does check if there is a host (the NAS) responding on 192.168.1.10 and tries to connect to it with the following command: mount -v... (3 Replies)
Discussion started by: freddie50
3 Replies

9. Cybersecurity

When i start CSF i cant connect VPS or download any data into it It appears i cant connect Linux VP?

It appears i cant connect linux VPS server via SSH or i cant SCP any file to it and i cant wget any file TO it (from inside it) while CSF (Config Server Firewall, LFD is running. Just after isntall in default configuration and after changing TESTING mode to LIVE mode. Trying to wget & install... (1 Reply)
Discussion started by: postcd
1 Replies

10. Ubuntu

Could not connect to wireless network

I run lubuntu from usb (try lubuntu, it's not install on my pc ) And i try to connect to network I see the network name And i put the pass But it's not connect.. I tried to open hot spot on my phone and try to connect and it's not connect I have edumax n150 Try to install new driver -... (0 Replies)
Discussion started by: popcoern
0 Replies
All times are GMT -4. The time now is 10:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy