LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 10-20-2008, 04:58 AM   #1
karthik167
LQ Newbie
 
Registered: Oct 2008
Posts: 2

Rep: Reputation: 0
2 NIC with static and dynamic IP


Hi,

I have 2 NIC installed in my debian machine which is also running a dhcp server (range 10.11.12.1-10.11.12.20. I want eth0 IP assigned by the DHCPserver and eth1 to be a static IP from different network (10.8.4.23).

If I make the changes in /etc/network/interfaces file, it all works for few mins and then the static IP automatically changes to a DHCPserver assigned IP. How do I resolve this issue?

I found by googling that ways to do is

1. deny eth1 in the dhcpd.conf using deny unknown-hosts;

But I dont want to deny all unknown host. I want to deny only a specific MAC. I couldn't find the exact line I need to include in my dhcpd.conf file by googling. It will be grat if someone can help me with this.

2. Second option was to set the static IP by DHCPserver. But since the static IP is on different network, I am not sure how to include this.

Please let me know.

Thanks,
Karthik
 
Old 10-20-2008, 06:20 AM   #2
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
A dhcpd is not limited to dispensing only one IP subnet.

Why have you configured dhcpd to serve a variable address to eth0?
 
Old 10-20-2008, 06:29 AM   #3
karthik167
LQ Newbie
 
Registered: Oct 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pinniped View Post
A dhcpd is not limited to dispensing only one IP subnet.

Why have you configured dhcpd to serve a variable address to eth0?
Actually I am using this as part of PelicanHPC (http://pareto.uab.es/mcreel/PelicanHPC/). So my cluster clients will be assigned IP via DHCP on 10.11.12.x and I am connected to my department network via eth1.
 
  


Reply

Tags
static


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IP Addressing static and dynamic Hockeyfan Linux - Networking 1 10-24-2005 08:06 PM
Dynamic IP to Static Temujin_12 *BSD 2 06-10-2005 05:58 PM
Static vs Dynamic Big Al Linux - Networking 2 12-08-2003 04:10 PM
NS with static or dynamic IP cijunet Linux - Networking 3 05-09-2003 12:04 AM
Dynamic DHCP or static IP joeljensen Linux - Networking 7 04-01-2003 02:50 PM


All times are GMT -5. The time now is 11:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration