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

 

 

 

[SOLVED]Debian 9.0 network problem.

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
User avatar
fender0107401
Posts: 52
Joined: 2014-05-10 11:42

[SOLVED]Debian 9.0 network problem.

#1 Post by fender0107401 »

This is the /etc/network/interfaces file from my vbox debian 9.0 system.
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug enp3s0
iface enp3s0 inet static
address 192.168.1.160
netmask 255.255.255.0
gateway 192.168.1.1
The problem is when the system boots up, it will not config the network interface:
$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 08:00:27:e2:06:48 brd ff:ff:ff:ff:ff:ff
To use the network, I have to su to root and run dhclient, and then everything is fine:
$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 08:00:27:e2:06:48 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.160/24 brd 255.255.255.255 scope global enp0s3
valid_lft forever preferred_lft forever
inet6 fe80::a00:27ff:fee2:648/64 scope link
valid_lft forever preferred_lft forever
Also:
# ifup enp0s3
ifup: unknown interface enp0s3
Last edited by fender0107401 on 2017-07-19 11:18, edited 1 time in total.

User avatar
orythem27
Posts: 252
Joined: 2017-05-11 07:59
Location: P.R. China

Re: Debian 9.0 network problem.

#2 Post by orythem27 »

fender0107401 wrote:iface enp3s0 inet static

2: enp0s3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
Typo in /e/n/i ?
fender0107401 wrote:vbox debian 9.0 system
Bridge mode?

User avatar
fender0107401
Posts: 52
Joined: 2014-05-10 11:42

Re: Debian 9.0 network problem.

#3 Post by fender0107401 »

orythem27 wrote:
fender0107401 wrote:iface enp3s0 inet static

2: enp0s3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
Typo in /e/n/i ?
fender0107401 wrote:vbox debian 9.0 system
Bridge mode?
Yes, that is bridge mode.

I have checked the interfaces file a few times, I think there is no typo.

User avatar
orythem27
Posts: 252
Joined: 2017-05-11 07:59
Location: P.R. China

Re: Debian 9.0 network problem.

#4 Post by orythem27 »

I think you have a typo in the interface name.

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5346
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 12 times
Been thanked: 66 times

Re: Debian 9.0 network problem.

#5 Post by dilberts_left_nut »

Add an 'auto enp3s0' to bring it up on boot.
AdrianTM wrote:There's no hacker in my grandma...

User avatar
fender0107401
Posts: 52
Joined: 2014-05-10 11:42

Re: Debian 9.0 network problem.

#6 Post by fender0107401 »

enp3s0 Vs. enp0s3

That is the reason. :oops:

Post Reply