Hi
In my office I need to define a fix IP address for the network-card, but at home everythink works with DHCP.
Why not just add a host statement to the dhcpd.conf at work so you computer
always gets the same "fixed" IP at work while still being configured as a
dhcp client? Example:
host yourbox {
hardware ethernet 12:34:56:78:AB:CD;
fixed-address 207.175.42.254;
}
see man dhcpd.conf
The host statement
host hostname {
[ parameters ]
[ declarations ]
}
There must be at least one host statement for every BOOTP client
that is to be served. host state
ments may also be specified for DHCP clients, although this is not
required unless booting is only
enabled for known hosts.
If it is desirable to be able to boot a DHCP or BOOTP client on
more than one subnet with fixed
addresses, more than one address may be specified in the
fixed-address parameter, or more than one
host statement may be specified.
If client-specific boot parameters must change based on the network
to which the client is attached,
then multiple host statements should be used.
If a client is to be booted using a fixed address if it's possible,
but should be allocated a dynamic
address otherwise, then a host statement must be specified without a
fixed-address clause. hostname
should be a name identifying the host. If a hostname option is not
specified for the host, hostname
is used.
Host declarations are matched to actual DHCP or BOOTP clients by
matching the dhcp-client-identifier
option specified in the host declaration to the one supplied by the
client, or, if the host declara
tion or the client does not provide a dhcp-client-identifier option,
by matching the hardware parame
ter in the host declaration to the network hardware address supplied
by the client. BOOTP clients
do not normally provide a dhcp-client-identifier, so the
hardware address must be used for all
clients that may boot using the BOOTP protocol.
--
David C. Rankin, J.D., P.E.
RANKIN * BERTIN, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
(936) 715-9333
(936) 715-9339 fax
www.rankin-bertin.com
--
----- Original Message -----
From: "Christoph Lehmann"
Hi
In my office I need to define a fix IP address for the network-card, but at home everythink works with DHCP.
since I don't feel like everytime I change to the office or come home to newly define the network card with yast:
Is there a possibility to define one and the same network-card with two different 'profiles' so that I just need to switch the profile ( I think this exists for mac's ...)
many thanks for your kind help
I am sure, there must be many users, facing the same problem
cheers
christoph
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com