Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Problems with ip static debian 8

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
Dan81
Posts: 5
Joined: 2017-03-23 21:00

Problems with ip static debian 8

#1 Post by Dan81 »

The connection of my neetbook works fine in dhcp but when I change the file /etc/network/interfaces doesn't have connection

TonyT
Posts: 575
Joined: 2006-09-04 11:57

Re: Problems with ip static debian 8

#2 Post by TonyT »

1. change it to what? did you restart the networking service after making changes?
# iface ethx inet static
# address 192.168.x.x
# netmask 255.255.255.0
# gateway 192.168.x.x

2. is Network Manager managing the interface?

Dan81
Posts: 5
Joined: 2017-03-23 21:00

Re: Problems with ip static debian 8

#3 Post by Dan81 »

I change the file interfaces like this

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.1.140
netmask 255.255.255.0
gateway 192.168.1.1

Then I reboot and eth0 is down

Dan81
Posts: 5
Joined: 2017-03-23 21:00

Re: Problems with ip static debian 8

#4 Post by Dan81 »

I restart the network with /etc/init.d/networking restart and it says ok.

The NetworkManager is disabled

What I have to do now?

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Problems with ip static debian 8

#5 Post by bw123 »

It's okay, there are a lot of threads and wiki pages, plus a pretty long man page for 'interfaces'

Code: Select all

$ man interfaces
What I have to do now?
ifup the interface and see if it works. it should say already up?

https://wiki.debian.org/NetworkConfiguration

this one is good
https://www.debian.org/doc/manuals/debi ... 05.en.html
resigned by AI ChatGPT

TonyT
Posts: 575
Joined: 2006-09-04 11:57

Re: Problems with ip static debian 8

#6 Post by TonyT »

Use sudo ifconfig to see your interfaces. Who knows, your adapter may be eth1.

Dan81
Posts: 5
Joined: 2017-03-23 21:00

Re: Problems with ip static debian 8

#7 Post by Dan81 »

ifconfig shows lo, eth0 and wlan0. If I config the network with ifconfig it runs ok but when reboot only have lo up. If I undo all of the interfaces file it runs ok. What I have to do now?

millpond
Posts: 698
Joined: 2014-06-25 04:56

Re: Problems with ip static debian 8

#8 Post by millpond »

Why is NetworkManager disabled?

Personally, I found it to be much more reliable than the if* utilities. The only bright spot of systemd.
I actually kind of miss it.

User avatar
ralph.ronnquist
Posts: 342
Joined: 2015-12-19 01:07
Location: Melbourne, Australia
Been thanked: 6 times

Re: Problems with ip static debian 8

#9 Post by ralph.ronnquist »

I think you need the line of "allow-hotplug eth0" as well.

Dan81
Posts: 5
Joined: 2017-03-23 21:00

Re: Problems with ip static debian 8

#10 Post by Dan81 »

Is better to enable NM with static ip?

'ifup -a' says:

'run-parts: failed to exec /etc/network/if-pre-up.d/iptables: Exec format error
run-parts: /etc/network/if-pre-up.d/iptables exited with return code 1
ifup: pre-up script failed'

The iptables have one warning:
'insserv: warning: script: 'firewall' missing LSB TAGS and overrides'

Is that the problem?

Post Reply