I have Laptop. I want to assign DHCP ip address, but in my
Laptop having Wireless and with wire NIC cards, it is
possible to assign reserve ip address for both NIC card,
but same host name?

Answers were Sorted based on User's Feedback



I have Laptop. I want to assign DHCP ip address, but in my Laptop having Wireless and with wire NI..

Answer / sripati

yes , it is possible. The Dude is asking a bit tricky
answer. see in dns zone you can find same host name having
two ip address.

Is This Answer Correct ?    6 Yes 1 No

I have Laptop. I want to assign DHCP ip address, but in my Laptop having Wireless and with wire NI..

Answer / amit kumar verma

Yes, I do agree with the above answer but you can provide
reserve IP in the configuration of DHCP server also.


Sample DHCP server config file: (DHCP v3.0.1) /etc/dhcpd.conf
(See /usr/share/doc/dhcp-3.X/dhcp.conf.sample)

ddns-update-style interim; #
Required for dhcp 3.0+ / Red Hat 8.0+
ignore client-updates;

subnet 192.168.1.0 netmask 255.255.255.0 {

range 192.168.1.128 192.168.1.254;
# Range of IP addresses to be issued to DHCP clients
option subnet-mask
255.255.255.0; # Default subnet mask to be used by DHCP
clients
option broadcast-address
192.168.1.255; # Default broadcastaddress to be used by
DHCP clients
option routers 192.168.1.1;
# Default gateway to be used by DHCP clients
option domain-name
"your-domain.org";
option domain-name-servers
40.175.42.254, 40.175.42.253; # Default DNS to be
used by DHCP clients
option netbios-name-servers
192.168.1.100; # Specify a WINS server for MS/Windows
clients.

# (Optional. Specify if used on your network)

# DHCP requests are not forwarded. Applies when
there is more than one ethernet device and forwarding is
configured.
# option ipforwarding off;

default-lease-time 21600;
# Amount of time in seconds that a client may keep the
IP address
max-lease-time 43200;

option time-offset -18000;
# Eastern Standard Time
# option ntp-servers 192.168.1.1;
# Default NTP server to be used by DHCP clients
# option netbios-name-servers 192.168.1.1;
# --- Selects point-to-point node (default is hybrid).
Don't change this unless you understand Netbios very well
# option netbios-node-type 2;

# We want the nameserver "ns2" to appear at a
fixed address.
# Name server with this specified MAC address
will recieve this IP.

host ns2 {
next-server ns2.your-domain.com;
hardware ethernet 00:02:c3:d0:e5:83;
fixed-address 40.175.42.254;
}

# Laser printer obtains IP address via DHCP.
This assures that the
# printer with this MAC address will get this IP
address every time.

host laser-printer-lex1 {
hardware ethernet 08:00:2b:4c:a3:82;
fixed-address 192.168.1.120;
}
}

Is This Answer Correct ?    3 Yes 0 No

I have Laptop. I want to assign DHCP ip address, but in my Laptop having Wireless and with wire NI..

Answer / p

What is the need/use of 'assign reserve ip address for both
NIC card'?

Is This Answer Correct ?    0 Yes 0 No

I have Laptop. I want to assign DHCP ip address, but in my Laptop having Wireless and with wire NI..

Answer / sachinmali17

Yes, It is possible you can give DHCP IP on both the NIC. But online will be only one NIC. If you want to set IP then go into GUI of network setting there you can give IP.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Linux Commands Interview Questions

How can we increase disk read performance in single command?

0 Answers  


What commands are used to see all jobs running in the hadoop cluster and kill a job in linux?

0 Answers  


What is nbtstat command?

0 Answers  


How do you insert comments in the command line prompt?

0 Answers  


Is llvm a virtual machine?

0 Answers  






what is the command for finding the higest memory occupied file in linux?

9 Answers   IBM,


What language is a makefile written in?

0 Answers  


How to monitor ports in a linux machine, with single command?

7 Answers  


what is the command to make a process to run in the foreground from background?

5 Answers  


what is the command to make a process to run in the background from foreground?

5 Answers   Patni,


How do I run whois command?

0 Answers  


What is makefile in unix?

0 Answers  


Categories