- 论坛徽章:
- 0
|
the patch to how to set dhcp(client)
if you have mutil-interfaces ,
and just want set some interfaces by dhclient ,
you shoud do like below :
#/etc/rc.conf
dhclient=YES
#/etc/dhclient.conf ,
#the interfaces in this file will be configured only by dhclient,
#the interfaces not in this list will not configure by dhclient !
timeout 60;
retry 60;
reboot 10;
select-timeout 5;
inital-interval 2;
interface "name of your interface" {
send host-name "hostname of your machine";
send dhcp-client-identifier "hostname of your machine";
media "media 10baseTX"; #the model of you interface
}
interface "name of your next interface" {
send host-name "hostname of your machine";
send dhcp-client-identifier 00:0a:eb:4e:ef:a4; #the MAC of your interface
media "media 10baseTX";
}
#if you need ,you may attatch alias to interface ,do like below
alias {
interface "name of interface which you want to alias";
fixed-address 192.168.1.1;
option subnet-mask 255.255.255.0;
}
that's over. |
|