Question

assign static ip to enterprise linux through d-link router isp gives dhcp ip address

Asked by: ora-what

Hi,

I have a home network of 2 PC connected to a D-Link DI-604 Router.

So you get the picture, the router has a WAN port and 4 LAN ports.

PC #1 is physically attached to LAN port #1
PC #2 is physically attached to LAN port #2

My DSL modem is physically attached to the WAN port.

The router provides internet for both machines.

PC #1 is running Oracle Enterprise Linux and I need to assign a static ip address
PC#2 is running a windows os

I am able to ping over the network from windows to linux as I'm testing the linux ip address.

The problem is whenever the linux machine reboots it gets assigned a new ip address. I can see the ip address
appear in my router configuration through its web browser interface on the windows machine PC#2.

I have tried assigning a static ip through the router and there is that means to do it but it doesn't stay.
 

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-07-12 at 16:10:05ID24564032
Tags

ip address static dhcp oracle enterprise linux vm d-link dlink router lan wan

Topics

Network Routers

,

Linux Networking

,

Miscellaneous Networking

Participating Experts
2
Points
500
Comments
23

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. DSL Modem
    Hoe do I view or change my DSL modem's IP address? I need to configure a router & I need to find the IP address of my DSL modem. Please help. It is a Paradyne 6310MVL.
  2. Difference between DSL modem and router
    I have to expose my ignorance. What is a DSL modem? The term sometimes seems to be used interchangeably for a router. Are they the same? I have DSL, but I do not have a "DSL Modem"--my telephone line merely plugs into my router and another line goes from the rou...
  3. DNS problems. Internet connection via DSL/router,WAN…
    I recently upgraded to DSL via a modem/router instead of dialup and Wingate. Since then users cannot connect to the headoffice WAN over the secure dialup and browse simultaneously. It appears to be a DNS problem as the browser looks to the headoffice server instead of the rou...
  4. Configuring 2600 to connect with DSL router/modem.
    Customer needs 2600 installed between WAN and LAN. I configured the e0/0 interface to pull ip from the ISP DHCP, as per instructions from ISP tech support. However, the e0/0 interface is not pulling a ip. I've noticed the ISP has PPPoA VC-mux configured on the modem. Is this ...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: thinkpads_userPosted on 2009-07-12 at 16:21:42ID: 24836379

Pull up the router configuration web page for the D-LINK router and see where it assigns DHCP (probably 192.168.x.100 through 150 or 199 or such like). Reconfigure DHCP addressing to something here (e.g. start it at 200). Restart the router. Then configure your PC's for static addresses starting at 100. You can start them anywhere really, I am just giving some ideas for relocating DHCP to have it out of the way. You can also disable it, but you might want it some day. ... Thinkpads_User

 

by: KeremEPosted on 2009-07-12 at 16:49:57ID: 24836453

Hi,

You need to check the MAC address of your Oracle Enterprise Linux Box Ethernet interface with a command like that:

ifconfig eth0 | head -1

the numbers following the HWaddr label will be your MAC address.

- Now logon to your DI-604.
- Click DHCP button on the left menu
- Click "Enabled" under ""Static DHCP"
- Enter a Name "Oracle EL"
- Enter the last digit of the IP address you want to assign to the box.
- Enter Mac address you've got from the Linux Box
- Click Apply.

This is it.

 

by: ora-whatPosted on 2009-07-12 at 16:51:06ID: 24836459

ok i made that change,

in my router's home page I'm in home-dhcp

this is what is says in the router web page

"DHCP Server
The DI-604 can be setup as a DHCP Server to distribute IP addresses to the LAN network."

here I set the range to 192.168.0.200 - 250

"Static DHCP
Static DHCP is used to allow DHCP server to assign same IP address to specific MAC address"

here I am able to clone the MAC address of an ip address that appears in the Dynamic IP Client list (below)
and it then appears in the Static Client IP Address (below)

"Static DHCP Client List"

this list is currently empty

"Dynamic DHCP Client List
Host Name       IP Address       MAC Address       Expired Time       
      192.168.0.200      00-00-6c-f0-4d-fc      Apr/08/2002 03:01:40"

this .200 ip address appeared after I restarted the linux machine PC#1
it's the only client in the list

I restarted the router.


I restarted PC#1 (the linux machine) and when it starts it shows that

my eth0 interface has ip address 192.168.0.200 (as shown in the router Dynamic DHCP Client list)


in linux now I want to give this machine a static ip

so I vi /etc/sysconfig/network-scripts/icfg-eth0

I get

#nVidia Corporation MCP61 Ethernet
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp
HWADDR=00:00:6c:f0:4d:fc


should I change this file?
if so, how should I change it considering my router?




 

by: ora-whatPosted on 2009-07-12 at 16:52:11ID: 24836462

oh I just saw your comment KeremE I will try that...

 

by: ora-whatPosted on 2009-07-12 at 17:03:20ID: 24836500

Hi,

I did what you suggested,

I did:

ifconfig eth0 | head -1
I got the MAC address. It was the same address that was shown in the Dynamic DHCP Client List in the router web page for 192.168.0.200.

So under Static DHCP I gave it a name Oracle EL and entered the MAC address I got from the linux machine.
I gave it ip address 192.168.0.122 (to be out of the way of the 200 - 250 range that it now provides).
I clicked apply and I notced the the listing for 192.168.0.200 under Dynamic DHCP Clients List disappeared.

I rebooted the linux machine and it gave me ip address 192.168.0.200.

So, the static ip specified in the router doesn't seem to be working.

I think I also need to give the linux machine a static ip to match.

Could anyone help me do that?

 

by: KeremEPosted on 2009-07-12 at 17:03:32ID: 24836502

Oracle Enterprise Linux is just some rebranded RedHat Enterprise Linux. So you need to modify here to make your change permanent:

/etc/sysconfig/networking/profiles/default/ifcfg-eth0

- Locate BOOTPROTO=  modify it  to read "none"
- Locate the IPADDR= modify it to reflect your proposed IP address.
- Modify NETMASK= if you need. If you want to assign a Default Gateway you need to modify :
- Locate GATEWAY= and modify itto reflect your DG.

Save & exit

 

by: ora-whatPosted on 2009-07-12 at 17:04:29ID: 24836503

I also noticed that the linux machine was ALSO assigned a different MAC address

 

by: ora-whatPosted on 2009-07-12 at 17:06:42ID: 24836512

ok I see,

well my /etc/sysconfig/networking/profiles/default/ifcfg-eth0 directory is empty

do i need to create the file?

 

by: KeremEPosted on 2009-07-12 at 17:12:15ID: 24836524

Modify it to look like this:

TYPE=Ethernet
DEVICE=eth0
HWADDR=00:00:6c:f0:4d:fc
BOOTPROTO=none
NETMASK=255.255.255.0
IPADDR=192.168.0.122
ONBOOT=yes
USERCTL=no
IPV6INIT=no
PEERDNS=no
GATEWAY=192.168.0.1

 

by: KeremEPosted on 2009-07-12 at 17:12:54ID: 24836527

no you can use the one you've discovered yourself.

 

by: KeremEPosted on 2009-07-12 at 17:13:54ID: 24836531

So you can go either with this MAC or you can change the IP in the file.

 

by: KeremEPosted on 2009-07-12 at 17:16:14ID: 24836533

Forget my note id {24836524}. Just do it this way. I've forgotten your Oracle Enterprise Linux is RedHat 4.x

#nVidia Corporation MCP61 Ethernet
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
HWADDR=00:00:6c:f0:4d:fc
NETMASK=255.255.255.0
IPADDR=192.168.0.122
GATEWAY=192.168.0.1

 

by: KeremEPosted on 2009-07-12 at 17:17:20ID: 24836537

BOOTPROTO=static

is better for your version I guess..

 

by: ora-whatPosted on 2009-07-12 at 17:29:08ID: 24836568

ok I changed the file to this in /etc/sysconfig/network-scripts/ifcfg-eth0

TYPE=Ethernet
DEVICE=eth0
HWADDR=00:00:6c:f0:4d:fc
BOOTPROTO=none
NETMASK=255.255.255.0
IPADDR=192.168.0.122
ONBOOT=yes
USERCTL=no
IPV6INIT=no
PEERDNS=no
GATEWAY=192.168.0.1

then I rebooted the machine

i saw at start that I was assigned ip address 192.168.0.201
with mac address 00-00-6c-5f-22-43


#nVidia Corporation MCP61 Ethernet
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp
HWADDR=00:00:6c:5f:22:43


so the changes I made do not stay

in my router there are now 2 entries under

Dynamic DHCP Client List
Host Name       IP Address       MAC Address       Expired Time       
      192.168.0.201      00-00-6c-5f-22-43      Apr/08/2002 03:41:36
      192.168.0.200      00-00-6c-3a-66-11      Apr/08/2002 03:16:50

and the same static entry is still there

Static DHCP Client List
        Host Name       IP Address       MAC Address       
      Oracle VM Server      192.168.0.122      00-00-6c-f0-4d-fc


they keep changing..

 

by: KeremEPosted on 2009-07-12 at 17:43:10ID: 24836594

I guess this is not an issue with Oracle Enterprise but it is a problem with VMWare. Please check this here:

http://www.vmware.com/support/ws55/doc/ws_net_advanced_mac_address.html

 

by: thinkpads_userPosted on 2009-07-12 at 17:50:31ID: 24836611

Is the Oracle machine a Viirtual Machine? If so, put it in Bridge mode (you have a router) and then VMware will not interfere with the Oracle VM with respect to DHCP. ... Thinkpads_User

 

by: ora-whatPosted on 2009-07-12 at 17:53:24ID: 24836618

it's not vware

it's a product called Oracle VM Server

you can download it for free

it's really a minimal version of Oracle Enterprise Server

 

by: ora-whatPosted on 2009-07-12 at 17:53:48ID: 24836619

it's not VMware sorry

 

by: KeremEPosted on 2009-07-12 at 18:01:04ID: 24836633

Yeah :)

But oracle dose not really make its VM server but I was thinking that it was rebranded VMWare. However I now see that  it is actually Xen server. I was thinking that this reminds me XEn because if you don't assign a MAC to Xen it does excatly the same thing.

You need to locate the config file for your VM. It should normally rest at /etc/xen:

Find the line in it:

vif = [ "bridge=xenbr0" ]

and chenge it to:

vif = [ "mac=00-00-6c-5f-22-43,bridge=xenbr0" ]



 

by: KeremEPosted on 2009-07-12 at 18:05:19ID: 24836642

The document server says the file is named vm.cfg

 

by: ora-whatPosted on 2009-07-12 at 19:23:34ID: 24836837

yes the release is this:

2.6.18-8.1.15.3.1.el5xen


I will let know what happens very soon.....

 

by: KeremEPosted on 2009-07-12 at 19:33:48ID: 24836855

Ok take your time.

This is a known problem with XEN. But I'd never met one because I always assign a MAC address to my virtual interfaces during installation cus I'd always though that this would be a potential pitfall.

Oracle has its Enterprise Linux but it does not develop its own Linux distro. They re simply re-branding Red Hat Enterprise. It seems that they are actually repacking Xen enabled kernel over Red-Hat enterprise as a different product.

Why don't you go for CentOS it is directly built from RHEL sources and rebranded. It is free. You can find lots of documentation on implementing. XEN clients.

The community does not like Re-branded and priced software as it is often means stipulations on source code availability and modification polices. I'll suggest you to go with the Open source and well documented Xen host such as CentOS. Or if you want to be on the safe side you can directly go for Red Hat Enterprise instead.

Cheers,
K.

 

by: ora-whatPosted on 2009-08-03 at 16:17:25ID: 25009378

I actually got this working by installing Oracle VM Server into VMWare workstation 6.5 using this article,

http://www.planetmy.com/blog/how-to-install-oracle-vm-in-vmware-workstation/

the ip address stayed the same for oracle vm server

i was also able to install the Oracle VM manager on oracle enterprise linux in vmware workstation 6.5 and got it working with the Siebel 8.1 template

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...