Friday, July 25, 2014

How to Configure Network Connection on Oracle Linux

su to root


# vi /etc/sysconfig/network-scripts/ifcfg-em1

HWADDR=88:88:66:88:88:88
TYPE=Ethernet
BOOTPROTO=static
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
NAME=em1
UUID=02ff9edc-9c34-4515-9b13-2c8068888723
ONBOOT=yes
IPADDR=192.168.2.88
NETMASK=255.255.255.0
GATEWAY=192.168.2.1
DNS3=8.8.8.8
DNS2=8.8.4.4
DNS1=127.0.0.1

Similar contents as above.

#service network restart

Done.
You can verify it by
#ip addr
#ip link
#ping ca.yahoo.com

Popular Posts