This is super simple, just create a new interface file with a colon and a number.
To activate it, just
# ifup eth0:1
thanks , ifconfig eth0:1 x.x.x.x/24 up
Im not sure if its only since CentOS 6, but you can also just add ‘IPADDR2’ to ifcfg-eth0.
So there is no need to add ifcfg-eth0:0
But perhaps there are other advantages of doing so.
But this also works, the server will listen on this IP too.
E.G, add this to the bottom of ifcfg-eth0
Thanks for the update!
Thank you !!!!!!!!!!!!!
Email (required, will not be published)
Subscribe to comments on this post
Copyright © 2017 Your Name Here. All rights reserved.
Paperpunch Theme by The Theme Foundry