You are not logged in.

#1 2008-11-11 11:04:55

Fuzzy_SPb
Member
From: Russia
Registered: 2008-11-10
Posts: 10

DHCPCD_ARGS, can't set classid

Hello all.
Our network has restricted DHCP only for Windows clients. After investigation it was found that DHCP works with any system if DHCP Discover message contains Vendor Class Identifier = "MSFT 5.0". So I want to use in my config

dhcpcd -h $HOSTNAME -i "MSFT 5.0" eth0

As I understand this has to be set up in /etc/conf.d/dhcpcd in option DHCPCD_ARGS. I tried to set

DHCPCD_AGRS="-h $HOSTNAME -i \"MSFT 5.0\""

but this has no effect - command is executed like without quotes around "MSFT 5.0". Of couse I can modify script /usr/lib/network/ethernet (I use net-profiles), but only until next system update.
Could anybody point me where is a mistake in my DHCPCD_ARGS?

Last edited by Fuzzy_SPb (2008-11-11 12:43:26)


Mandriva -> Fedora -> ArchLinux (and CentOS sometimes)

Offline

#2 2008-11-12 06:27:37

Fuzzy_SPb
Member
From: Russia
Registered: 2008-11-10
Posts: 10

Re: DHCPCD_ARGS, can't set classid

At present moment problem is temporary solved by modifying /usr/lib/network/ethernet.subr: to dhcpcd command option -i "$DHCP_CLASSID" added and DHCP_CLASSID="MSFT 5.0" is set up in /etc/conf.d/dhcpcd.
But this solution is not very good I think.
Still waiting for your advices smile


Mandriva -> Fedora -> ArchLinux (and CentOS sometimes)

Offline

Board footer

Powered by FluxBB