Configuring static IP
#1
Hello!

I am trying to assign static IPs to two pines and be able for them to ping each other(for future ssh).

I have edited /etc/network/interfaces:


Code:
interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
# source-directory /etc/network/interfaces.d
# commented out, so it doesnt conflict with this config

# Disable wlan1 by default (8723bs has two intefaces)
iface wlan1 inet manual

auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
dns-nameservers 4.2.2.1 4.2.2.2 8.8.8.8


similarly the second one with the IP: 192.168.1.101, left everything else the same.

I also set managed=true /etc/NetworkManager/NetworkManager.conf so it uses the data from /etc/network/interfaces

Code:
[main]
plugins=ifupdown,keyfile,ofono
dns=dnsmasq

[ifupdown]
managed=true

After a restart I can see in the network manager that both of them are corretly configured, but if I try to ping them with(from 192.168.1.101):
ping 192.168.1.100
it doesnt work.

but if I try to ping the address of my switch: 192.168.1.1, it works on both of them.

The switch in configured with the same gateway and IP: 192.168.1.1
I used longsleeps 10160528 desktop build.
I also cant go on the internet, which is connected to the switch. But between them is a router. Do I have to find out the IP of the router and set it the gateway address of the switch?

I tried using diffrent addresses for the switch(like 192.168.1.2) and use this as a gateway address in /etc/network/interfaces, but still nothing.

Any suggestions on how to make this work?
Also keep in mind, that I am a linux beginner and never did any real networking, so if you can, answer with detailed explanations and forgive my noobism.
Everything happens on purpose by accident.
  Reply


Messages In This Thread
Configuring static IP - by danwald10 - 11-13-2016, 05:21 PM
RE: Configuring static IP - by MarkHaysHarris777 - 11-13-2016, 05:43 PM
RE: Configuring static IP - by danwald10 - 11-13-2016, 07:32 PM
RE: Configuring static IP - by VandaL.pr! - 01-21-2017, 06:31 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  possible to set a static IP using uEnv.txt? cplr 2 5,300 05-13-2016, 06:57 AM
Last Post: RanTalbott

Forum Jump:


Users browsing this thread: 1 Guest(s)