November 19th, 2005, 11:30 AM #1
Q Re Resetting Nic (mac Unix)
I'm setting up a standalone powerbook for developing with CFML and SQL server. I'm able to run SQL server on virtualpc but to do so I have to set the powerbook's ethernet card to loopback using these commands:
sudo ifconfig en0 mediaopt hw-loopback
sudo ifconfig eno media 100baseTX
Works fine...I can develop without being attached to an ethernet network. The only downside is I have to re-boot the machine in order to reset the NIC and access the Net or re-join a LAN. I imagine there's a command(s) I can use to disable the loopback, or re-set the NIC without a re-boot. I've googled around and tried variations of down, delete, -alias, up etc. without luck.
I'm a unix newbie but I know how to type in a terminal window. Easy explanations appreciated. TIA.
November 19th, 2005, 04:02 PM #2
how about: sudo ifconfig en0 media autoselect ?
November 20th, 2005, 12:21 PM #3
Great. That did it. Thank you.