Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

creating IP aliases

Status
Not open for further replies.

sureshp

Programmer
Aug 28, 2000
79
0
0
Hi All,
I have a problem in creating an alias address for the existing NIC. I have a NIC en0 and it has the address 53.252.38.40 and I am trying to create a alias address as 53.252.38.50. When I do this step using the ifconfig command somebody reocmmended me to put the netmask as FFFFFFFF instead of the orginal netmask. The actual problem is I couldn't able to ping the alias address from my machine itself. Also anybody have any Idea why we have to use this netmask(FFFFFFFF)??

Thanks
Suresh
 
I don't know where have you heard that but positively you have to put your netmask as usual.
I have an ethernet adapter with 2 aliases in this way
Regards
 
Hi swbart,
Thanks for the info. Can you please explain the steps you followed to create the alias.

Thanks to all
Suresh
 
ifconfig en9 inet 192.168.0.5 netmask 255.255.255.0
ifconfig en9 inet 192.168.0.50 netmask 255.255.255.0 alias
to remove

ifconfig en9 inet 192.168.0.50 netmask 255.255.255.0 -alias

have a look at smit menus regarding communications application TCP/IP and its advanced config - ie assign an address to adaptor and add ipv4 alias
 
Suresh,

Rather than use ifconfig you should update inet0 and therefore CuAt with the alias, this will ensure that the alias survives a reboot:

smitty inetalias

select your adapter i.e. en0

Add in your address
Add in you subnet mask i.e. 255.255.255.0

Press return.

Look at the alias via ifconfig -a

Try a test ping.

The subnet mask advice you were given was possibly the worst networking tip I have ever read.

Best of luck

PSD
IBM Certified Specialist - AIX V4.3 Systems Support
IBM Certified Specialist - AIX V4 HACMP
 
What is the importancy of IP aliassing.

Can anyone please clarify on this,

Thank you in advance
 
eg a single server hardware can can make appearance of multiple (web)servers
 
I used do to do this in another way by editing the hosts file

ie, ipaddress:0
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top