Skip to main content

Explain how to set an alias for the NIC.

45.Explain how to set an alias for the NIC.
Ans.
1. It is possible to assign more than one IP address to a single NIC, these addresses are called as aliases.

2. This is achieved by using the ifconfig and route commands, to add another IP address, 192.168.166.56, to eth0, we have to execute these commands:
#ifconfig eth0:1 192.168.166.56
#route addr – host 192.168.166.56

3. The first command binds the IP address to virtual interface eth0:1 and the second command adds a route for the address to the actual device eth0.

4. Another method is adding second IP address to a single NIC by creating an alias file.

5. The configuration file for device eth0 is /etc/sysconfig /nwtwork-scripts/ifcfg-eth0

6. The above file is copied to another file called ifcfgeth0:1 in the same directory.

7. We need to open the newly copied file and change the line that reads:
DEVICE= eth0 to DEVICE=eth0:1

8. The service of network is restarted for above changes to be affected, these effects are permanent.

Comments

Popular posts from this blog

Java,ES,QT practical files

All practical files: Click below to start download Uploaded on special request||||

How to configure Network file system version 4 (NFSv4) client?

69.How to configure Network file system version 4 (NFSv4) client? Ans. 1. There are two new options listed in NFSv4 are introduced as: clientaddr and ports 2. The version 3 of NFS introduced NFS over TCP, which improved NFS’s reliability. 3. In NFSv3, users use the mount option i.e., tcp as client whether client wants to use TCP or UDP to communicate with the server. NFSv4 replaces tcp or udp with a single option i.e. ports=tcp or udp 4. The default buffer size for NFSv4 is 8192 bytes, but it can grow to as large and by 32,678 bytes, which results performance improvements. 5. Following are the mount options: clientaddr=n – Declares client to be multihomed proto=type – Declares port as either udp or tcp resize=n – declares read size of clients buffer wsize=n – Declares write size of clients buffer sec=mod – Declares security model as either krb, krb5 etc.

Absolute Links vs. Relative Links – SEO Value

Absolute Links vs. Relative Links – SEO Value The debate between  absolute links and relative links  continues to live on in the SEO world. The individual significance of each has been contested, but it is widely regarded that absolute links provide better SEO value on the whole than relative links. Many believe that absolute links have less potential for getting messed up when search engines index your page. It shouldn’t really make a difference, but many conclude that this is reason enough. Read more...