Fading Coder

One Final Commit for the Last Sprint

Home > Tech > Content

Configuring Network Interfaces via Terminal on BC-Linux 21.10

Tech 1

Enumerate available network adapters to locate the target interface for configuraton. The ip utility displays both administrative and operational states.

$ ip -brief address
lo               UNKNOWN        127.0.0.1/8 ::1/128 
ens224           UP             10.50.20.15/24 fe80::a1b2:c3d4:e5f6:7890/64 
ens225           DOWN           

Verify the physical layer connectivity using hardware diagnostic tools. Confirm that the interface detects an active carrier signal before attempting logical configuration.

$ ethtool ens224 | grep -E "Speed|Link detected"
Speed: 1000Mb/s
Duplex: Full
Link detected: yes

Trdaitional network definitions are stored under /etc/sysconfig/network-scripts/. List the directory contents to identify the file matching the chosen adapter.

$ ls -1 /etc/sysconfig/network-scripts/ifcfg-*
/etc/sysconfig/network-scripts/ifcfg-lo
/etc/sysconfig/network-scripts/ifcfg-ens224
/etc/sysconfig/network-scripts/ifcfg-ens225

Modify the configuraton file to enable automatic address allocation. Set BOOTPROTO to dhcp and ansure the device initializes during system startup by setting ONBOOT to yes.

# /etc/sysconfig/network-scripts/ifcfg-ens224
DEVICE="ens224"
BOOTPROTO="dhcp"
ONBOOT="yes"
TYPE="Ethernet"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"

Reload the adapter configuration to apply the updated parameters. The network service daemon will process the changes and request a lease from the upstream router.

$ ifup ens224

If security policies block required traffic, adjust the firewall daemon behavier. Disabling automatic startup prevents interference during initial network deployment.

$ systemctl disable firewalld
Tags: bclinux

Related Articles

Understanding Strong and Weak References in Java

Strong References Strong reference are the most prevalent type of object referencing in Java. When an object has a strong reference pointing to it, the garbage collector will not reclaim its memory. F...

Comprehensive Guide to SSTI Explained with Payload Bypass Techniques

Introduction Server-Side Template Injection (SSTI) is a vulnerability in web applications where user input is improper handled within the template engine and executed on the server. This exploit can r...

Implement Image Upload Functionality for Django Integrated TinyMCE Editor

Django’s Admin panel is highly user-friendly, and pairing it with TinyMCE, an effective rich text editor, simplifies content management significantly. Combining the two is particular useful for bloggi...

Leave a Comment

Anonymous

◎Feel free to join the discussion and share your thoughts.