Author Topic: IP Addresses flip-flop  (Read 2545 times)

Offline pendragon

  • TS Addict
  • *****
  • Posts: 7178
    • View Profile
    • http://www.pendragonservices.com
IP Addresses flip-flop
« on: June 14, 2007, 12:31:49 PM »
Every once in awhile, I notice that the IP address in my 2 networked (wired router) computers (both 10.4.9) trade numbers. This causes no problems of which I am aware, but it is a puzzlement. eek2.gif

What am I doing to cause this, and is there a way to intentionally reset them to their original state? dntknw.gif
« Last Edit: June 14, 2007, 12:34:38 PM by pendragon »
Those who can make you believe absurdities can make you commit atrocities. ~ Voltaire

Offline bobw

  • TS Addict
  • *****
  • Posts: 611
    • View Profile
    • http://
IP Addresses flip-flop
« Reply #1 on: June 14, 2007, 01:40:52 PM »
If you shut down the machines, then boot again, the IP numbers can change this way.

You can set the router to MAC address for each machine to the specific IP number.

Offline pendragon

  • TS Addict
  • *****
  • Posts: 7178
    • View Profile
    • http://www.pendragonservices.com
IP Addresses flip-flop
« Reply #2 on: June 14, 2007, 02:30:28 PM »
Thanks Bob,

I know the address change somehow relates to restarts, but I haven't a clue what's causing or directing this activity. Changing the startup sequence of the two computers has no apparent affect (as has changing the ethernet router ports).

Other than assigning my own IP addresses, have I no recourse?

BTW, are those IP addresses generated/assigned by my router or my computer(s)?

Ah, networking, another area in which I excel. toothgrin.gif
Those who can make you believe absurdities can make you commit atrocities. ~ Voltaire

Offline kelly

  • TS Addict
  • *****
  • Posts: 17035
    • View Profile
    • http://
IP Addresses flip-flop
« Reply #3 on: June 14, 2007, 07:02:47 PM »
Usually it's your Router Harv. smile.gif

DHCP.

"Most home routers and firewalls are configured in the factory to be DHCP servers for a home network. An alternative to a home router is to use a computer as a DHCP server. ISPs generally use DHCP to assign clients individual IP addresses."

http://en.wikipedia.org/wiki/DHCP

It will assign Private Addresses.

Is this a problem?
kelly
Veteran SuperUser

Offline pendragon

  • TS Addict
  • *****
  • Posts: 7178
    • View Profile
    • http://www.pendragonservices.com
IP Addresses flip-flop
« Reply #4 on: June 15, 2007, 06:35:34 AM »
I'm having no problems Sir Kelly. It's just that I am curious why (and how) sometimes it's one way, and other times it's the other. I know that the change occurs after some, but not all, shutdowns and restarts.

The issue (for me) is why it does what it does, and other than assigning a fixed IP address, do I have any control over the flip-flop?
Those who can make you believe absurdities can make you commit atrocities. ~ Voltaire

Offline Xairbusdriver

  • Administrator
  • TS Addict
  • *****
  • Posts: 26388
  • 27" iMac (mid-17), Big Sur, Mac mini, Catalina
    • View Profile
    • Mid-South Weather
IP Addresses flip-flop
« Reply #5 on: June 15, 2007, 12:17:37 PM »
I have written about this unneccessary swapping before and have always been told, "It ain't no problem, get used to it!" However, if you use aliases of your other computer(s) on your Desktop for extremely simple drag-n-drop file tranfers or double-click access to said machines, it is a problem. Contrary to the ability of aliases in the file system to keep up with the directory location of the parent file location, a network alias cannot do this. So, when a machine or router is shutdown or suffers a power loss, the machines may get new IP addresses and the aliases are useless. Of course, one can always go through the "Go" menu and re-establish/recreate the aliases. No 'problem'.

But I grew tired of that and thought there must be a simpler, Apple way of setting up the LAN. There is, and it's Apple simple and stable. clap.gif

