06-12-2007, 03:47 AM #1
ifconfig - how to setup automatically
- Member Since
- Jun 08, 2007
- iMac 20, C2D 2.16 GHz, 3Gb, 250Gb
I'm using Mac for web development and I need few additional loopback IPs for my dev websites, so in terminal I used this:
sudo ifconfig lo0 alias 127.0.0.2 up
sudo ifconfig lo0 alias 127.0.0.3 up
and it worked great. Hovewer, after shutting down Mac and then starting it again, those loopback IPs were lost and I had to add them again.
Is there a way to automatically run these commands on Mac start, preferably without it asking for my password every time?
P.S. I'm new to Macs, I've been using it only for 4 days, so I have no clue about config files, startup files, etc...
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By imfromwales in forum OS X - Operating SystemReplies: 0Last Post: 11-16-2013, 02:32 AM
By Jbob in forum Images, Graphic Design, and Digital PhotographyReplies: 0Last Post: 03-04-2010, 08:41 PM
By MR M in forum Other Hardware and PeripheralsReplies: 2Last Post: 03-26-2008, 10:49 AM
By ibookmobile007 in forum OS X - Operating SystemReplies: 0Last Post: 02-21-2008, 05:03 PM
By StridingFigure in forum OS X - Development and DarwinReplies: 5Last Post: 05-31-2005, 12:31 PM