View previous topic :: View next topic |
Author |
Message |
scdgro n00b
Joined: 16 Nov 2002 Posts: 56
|
Posted: Mon Dec 16, 2002 4:23 pm Post subject: dhcp server & ethernet alias |
|
|
I have a gentoo server with to nics.
Just for an experiment i have added an alias to my eth1.
On this alias i want to attach dhclient as a dhcp server.
Now i have a working dhcp on eth1. But when i try to start this on eth1:1 ( after stopped the dhcp server on eth1 ) the program exits with an error.
No subnet declaration written for eth1:1 (0.0.0.0), please do so etc. etc.
And this while the subnet decl. is correct. (192.168.1.0 ) and the eth1:1 with an ip of 192.168.1.3. (checked with ifconfig).
It is clear to me that dhcp-client fetches the wrong ip (don't know how) 0.0.0.0 instead of 192.168.1.3.
Anyone tried this at home ? |
|
Back to top |
|
|
klieber Bodhisattva
Joined: 17 Apr 2002 Posts: 3657 Location: San Francisco, CA
|
Posted: Mon Dec 16, 2002 6:24 pm Post subject: Re: dhcp server & ethernet alias |
|
|
scdgro wrote: | And this while the subnet decl. is correct. (192.168.1.0 ) and the eth1:1 with an ip of 192.168.1.3. (checked with ifconfig). |
Are you sure it isn't complaining about the subnet mask? If it is, it should be something like 255.255.255.0.
What does your /etc/conf.d/net file look like?
--kurt _________________ The problem with political jokes is that they get elected |
|
Back to top |
|
|
scdgro n00b
Joined: 16 Nov 2002 Posts: 56
|
Posted: Mon Dec 16, 2002 9:30 pm Post subject: |
|
|
Quote: |
eth1:1 Link encap:Ethernet HWaddr 00:48:54:6E:B4:2C
inet addr:192.168.1.251 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:10 Base address:0xf000
eth1:2 Link encap:Ethernet HWaddr 00:48:54:6E:B4:2C
inet addr:192.168.1.252 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:10 Base address:0xf000
|
This is my ifconfig.
Quote: |
iface_eth1="192.168.1.250 broadcast 192.168.1.255 netmask 255.255.255.0"
|
and the appropiate line from /etc/conf.d/net |
|
Back to top |
|
|
klieber Bodhisattva
Joined: 17 Apr 2002 Posts: 3657 Location: San Francisco, CA
|
Posted: Mon Dec 16, 2002 9:44 pm Post subject: |
|
|
Can you try to post a bit more accurate information? For instance, in your first post, you talk about dhclient and dhcp-client. Neither of those are packages in portage. Are you referring to dhcp-agent, dhcpcd or ??? Additionally, it isn't clear in your message where you're referring to a dhcp client and where you're referring to a dhcp server.
Then, the IP addresses mentioned in your first and second posts are completely different. 192.168.1.3 vs. 192.168.1.251/2/3, etc.
Next, what is the *exact* error message that you are getting.
Finally, what is your entire /etc/conf.d/net file?
--kurt _________________ The problem with political jokes is that they get elected |
|
Back to top |
|
|
|