OSX literally making up Ip addesses????

Pengu

Digital Music Pimp
Heyas..
I recently did a fresh install of Panther, and today i finally got around to installing Complete Apache, MySQL and PHP. Anyways. I decided to try setting up apache to use virtual hosts, so i could have one address for my personal site's local development, and another for my other stuff (192.168.0.1 and 192.168.0.10, respectively).

So i created a new network interface on 192.168.0.10 (the 0.1 interface was already configured) and went about setting up the virtual hosts in httpd.conf

However, no matter what i did, 192.168.0.1 and 192.168.0.10 would not connect. 127.0.0.1 worked, as did G4.local (my machines "local" name). I just happened to check the access_log, and noticed it was getting requests for 192.168.2.1

So i typed that into safari. and hey presto. THAT worked. I pinged it. THAT worked. I have only one problem. I never configured 192.168.2.1, and i have no interface configured with that address.

I'm attaching three screen shots, the results of ping-ing 192.168.2.1 and the ipaddress/subnet for my two local interfaces.

If anyone can give me any ideas, i'd appreciate it.
 

Attachments

Give a little more info. How did you configure the interfaces? What interface are they on?

Here's a good one: go to the terminal, and type ifconfig - that'll tell you what interfaces are configured.
 
I already know what interfaces are configured. I use dial-up (ppp0) for internet, and the built in ethernet (en0) for the local network, between my machine and an imac. i originally configured the system using system preferences using 192.168.0.1 with a subnet mask of 255.255.255.0
After it wasnt respecting that, i even tried using ipconfig to set it. Doesnt give an error, but it makes no difference to the actual setting.

I'm not a novice. I have only the external test left, and i have CCNA status. But why won't osx respect the settings im entering? i've never had this problem before (from 9 through to x.2)
 
I wasn't saying you didn't know what you were doing, I was asking for more info to be able to help. :p

Look over your first post and see if you'd be able to help someone out with the info you gave.

I do know that OS X likes to default to 192.168.2.x rather than 192.168.0.x ....
 
Sorry if i seemed a little ungracious. I also lost my Documents folder, and my Downloads folder which had 350mb of a 999mb download the day i realised the ip address was screwey. I was slightly less than thrilled.
 
Well just to update those of you who bothered to read. I have finally managed to set the ip address for my NIC as 192.168.0.1
I use ifconfig in the terminal (after a couple of days of being too sh!tted off to try, it worked. However. For whatever reason, System Prefs stores its network data in a plist file (in /Library/Preferences/) (and presumably it is supposed to also make the changes to the actual config as well). This however, means that System Preferences "Network" pane doesnt show the correct info. Why wouldn't it simply do a "ifconfig" to get all the info it needs? I'm starting to become a bit annoyed with apples whole "we're open source!" statement, when they often use less than desirable methods, even when a more viable option is there..
 
Back
Top