LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-22-2023, 06:00 AM   #1
Jason.nix
Member
 
Registered: Feb 2023
Posts: 567

Rep: Reputation: 10
Post The network is not up


Hello,
My Debian box has three NICs:
Code:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: Client: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
    link/ether 34:60:f9:cc:2e:8b brd ff:ff:ff:ff:ff:ff
3: Server: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
    link/ether 34:60:f9:d4:92:06 brd ff:ff:ff:ff:ff:ff
4: Control: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
    link/ether 08:62:66:c8:c3:e8 brd ff:ff:ff:ff:ff:ff
    altname enp0s25
I want to manually set the IP address of the NIC named Control. I added the following lines to the interfaces file:
Code:
auto Control
iface Control inet static
address 172.21.50.28
netmask 255.255.255.128
broadcast 172.21.50.127
After it, the network is not up.

Thank you.
 
Old 11-22-2023, 06:48 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,760

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
debian uses network manager to configure networking. To use the interfaces file you need to stop/disable network manager and start/enable networking service.

You can configure static ip settings with network manager using the utility nmcli or via its desktop applet.
 
Old 11-23-2023, 12:29 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,976

Rep: Reputation: 7336Reputation: 7336Reputation: 7336Reputation: 7336Reputation: 7336Reputation: 7336Reputation: 7336Reputation: 7336Reputation: 7336Reputation: 7336Reputation: 7336
I guess it won't work without gateway, but you know what are you doing.
 
Old 11-24-2023, 11:31 AM   #4
Jason.nix
Member
 
Registered: Feb 2023
Posts: 567

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by pan64 View Post
I guess it won't work without gateway, but you know what are you doing.
Hello,
Thank you so much for your reply.
I added a gateway and did:
Code:
# systemctl restart networking
But, I got an error.

Last edited by Jason.nix; 11-24-2023 at 11:32 AM.
 
Old 11-25-2023, 02:22 AM   #5
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Rep: Reputation: Disabled
Quote:
Originally Posted by Jason.nix View Post
Hello,
Thank you so much for your reply.
I added a gateway and did:
Code:
# systemctl restart networking
But, I got an error.
Show the error here
 
Old 11-28-2023, 11:39 PM   #6
Jason.nix
Member
 
Registered: Feb 2023
Posts: 567

Original Poster
Rep: Reputation: 10
Hello,
Thank you so much for all replies.
I just did a restart and problem solved.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
wifi keeps getting turned off and not finding any network, or not working and not turning off in any way. gets fixed after i reboot. AFKmoein Linux - Wireless Networking 0 09-03-2022 10:47 PM
Linux network architecture - local network vs. LAN network rule LnxNewUser Linux - Newbie 2 11-19-2016 03:49 AM
My Network on a network...Not a VPN Brother Michael Linux - General 3 06-19-2004 08:31 AM
Trouble finding network-network not available General Dude Linux - Networking 2 03-06-2004 06:43 PM
same confugiration and same network two mandrake9.1 one see the network one not. why? durukan Linux - Networking 2 07-25-2003 11:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration