Wednesday, 19 July 2017

Configure Network Interface - Linux







  1. Create/edit a file /etc/sysconfig/network-scripts/ifcfg-eth0 containing:
    DEVICE=eth0
    BOOTPROTO=none
    ONBOOT=yes
    NETMASK=255.255.255.0 
    IPADDR=192.168.0.12 USERCTL=no
  2. Create/edit the route configuration file /etc/sysconfig/network-scripts/route-eth0:
    default 192.168.0.1 dev eth0



0 comments:

Post a Comment