Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


xpd



Chief Trash Bandit
9271 posts

Uber Geek
+1 received by user: 1495

Mod Emeritus
Trusted
Lifetime subscriber

Topic # 245598 12-Feb-2019 12:06
Send private message quote this post

What am I doing wrong.......

 

I install Debian 9, and all is well...... then I set the IP to static and all networking comes to a grinding halt. Cant ping etc.

 

 

So the settings I want :  IP 192.168.1.215    Mask 255.255.255.0   GW  192.168.1.1

 

What have I missed/done wrong ? :)

 

Ive followed multiple guides and all give the same result.......

 

TIA

 

 





XPD / Gavin / DemiseNZ

 

Server : i3-3240 @ 3.40GHz  16GB RAM  Win 10 Pro    Workstation : i5-3570K @ 3.40GHz  16GB RAM  Win 10 Pro    Console : Xbox One

 

https://www.xpd.co.nz - Games, geeks, and more.    


Create new topic
184 posts

Master Geek
+1 received by user: 59


  Reply # 2177112 12-Feb-2019 12:16
Send private message quote this post

Did you rename ens33 to eth0?


2062 posts

Uber Geek
+1 received by user: 850

Trusted

  Reply # 2177113 12-Feb-2019 12:16
Send private message quote this post

What does ip neigh show you (arp entries)

 

Do you have an arp 192.168.1.1?


 
 
 
 


xpd



Chief Trash Bandit
9271 posts

Uber Geek
+1 received by user: 1495

Mod Emeritus
Trusted
Lifetime subscriber

  Reply # 2177118 12-Feb-2019 12:34
Send private message quote this post

All I did was modify the interface to static and added the address/net/gw details. (As per every site I found)

 

 

 

 

IP neigh gives me :

 





XPD / Gavin / DemiseNZ

 

Server : i3-3240 @ 3.40GHz  16GB RAM  Win 10 Pro    Workstation : i5-3570K @ 3.40GHz  16GB RAM  Win 10 Pro    Console : Xbox One

 

https://www.xpd.co.nz - Games, geeks, and more.    


xpd



Chief Trash Bandit
9271 posts

Uber Geek
+1 received by user: 1495

Mod Emeritus
Trusted
Lifetime subscriber

  Reply # 2177119 12-Feb-2019 12:35
Send private message quote this post

Dont think it matters, but the Debian install is on a HyperV session.

 

 





XPD / Gavin / DemiseNZ

 

Server : i3-3240 @ 3.40GHz  16GB RAM  Win 10 Pro    Workstation : i5-3570K @ 3.40GHz  16GB RAM  Win 10 Pro    Console : Xbox One

 

https://www.xpd.co.nz - Games, geeks, and more.    


2062 posts

Uber Geek
+1 received by user: 850

Trusted

  Reply # 2177120 12-Feb-2019 12:36
Send private message quote this post

Do you have some sort of funky iptables rules?  Because that looks like you should be able to ping your default GW just fine.  No layer2 issue anyway, you have an ARP for it (assuming that MAC address is the correct MAC of your router)

 

What happens if you flush all the tables (iptables -F)


xpd



Chief Trash Bandit
9271 posts

Uber Geek
+1 received by user: 1495

Mod Emeritus
Trusted
Lifetime subscriber

  Reply # 2177128 12-Feb-2019 13:00
Send private message quote this post

No change........   I'll set it back to Dynamic config and do some more poking from that..... but yeah, everything is showing as being fine which is whats puzzled me. I know Im no Linux guru and my networking skills are so so but even so... :)

 

 





XPD / Gavin / DemiseNZ

 

Server : i3-3240 @ 3.40GHz  16GB RAM  Win 10 Pro    Workstation : i5-3570K @ 3.40GHz  16GB RAM  Win 10 Pro    Console : Xbox One

 

https://www.xpd.co.nz - Games, geeks, and more.    


xpd



Chief Trash Bandit
9271 posts

Uber Geek
+1 received by user: 1495

Mod Emeritus
Trusted
Lifetime subscriber

  Reply # 2177130 12-Feb-2019 13:05
Send private message quote this post

Something weird going on....... changed it back, and still no network. Yet after the initial install, I had network. 

 

Might try another distro.

 

 





XPD / Gavin / DemiseNZ

 

Server : i3-3240 @ 3.40GHz  16GB RAM  Win 10 Pro    Workstation : i5-3570K @ 3.40GHz  16GB RAM  Win 10 Pro    Console : Xbox One

 

https://www.xpd.co.nz - Games, geeks, and more.    


Go Hawks!
905 posts

Ultimate Geek
+1 received by user: 57

Trusted
Subscriber

  Reply # 2177369 12-Feb-2019 21:33
Send private message quote this post

Does ‘dmesg’ give any clues?

I’m suspicious that it might be something systemd related ... (that is just me though ... :-))

403 posts

Ultimate Geek
+1 received by user: 86


  Reply # 2177399 12-Feb-2019 22:58
One person supports this post
Send private message quote this post

So what traffic does tcpdump/tshark/wireshark capture?  At that PC and at the router, if possible.  Do the ping requests actually leave the Debian system?  Does the router see them?  Does it send replies?  Does the Debian system see the reply packets at all?


616 posts

Ultimate Geek
+1 received by user: 43


  Reply # 2177404 12-Feb-2019 23:06
Send private message quote this post

xpd:

 

All I did was modify the interface to static and added the address/net/gw details. (As per every site I found)

 

 

 

Interesting, here is the one that I was using on Debian 8 with static ip:

 

$ cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)

 

# The loopback network interface
auto lo
iface lo inet loopback

 

# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 192.168.1.22
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

 

# Include files from /etc/network/interfaces.d:
source /etc/network/interfaces.d/*.cfg

 

 

 

Now I've switched to a bridge interface with Debian 9 (mostly because it gave more flexibility for things like running VMs under KVM), something like this:

 

$ cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)

 

# The loopback network interface
auto lo
iface lo inet loopback

 

# The primary network interface
allow-hotplug eth0
iface eth0 inet manual

 

auto br0
iface br0 inet static
address 192.168.1.22
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
bridge_ports eth0
bridge_stp off
bridge_fd 0
bridge_maxwait 0

 

# Include files from /etc/network/interfaces.d:
source /etc/network/interfaces.d/*.cfg

 

 

 

Perhaps your config is fine and perhaps I didn't need 'network' and 'broadcast' in mine as I've seen a lot of examples with just 'address', 'netmask' and 'gateway', but it is one thing you could try (although I expect your problems are elsewhere).

 

Do you have any possibility of setting up static addresses in your DHCP server?

 

Then you can just configure your hosts as DHCP and do all your configuration in the DHCP server.





#include <standard.disclaimer>

616 posts

Ultimate Geek
+1 received by user: 43


  Reply # 2177406 12-Feb-2019 23:40
Send private message quote this post

xpd:

 

Dont think it matters, but the Debian install is on a HyperV session.

 

I'm not familiar with HyperV, but if your Debian is a VM guest under VMware and others, you have to set the networking to Bridged (in the VMware or KVM in my case). There are some other options that will not work for static ip addresses in the VM Guest.

 

Like I said, I'm not familiar with HyperV, but I expect there is a setting somewhere. Some virtualisation software will have the default setting set to the one that won't use any more ip addresses in the host subnet (might be a NAT option). This appears to be the "keep the LAN administrator happy" default, but it won't work for static ip addresses in the guest.





#include <standard.disclaimer>

Create new topic



Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.