View previous topic :: View next topic |
Author |
Message |
vespaman Guru


Joined: 28 Aug 2002 Posts: 382 Location: Stockholm, Sweden
|
Posted: Tue Sep 01, 2009 1:36 pm Post subject: Is it possible to have both dhcp AND static ip on same NIC? |
|
|
On my stationary computer, I have set-up eth0 like this;
config_eth0=(
"192.168.1.48"
"10.1.10.101/24"
"10.1.10.102/24"
"10.1.10.103/24"
"10.1.10.104/24"
"10.1.10.105/24"
"10.1.10.106/24"
"10.1.10.107/24"
"10.1.10.108/24"
"10.1.10.109/24"
"10.1.10.110/24"
)
I use all the "extra addresses" for software development.
Now, I'd like the same on my laptop, but with the first address being retrieved by dhcp. I tried
config_eth0=(
"dhcp"
"10.1.10.101/24"
"10.1.10.102/24"
"10.1.10.103/24"
"10.1.10.104/24"
"10.1.10.105/24"
"10.1.10.106/24"
"10.1.10.107/24"
"10.1.10.108/24"
"10.1.10.109/24"
"10.1.10.110/24"
)
.. but this does not work, as the extra addresses are removed upon starting eth0.
Can this be done? |
|
Back to top |
|
 |
UberLord Retired Dev


Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
 |
vespaman Guru


Joined: 28 Aug 2002 Posts: 382 Location: Stockholm, Sweden
|
Posted: Tue Sep 01, 2009 1:50 pm Post subject: |
|
|
Well, I can't really tell by invoking dhcpcd (can't find any version info), but at least it is net-misc/dhcpcd 5.0.6 that is installed.
The box is a fresh ~arch installation.
It may be the net.eth startup script that removes these additional static ip's, no? |
|
Back to top |
|
 |
UberLord Retired Dev


Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
 |
vespaman Guru


Joined: 28 Aug 2002 Posts: 382 Location: Stockholm, Sweden
|
Posted: Tue Sep 01, 2009 4:24 pm Post subject: |
|
|
And now (at home) it does not.
Could there be something about the set-up of the dhcp servers or routes? Or perhaps because, at work, we have a windows server doing the dhcp management. At home I have linux.
Will test more tomorrow, thanks!
- Micael |
|
Back to top |
|
 |
|