1830367 Members
2159 Online
110001 Solutions
New Discussion

netmask in alias

 
Tonatiuh
Super Advisor

netmask in alias

Red Hat Enterprise Linux 4

I have an alias for eth0, named eth0:1.

I want to change the netmask of this eth0:1. System-network-config does not show this alias, just the base devices (eth0 and eth1), but not the alias (eth0:1).

How can I change the netmask of this alias (eth0:1)?

3 REPLIES 3
Alexander Chuzhoy
Honored Contributor

Re: netmask in alias

edit the file /etc/sysconfig/network-scripts/ifcfg-eth0:1 and change the line beggining with NETMASK= per yor needs.
After the change save the file and restart the network service with: service network restart or bring down and uo the base device.
ifdown eth0; ifup eth0
Tonatiuh
Super Advisor

Re: netmask in alias

That file (/etc/sysconfig/network-scripts/ifcfg-eth0:1) does not exist.

I have searched for that file:

find / -name ifcfg-eth0:1 -print

and the file does not exist in the machine.

This alias was created by Oracle Cluster software.

Any other idea about where can I find any file or about any command to execute to change this netmask for this alias?
Bill Thorsteinson
Honored Contributor

Re: netmask in alias

You can change the netmask using ifconfig.

The oracle software may have a place to
alter the netmask. If this is for clustering
the cluster should have its own interface
to prevent network load from causing the
cluster to incorrectly assume a node has
dropped out.