Checking IP Address Details
#ifconfig
This will define the IP address of one interface. If the PC has two NICs, then it could have two IPs. The Networl configuration file could be found in
#cd /etc/sysconfig/network-scripts
In this there are several files. "ifcfg-eth0" contains the Network Card information. The file looks as follows.
DEVICE = eth0 [This is the first NIC interface]
BOOTPROTO = [dhcp OR static ---> If it is DHCP the card will listen to a DHCP Server]
HWADDR = 00:06:5B:22:FS:8E [MAC Address]
ONBOOT = yes [For the Network to load at boot-up]
TYPE = Ethernet
To add a IP Address change the file as
BOOTPROTO = static
and add
IPADDR = 192.168.190.1[The IP you wish to assign]
Optionally you could perform the same thing by
#netconfig
OR
#ifconfig 192.168.190.1/24
After completing the Network Services should be restarted.
#service network restart
Once again if you check out the IP address you may see
#ifconfig
'etho' will have an IP Address
'l0' is for the Loop Back IP
Now you Computer has been set up for the network. Try to 'ping' another PC on the WORKGROUP. It should work.
Good Luck....!
Tuesday, July 28, 2009
Saturday, July 18, 2009
Accessing NTFS Partitions from RHEL 4
By default RHEL 4 kernel supports READ and WRITE access for FAT partitions, while it does not does not support NTFS read or write access. So we have to upgrade the kernel by down loading and installing necessary kernel modules to the Linux System. It could be downloaded through http://www.linux-ntfs.org
For this you should first find the current Kernel version of your Linux Installation.
#uname -r [ENTER]
To see the Processor version
#uname -p [ENTER]
Now install the Downloaded package
#rpm -ihv kernel-ntfs-2.4.18-14.i686.rpm [ENTER]
Now you have to load the installed modules to the running kernel.
#modprobe ntfs [ENTER]
To create a mount point
# mkdir /media/Windows
Automatically mounting the Microsoft partitions when the System starts up.
To this you should edit a system file called 'fstab'. Find it and open it with 'vi'. In it we should and a new entry
/dev/hda1[tab][tab]/media/Windows[tab]ntfs[tab]defaults[tab]0[space]0
Save and EXIT.
Now mount the Partitions.
#mount /media/Windows
For this you should first find the current Kernel version of your Linux Installation.
#uname -r [ENTER]
To see the Processor version
#uname -p [ENTER]
Now install the Downloaded package
#rpm -ihv kernel-ntfs-2.4.18-14.i686.rpm [ENTER]
Now you have to load the installed modules to the running kernel.
#modprobe ntfs [ENTER]
To create a mount point
# mkdir /media/Windows
Automatically mounting the Microsoft partitions when the System starts up.
To this you should edit a system file called 'fstab'. Find it and open it with 'vi'. In it we should and a new entry
/dev/hda1[tab][tab]/media/Windows[tab]ntfs[tab]defaults[tab]0[space]0
Save and EXIT.
Now mount the Partitions.
#mount /media/Windows
Subscribe to:
Posts (Atom)