LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   The network is not up (https://www.linuxquestions.org/questions/debian-26/the-network-is-not-up-4175731104/)

Jason.nix 11-22-2023 06:00 AM

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.

michaelk 11-22-2023 06:48 AM

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.

pan64 11-23-2023 12:29 AM

I guess it won't work without gateway, but you know what are you doing.

Jason.nix 11-24-2023 11:31 AM

Quote:

Originally Posted by pan64 (Post 6466155)
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.

linux-man 11-25-2023 02:22 AM

Quote:

Originally Posted by Jason.nix (Post 6466507)
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

Jason.nix 11-28-2023 11:39 PM

Hello,
Thank you so much for all replies.
I just did a restart and problem solved.


All times are GMT -5. The time now is 09:22 AM.