Just assign the IP numbers you want to use to each machine and set the Network->Built-in Ethernet-TCP/IP "Configure IPv4:" to "Manual". You may have to ask you ISP for the DNS Server addresses, if they don't show up automatically. With a wired LAN your address will probably start with 192. With a wirless LAN the numbers usually start with 10. In either case, it's more helpfull to have each machine assigned consecutive addresses so the router can easily add new devices with numbers you'll probably know yourself. Don't start with x.y.z.0, start with ...1 and continue with as many machines as you have.

It doesn't even matter if your router still uses DHCP to assign addresses. It will simply and logically see that there are certain numbers already in use and use any of the remaining 250+ available.

And, all your aliases, will remai useable for file transfers! Regardless of what hapens to startup sequence/power stoppage/moon phases/'no problem' suggestions. tongue.gif

Would you carry a dozen keys for your car because you never knew which one would be required to start it next time? :headbash: But it's your LAN, create it any way you want. smile.gif
THERE ARE TWO TYPES OF COUNTRIES
Those that use metric = #1 Measurement system
And the United States = The Banana system
CAUTION! Childhood vaccinations cause adults! :yes:

Offline pendragon

  • TS Addict
  • *****
  • Posts: 7178
    • View Profile
    • http://www.pendragonservices.com
IP Addresses flip-flop
« Reply #6 on: June 15, 2007, 01:50:56 PM »
thanx.gif ABD,


As I am having no problems, well, besides being too dense to divine the rationale behind all this, I’ll not go the “manual” route. Art least not for now.

Perhaps if I have some time next week, I’ll try shutting down my entire system (computers, modem, & router) and see if I can force a change. Ah, the drama of it all. Groaner.gif
« Last Edit: June 15, 2007, 01:52:34 PM by pendragon »
Those who can make you believe absurdities can make you commit atrocities. ~ Voltaire

Offline pendragon

  • TS Addict
  • *****
  • Posts: 7178
    • View Profile
    • http://www.pendragonservices.com
IP Addresses flip-flop
« Reply #7 on: June 21, 2007, 06:47:08 AM »
Problem/riddle solved (I think).

I know that IP addresses are normally assigned by the router, with the first number going to the first machine booting up and so on.

Even though I tried shutting down and rebooting in a different sequence, there was no change in the assigned IP addresses.  wallbash.gif

Then it finally dawned on me. doh.gif

My DHCP lease was for seven days. So I changed the lease to one hour, shut everything down (computers, modem & router) over night and then brought the system back up. Voila, I now know how the flip-flop occurs and what I can do about it.  

But other than being a tad bit smarter re routers, there is no operational benefit, at least in my case.

Can a little bit of knowledge be a dangerous thing? Nah, not for a TSer. laugh.gif
Those who can make you believe absurdities can make you commit atrocities. ~ Voltaire

Offline Xairbusdriver

  • Administrator
  • TS Addict
  • *****
  • Posts: 26388
  • 27" iMac (mid-17), Big Sur, Mac mini, Catalina
    • View Profile
    • Mid-South Weather
IP Addresses flip-flop
« Reply #8 on: June 21, 2007, 11:44:39 AM »
The only DCHP lease time I'd use would be "Infinity"! Why bother with any changes? dntknw.gif wallbash.gif It's your LAN. Make it work for you instead of how someone thinks it should or how they did historically.

I think the confusion ( at least in my early learning and use ) comes from the fact that cable/DSL modems force us to use DHCP for connecting to the internet, just so they can provide a 'benefit' for the extra charge they ask for to assign you a permanent address. But that use of DHCP does not mean you have to use it on your own LAN. smile.gif

OK, having a fixed IP address on the internet also gives you the advantage of running a web site on your local machine. And that's the reason the companies say you can't do it without paying extra. At least with a cable system, the speeds decrease every time another neighborhood machine on the accesses the internet. DSL may not have this problem, but I'll bet they still want to charge you for a 'static' address. Thinking.gif
« Last Edit: June 21, 2007, 11:49:09 AM by Xairbusdriver »
THERE ARE TWO TYPES OF COUNTRIES
Those that use metric = #1 Measurement system
And the United States = The Banana system
CAUTION! Childhood vaccinations cause adults! :yes: