Configure network service on your system.
You can configure your network setting using DHCP or Static.
A. DHCP Configuration
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
BOOTPROTO="dhcp"
HWADDR="C8:60:00:DD:B8:E6"
NM_CONTROLLED="yes"
ONBOOT="yes"
or for wireless set up,
[root@my32GB ~]# vi /etc/sysconfig/network-scripts/ifcfg-wlan0
DEVICE="wlan0"
BOOTPROTO="dhcp"
HWADDR="94:DB:C9:B4:D9:7B"
NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Ethernet"
UUID="58c295da-67d8-4a85-8b0b-ee126775e3a9"
B. Assigning Static IP address
DEVICE="eth0"
IPADDR=192.168.10.125
NETMASK=255.255.255.0
HWADDR="C8:60:00:DD:B8:E6"
NM_CONTROLLED="yes"
ONBOOT="yes"
DNS1=192.168.10.1
# vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=sama.expanor.com
GATEWAY=192.168.10.1
Restart network service.
# service network restart
You can configure your network setting using DHCP or Static.
A. DHCP Configuration
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
BOOTPROTO="dhcp"
HWADDR="C8:60:00:DD:B8:E6"
NM_CONTROLLED="yes"
ONBOOT="yes"
or for wireless set up,
[root@my32GB ~]# vi /etc/sysconfig/network-scripts/ifcfg-wlan0
DEVICE="wlan0"
BOOTPROTO="dhcp"
HWADDR="94:DB:C9:B4:D9:7B"
NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Ethernet"
UUID="58c295da-67d8-4a85-8b0b-ee126775e3a9"
B. Assigning Static IP address
DEVICE="eth0"
IPADDR=192.168.10.125
NETMASK=255.255.255.0
HWADDR="C8:60:00:DD:B8:E6"
NM_CONTROLLED="yes"
ONBOOT="yes"
DNS1=192.168.10.1
# vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=sama.expanor.com
GATEWAY=192.168.10.1
Restart network service.
# service network restart