Configuring Network Interfaces via Terminal on BC-Linux 21.10
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