Berkeley CSUA MOTD:Entry 13077
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/05/24 [General] UID:1000 Activity:popular
5/24    

2004/4/7-8 [Computer/Networking, Computer/SW/OS/OsX] UID:13077 Activity:nil
4/7     What startup script or configuration file can be modified to set
        the ip address of a unix (actually Mac OS X) box to a particular
        value?  This is an emergency.  Thanks a lot in advance!
        \_ you can try running ifconfig or ipconfig *after* startup.
           http://www.macosxhints.com/article.php?story=20020415091242448
           \_ Tnx.  But is there a way to directly set the manual ip addr
              by modifying a file?  My PB has some hardware problem so that
              I cannot login from the console though it boots up normally.
              I am trying to fix its IP in FW target mode and then ssh it
              in normal mode.  Right now I don't know its ip addr.  Oh wait,
              maybe I just found the file, though its a messy xml file.
              \_ Well, if you can access your file via FW target mode,
                 you don't really need ssh. But if you do and you have
                 sshd and DHCP running, you could always just do a
                 broadcast ping on its subnet and ssh into the IP addr
                 that responds to it.
              \_ why don't you boot into single-user mode?
                 cmd-s during startup.
                 \_ cmd key no longer works.  Anyway, here is an easy
                    question.  With two computer connected together by
                    an ether cable (autosensing ports), what do I have
                    to put down as the router address for the two?
                    Can I leave it blank as there is no need ro one?
                    \_ yes. other solutions: use a USB keyboard,
                       or broadcast ping from the other computer to
                       discover the 169.254.x.x private IP on the Mac.
                       \_ I can now ping the bad PB, but can't ssh to it
                          even though I set hostconfig corectly (it's 10.2.8).
                          What's wrong?  Guess I am giving up and buying
                          an apple pro keyboard.
2025/05/24 [General] UID:1000 Activity:popular
5/24    

You may also be interested in these entries...
2007/8/9-13 [Computer/Networking] UID:47570 Activity:low
8/9     Is there an automated way to change the IP of an XP machine? I have
        tests that need to get run on two separate sub-nets that now require
        me to physically go in and change the IP address of the test box.
        Cygwin is also installed if that helps any. Thanks
        \_ There are a few sort of hackey ways to do it:
           1) automate the mouse clicks and key strokes witto do it:
	...
2007/4/19-21 [Computer/Networking] UID:46375 Activity:nil
4/19    After installing Logitech wireless mouse, my friend cannot connect from
        his PC to his wireless broadband router via a USB wireless network
        device.  It said that it cannot obtain IP address from the router.  Even
        uninstalling the Logitech wireless mouse doesn't help.  Do you know how
        to fix the wireless LAN problem, so that his PC can obtain IP address
        again?
	...
2006/5/23-28 [Computer/Networking] UID:43157 Activity:nil
5/23    I have DSL through AT&T. The service was originally established
        through PacBell, transitioned to SBC, and now AT&T. I still have
        my original plan and never converted to a SBC Yahoo! (now AT&T
        Yahoo!) account. I noticed the price will be a lot cheaper if I
        do. Are there any drawbacks? I thought someone mentioned some
        negatives about the Yahoo! tie-in once upon a time.
	...
2006/3/25-27 [Computer/Networking] UID:42433 Activity:nil
3/24    I want to write in my DSL router to allow incoming connection
        from certain IP range. How do I find out the IP range for SBC
        DSL say in Bay Area/SF?
	...
2006/2/18-23 [Computer/Networking] UID:41923 Activity:low
2/18    My DSL modem's ip address is 192.168.0.1, my internal network
        behind my router is 10.0.0.x. Is there a way I can configure
        the router so I can access the DSL modem from my 10.0.0.x
        network directly without re-wiring? Static routes? I tried it
        but no much luck. I also tried changing my internal network to
        192.168.0.x, but still does not work. Thanks.
	...
2006/1/28-31 [Computer/Networking] UID:41585 Activity:low
1/28    Just switched to Comcast from SBC and generally happy with it.  But
        can someone please explain to me why they are constantly pumping
        ARP traffic through the network?  It seems harmless, but I'm curious
        as I didn't see it with DSL.  It's a little disconcerting to see
        constant traffic on your router, even if ARPs are harmless from
        a bandwidth perspective, and it makes the WAN send/receive light
	...
2006/1/22-24 [Computer/Networking] UID:41477 Activity:nil
1/21    I am trying to setup a small network for my girlfriend's
        mom's company.  They just bought an accounting package
        which requires windows 2003 server.  And they want internet
        access from each computer.  How should the network be setuped?
        Would it be dumb to use static IP for each computer and a
        computer as internet gateway?
	...
2005/8/29-30 [Computer/Networking] UID:39329 Activity:moderate 54%like:37400
8/29    What's the difference between a hub, a switch and a router?  Thx.
        \_ AFAIK, probably be corrected by someone:
           hub: Allows communication on a LAN with bandwith shared amongs all
                the nodes on the hub and maxing out at the max line speed.
           switch: Allows communication on a LAN with bandwith greater than
                the max line speed (point to point)
	...
2005/6/2-3 [Computer/Networking] UID:37941 Activity:moderate
6/2     I've been to many places and almost every place I go to have
        802.11b/g. However, almost all of them have protected access,
        which I presume they use because they don't want people stealing
        their bandwidth. So here is one idea I think will really
        revolutionize 802.11X... an option in the router that allows you to
        specify the percentage of unprotected bandwidth you are willing to
	...
2005/2/25-27 [Computer/Networking] UID:36421 Activity:moderate
2/25    What is the smallest (physical and price) cisco router that can
        handle BGP?  It should be able to have more than 256 ram.
        \_ When you say ``handle BGP'', do you mean supports the bgp
           protocol or supports enough ram to keep a reasonable (what do you
           consider to be reasonable) number of routes in memory?  Do you want
           to be peering at PAIX, or do you just need a router to run the T1
	...
2005/1/13-14 [Computer/Networking] UID:35697 Activity:high
1/13    I need help fixing someone's Win2K box.  Setup:  Win2K box -> D-Link
        router -> DSL modem.  The Win2K box cannot obtain a DHCP address
        (other computers can).  So, I assign a static IP, and set the default
        gateway and DNS server to be the D-Link router.  After this, the Win2K
        box can access web pages on the Internet as long as you specify the
        web site IP address directly -- but DNS doesn't work.  Computer used
	...
Cache (1391 bytes)
www.macosxhints.com/article.php?story=20020415091242448
The System Prefs panel makes it easy to change or add IP addresses, but what if you want to do it automatically or remotely? Most Darwin documentation talks about a nifty, nonexistent since the Public Beta tool called ipconfigd. After much, much experimentation and research, I learned that to successfully change IPs from the command line the hard way, you must manually create a ton of routes. However, the ipconfig tool not ipconfigd, which is now a plugin to configd will do much of it for you. After manually setting the ip address of your interface probably en0, just delete the current default route and recreate a route to your router. Read the rest of the article for a script which uses this fact to automatically assign the next available IP using this technique. The script below automatically finds the next IP in a list of IP addresses called ips . This list must be one IP per line, and must not have a blank line at the end ie save it with the cursor on the line of the last IP. The script uses fping , although ping could be used albeit a bit more slowly. Otherwise, it updates your en0 IP and routes appropriately, optionally calling noip the command line interface for free dynamic dns client . It wont loop infinitely as it stops if it reaches the beginning IP in the list. Check out the comments to see where you can easily make this a one-IP, command-line-input script.