Gentoo Archives: gentoo-user

From: Nilesh Govindarajan <contact@××××××××.com>
To: Gentoo User Mailing List <gentoo-user@l.g.o>
Subject: [gentoo-user] Re: Network configuration - Two ips one from dhcp & other static
Date: Sat, 07 Jan 2012 08:11:28
Message-Id: 4F07FDE5.4050309@nileshgr.com
In Reply to: [gentoo-user] Network configuration - Two ips one from dhcp & other static by Nilesh Govindarajan
1 On Sat 07 Jan 2012 01:27:45 PM IST, Nilesh Govindarajan wrote:
2 > Well, the title tells the question clearly; how do I configure network
3 > such that the first ip is obtained via dhcpcd and other is static?
4 > config_eth0="dhcp <static>" doesn't work.
5 >
6 > As a solution I wrote a dhcpcd hook containing /sbin/ifconfig eth0:0
7 > <ip> netmask <netmask>
8 >
9 > Is there a direct way?
10 >
11
12 Yikes! It works now :O
13
14 --
15 Nilesh Govindarajan
16 http://nileshgr.com

Replies