Network Connections


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Network Connections
# 1  
Old 12-12-2016
Network Connections

I have a static IP 47.21.154.146 and two computers which I wish to talk to each other. The two IPs are 198.168.1.5 and 198.168.1.6.

How do I do it. For example ls from one computer to the other.

TIA
# 2  
Old 12-12-2016
Sorry? Who has 47.21.154.146, and who has 198.168.1.x?
# 3  
Old 12-12-2016
Rudic -

Thanks.

Code:
47.21.154.146

Public IP address of network
Code:
198.168.1.x

Addresses of the two computers on the network.

meow613
# 4  
Old 12-12-2016
If they are on the same network segment, then the public IP address is not relevant. It does leave a few questions though:-
  • What sort of conversation would you like them to have?
  • What OS are they running?
  • Can you share the output from ifconfig -a or the equivalent for their OS?



Kind regards,
Robin
# 5  
Old 12-12-2016
198.168.1.x is an address from the public internet as well (belongs to a company in Canada).
I guess you mean a private LAN (192.168.x.x)? And the ls command? You'll need to login on the "remote" node and the issue the command you want to run.
To give you any meaningful advice, there's way more detailed info necessary, as rbatte1 already pointed out!
# 6  
Old 12-12-2016
Robin and RudiC

Quote:
There's way more detailed info necessary, as rbatte1 already pointed out!
Please inform me as to what you need and I will try to provide it

meow613

---------- Post updated at 02:02 PM ---------- Previous update was at 12:59 PM ----------

Robin and RudiC -

Hope this is a good start

Code:
root@server1:/# ifconfig -a

eth0      Link encap:Ethernet  HWaddr 00:23:ae:27:b9:ec  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:16 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:1786906 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1786906 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:379353053 (361.7 MiB)  TX bytes:379353053 (361.7 MiB)

wlan0     Link encap:Ethernet  HWaddr 00:24:2c:49:d1:d8  
          inet addr:192.168.1.6  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::224:2cff:fe49:d1d8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:534028 errors:0 dropped:0 overruns:0 frame:8228511
          TX packets:630709 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:277068938 (264.2 MiB)  TX bytes:97055053 (92.5 MiB)
          Interrupt:17 Base address:0xc000

meow613

---------- Post updated at 04:29 PM ---------- Previous update was at 02:02 PM ----------

Sorry -


I forgot to post the results from the second computer.
Here they are.

Code:
root@client1:/home/client1# ifconfig
eth0      Link encap:Ethernet  HWaddr d4:be:d9:32:aa:10  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:20 Memory:e2e00000-e2e20000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:27 errors:0 dropped:0 overruns:0 frame:0
          TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:3077 (3.0 KiB)  TX bytes:3077 (3.0 KiB)

wlan0     Link encap:Ethernet  HWaddr 8c:70:5a:2b:a3:30  
          inet addr:192.168.1.5  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::8e70:5aff:fe2b:a330/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:184 errors:0 dropped:0 overruns:0 frame:0
          TX packets:71 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:52187 (50.9 KiB)  TX bytes:11798 (11.5 KiB)

meow613

---------- Post updated at 05:40 PM ---------- Previous update was at 04:29 PM ----------

Robin and RudiC -

Some answers to your questions -

Quote:
What sort of conversation would you like them to have?
Client/server Code and data

Quote:
What OS are they running?
Debian 8.5

meow613
# 7  
Old 12-13-2016
Thanks for the information. Regarding the conversation that you want them to have, we still need to know more about what "Client/server Code and data" is though. Is this to:-
  • copy data from one to the other
  • drive an application on A that uses data on B
  • drive an application from A that runs on B
  • something else?
We could discuss NFS, FTP, SFTP, Telnet, Remote Shell, Secure Shell, Samba, NetCat, IP sockets, OBDC, etc. etc. but we need to know what you actually want to do with these servers.


Can you explain their purpose?


Kind regards,
Robin
This User Gave Thanks to rbatte1 For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Could you help me writing a script showing which network connections are currently active?

Could you help me writing a script showing which network connections are currently active? Means output should be something like: "eth0, wlan1, wlan3" Problem: The output is supposed to happen on a 16x2 LCD Display. Currently I am doing a "Ifconfig" as output, but its too fast for the... (2 Replies)
Discussion started by: lordofazeroth
2 Replies

2. Red Hat

Network becomes slow and return fast only after restart network

Hi, I have 2 machines in production environment: 1. redhat machine for application 2. DB machine (oracle) The application doing a lot of small read&writes from and to the DB machine. The problem is that after some few hours the network from the application to the DB becomes very slow and... (4 Replies)
Discussion started by: moshesa
4 Replies

3. IP Networking

2 WAN connections on 1 switch/network

I want to know potential problems with the following scenario OR if it is an ok way to have my network setup: I have 2 WAN connections to the internet. I have each WAN connection plugged into its own router. Router DD-WRT is gateway for servers (192.0.10.50). Router Tomato is gateway for pc's... (1 Reply)
Discussion started by: herot
1 Replies

4. IP Networking

preferred network connections

I rotate between a static lan, dhcp lan, and various wireless networks daily. Is there a way to set preferred network connections? I use some static ip's daily, some static ip's like once a month, and almost never use the dhcp lan. The same I do with my various wireless networks. Some I use daily... (0 Replies)
Discussion started by: cokedude
0 Replies

5. IP Networking

Logging network connections

Hello, I have a centralized syslog server, and am wondering if there is a way to log all network connections to it (Primarily incoming, such as FTP, httpd, SSH, etc). Essentially what I would like is to get the information seen in netstat or lsof logged line by line, realtime. Is there a... (3 Replies)
Discussion started by: abstrcrndm
3 Replies

6. IP Networking

ssh server is attachable from local network not from another network

hello i have a ubuntu ssh server that i can acess from any of my comnputers but only if they are on the same wireless network as the server. i tested trhis my tehtehring my samsung blackjack to my windows partition and installing openssh to windows it works when windows is on the wireless but no... (1 Reply)
Discussion started by: old noob
1 Replies

7. Linux

active network connections

how can i see active network connections (1 Reply)
Discussion started by: youmna
1 Replies

8. HP-UX

HP-UX: X connections...?

Hello All, I have 2 qries about X connections on HP-UX : 1.How/where to determine whether "X connections" to the server are controlled. 2. How/where to determine whether "X11 connection" are tunnelled via ssh. 3. How/where to determine the "Time in minutes before unattended X terminals... (0 Replies)
Discussion started by: abhayh
0 Replies
Login or Register to Ask a Question