[SOLVED]Debian 9.0 network problem.

Help with issues regarding installation of Debian

[SOLVED]Debian 9.0 network problem.

Postby fender0107401 » 2017-07-18 14:37

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
fender0107401
 
Posts: 18
Joined: 2014-05-10 11:42
Location: China, Beijing.

Re: Debian 9.0 network problem.

Postby orythem27 » 2017-07-18 15:28

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
orythem27
 
Posts: 252
Joined: 2017-05-11 07:59
Location: P.R. China

Re: Debian 9.0 network problem.

Postby fender0107401 » 2017-07-19 00:50

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
fender0107401
 
Posts: 18
Joined: 2014-05-10 11:42
Location: China, Beijing.

Re: Debian 9.0 network problem.

Postby orythem27 » 2017-07-19 03:40

I think you have a typo in the interface name.
User avatar
orythem27
 
Posts: 252
Joined: 2017-05-11 07:59
Location: P.R. China

Re: Debian 9.0 network problem.

Postby dilberts_left_nut » 2017-07-19 07:19

Add an 'auto enp3s0' to bring it up on boot.
AdrianTM wrote:There's no hacker in my grandma...
User avatar
dilberts_left_nut
 
Posts: 4661
Joined: 2009-10-05 07:54
Location: enzed

Re: Debian 9.0 network problem.

Postby fender0107401 » 2017-07-19 11:13

enp3s0 Vs. enp0s3

That is the reason. :oops:
User avatar
fender0107401
 
Posts: 18
Joined: 2014-05-10 11:42
Location: China, Beijing.


Return to Installation

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable