Skip to main content

Posts

Showing posts from April 18, 2008

Network Configuration - Linux OS

Configuring Network for a Linux System Edit configuration files stored in /etc/sysconfig/network-scripts/ You can configure network card by editing text files stored in / etc/sysconfig/network-scripts/ directory . First change directory to /etc/sysconfig/network-scripts/: # cd /etc/sysconfig/network-scripts/ Edit / create files as follows: • /etc/sysconfig/network-scripts/ifcfg-eth0 : First Ethernet card configuration file • /etc/sysconfig/network-scripts/ifcfg-eth1 : Second Ethernet card configuration file For edit/create first NIC file, type command: # vi ifcfg-eth0 Modify as follows: # Intel Corporation 82573E Gigabit Ethernet Controller (Copper) DEVICE=eth0 BOOTPROTO=static DHCPCLASS= HWADDR=00:30:48:56:A6:2E IPADDR=10.10.29.66 NETMASK=255.255.255.192 ONBOOT=yes Save and close the file. Define default gateway (router IP) and hostname in /etc/sysconfig//network file: # vi /etc/sysconfig/network Append/modify configuration as follows: NETWORKING=yes HOSTNAME=www1.nixcraft.in GATEWAY=

Changing Ownership and Group Permissions in Linux

Giving Ownership from 'root' to 'lsadm' for ldirectory [root@seplinuxuatapp1 /]# chown lsadm ldirectory [root@seplinuxuatapp1 /]#ls -l total 197 drwxr-xr-x 2 root root 4096 Apr 9 14:26 bin drwxr-xr-x 4 root root 1024 Apr 9 14:31 boot drwxr-xr-x 22 root root 118784 Apr 10 11:01 dev drwxr-xr-x 55 root root 8192 Apr 11 16:43 etc lrwxrwxrwx 1 root root 9 Apr 9 14:33 home -> /usr/home drwxr-xr-x 2 root root 4096 Jan 24 2003 initrd drwxr-xr-x 11 root root 4096 Apr 9 14:29 lib drwx------ 2 root root 16384 Apr 9 07:23 lost+found drwxr-xr-x 5 lsadm root 4096 Apr 11 16:40 ldirectory drwxr-xr-x 2 root root 4096 Jun 21 2006 misc drwxr-xr-x 4 root root 4096 Apr 9 14:31 mnt drwxr-xr-x 2 root root 4096 Jan 24 2003 opt dr-xr-xr-x 84 root root 0 Apr 10 04:00 proc drwxr-x--- 5

Command to Find Version of Linux OS

Command to Find Version of Linux OS # cat /etc/redhat-release Regards Avinash Pillai URL : http://avinashpillai.blogspot.com Email: avinashp[AT]aztecsoft[DOT]com, avinashp25[AT]gmail[DOT]com