Linux IP Address Configuration Files Ethernet Device Dynamic Static configuration

Linux Device configuration like Ethernet is stored as text file in the following directory.
/etc/sysconfig/network-scripts/ifcfg-ethx For
IP address

IP address assign in Linux has been perform by through two method
Dynamic configuration
Static configuration
Dynamic configuration files
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp
HWADDR=00:0c:29:4a:f5:14

Static configuration files
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
HWADDR=00:0c:29:4a:f5:14
NETMASK=255.0.0.0
IPADDR=10.0.0.1
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=no

Device configuration options Explanation
HWADDR- used to identify MAC address
BOOTPROTO- whether IP Address is assign by through DHCP or static IP if none mean it is static IP
ONBOOT-whether bring the device up automatically when the system boot.
TYPE- it specify which type of network interface has been used. If Ethernet mean specify Ethernet if it wireless Ethernet mean setting like type=wireless. If it is wifi-specific mean setting such as ESSID

Post a Comment

0 Comments