11

netcfg and IP aliasing

view full story
linux-howto

https://bbs.archlinux.org – dhaines wrote:Ni Namru,The best "solution" I've found is the following:/etc/network.d/YourNetworkProfile:CONNECTION='ethernet'INTERFACE='eth0'IP='static'ADDR='<your "primary" address>'GATEWAY='<your only gateway, unless netcfg handles static routes>'DNS=(<your DNS server array>)DOMAIN='<your domain>'POST_UP='ip addr add <your CIDR-style "alias" address> brd <your "alias" address's broadcast> dev eth0'PRE_DOWN='ip addr del <your CIDR (HowTos)