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

xpd

Geek @ Coastguard NZ
13765 posts

Uber Geek

Retired Mod
ID Verified
Trusted
Lifetime subscriber

#245598 12-Feb-2019 12:06
Send private message

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

 

 





       Gavin / xpd / FastRaccoon / Geek of Coastguard New Zealand

 

                      LinkTree

 

 

 


Create new topic
Dolts
214 posts

Master Geek


  #2177112 12-Feb-2019 12:16
Send private message

Did you rename ens33 to eth0?




muppet
2566 posts

Uber Geek

Trusted

  #2177113 12-Feb-2019 12:16
Send private message

What does ip neigh show you (arp entries)

 

Do you have an arp 192.168.1.1?


xpd

xpd

Geek @ Coastguard NZ
13765 posts

Uber Geek

Retired Mod
ID Verified
Trusted
Lifetime subscriber

  #2177118 12-Feb-2019 12:34
Send private message

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 :

 





       Gavin / xpd / FastRaccoon / Geek of Coastguard New Zealand

 

                      LinkTree

 

 

 




xpd

xpd

Geek @ Coastguard NZ
13765 posts

Uber Geek

Retired Mod
ID Verified
Trusted
Lifetime subscriber

  #2177119 12-Feb-2019 12:35
Send private message

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

 

 





       Gavin / xpd / FastRaccoon / Geek of Coastguard New Zealand

 

                      LinkTree

 

 

 


muppet
2566 posts

Uber Geek

Trusted

  #2177120 12-Feb-2019 12:36
Send private message

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

xpd

Geek @ Coastguard NZ
13765 posts

Uber Geek

Retired Mod
ID Verified
Trusted
Lifetime subscriber

  #2177128 12-Feb-2019 13:00
Send private message

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... :)

 

 





       Gavin / xpd / FastRaccoon / Geek of Coastguard New Zealand

 

                      LinkTree

 

 

 


xpd

xpd

Geek @ Coastguard NZ
13765 posts

Uber Geek

Retired Mod
ID Verified
Trusted
Lifetime subscriber

  #2177130 12-Feb-2019 13:05
Send private message

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

 

Might try another distro.

 

 





       Gavin / xpd / FastRaccoon / Geek of Coastguard New Zealand

 

                      LinkTree

 

 

 


 
 
 

Cloud spending continues to surge globally, but most organisations haven’t made the changes necessary to maximise the value and cost-efficiency benefits of their cloud investments. Download the whitepaper From Overspend to Advantage now.
wazzageek
1093 posts

Uber Geek

ID Verified
Trusted
Lifetime subscriber

  #2177369 12-Feb-2019 21:33
Send private message

Does ‘dmesg’ give any clues?

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

fe31nz
1228 posts

Uber Geek


  #2177399 12-Feb-2019 22:58
Send private message

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?


alexx
867 posts

Ultimate Geek


  #2177404 12-Feb-2019 23:06
Send private message

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>


alexx
867 posts

Ultimate Geek


  #2177406 12-Feb-2019 23:40
Send private message

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





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









Geekzone Live »

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



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.