Google Search

Showing posts with label OEL 6. Show all posts
Showing posts with label OEL 6. Show all posts

Thursday, July 16, 2015

Disable Firewall in Redhat Linux 6.5

Login as root User,

1. Save the firewall setting using the following command :

[root@oracle ~]# service iptables save
 iptables: Saving firewall rules to /etc/sysconfig/iptables:[ OK ]

2. Stop iptables using the following command :

[root@oracle ~]# service iptables stop
 iptables: Flushing firewall rules: [ OK ]
 iptables: Setting chains to policy ACCEPT: filter [ OK ]
 iptables: Unloading modules: [ OK ]

3. Execute this chkconfig command :

[root@oracle ~]# chkconfig iptables off

Tuesday, December 2, 2014

OEL 6 network configuration setup

It's a reported bug for RHEL 6, Follow these steps to get up and running network connection .

Setting up Automatic IP:

1.Enter into root user
 
   $su -
  
   Enter password for root user


2. #vi /etc/sysconfig/network-scripts/ifcfg-eth0 (which is your defualt first NIC configuration file)
  
    ONBOOT="yes"
    BOOTPROTO="dhcp"  (If you are using dhcp)


  Save & restart networking service,

3. Restart network
 
     #service network restart (or) #/etc/init.d/network restart
4. Check the ip address by using below commands.
 
     From root user : # ifconifig
    From normal user : $/sbin/ifconfig

Setting up Static/Manual IP:

If you are providing manual IP then, edit it like this;

DEVICE=eth0
           IPADDR=10.10.10.10
           NETMASK=255.255.255.0
           NETWORK=10.10.10.0
GATEWAY=10.10.10.253
           ONBOOT=yes
           BOOTPROTO=none
           USERCTL=no


Save & restart networking service.

1.Enter into root user
 
  $su -  
   Enter password for root user


2.Restart network
 
  #service network restart (or) #/etc/init.d/network restart          

3.Check the ip address by using below commands.

  From root user : # ifconifig
  From normal user : $/sbin/ifconfig

For more information regarding this network setup, please read the below URL for clear explanation.
http://oracle-base.com/articles/linux/linux-network-configuration.php

OR you can use simple Network Configuration tool  to configure IP's but the highlighted two lines are compulsory to add manually in the file.