How to Configure Network Interface With Static IP Address in RPM based Linux
Determine the name of your device
# ifconfig
Create a file in/etc/sysconfig/network-scriptscalledifcfg-XXXX such asifcfg-p34p1 which is the same as the output of "ifconfig".
# iDEVICE=p34p1
IPADDR=192.168.0.10
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
HWADDR=20:CF:30:0F:37:4A
DNS1=192.168.0.1
ONBOOT=yes
NAME=Wired_Connection
BOOTPROTO=none
#NM_CONTROLLED=no: Tell NetworkManager not to control this device
NM_CONTROLLED=no fconfig
Comments
Post a Comment