macolyte
01-30-2006, 11:50 AM
I searched the forums and didn't find an answer for this, so I thought I'd post both the problem and the solution I found [with a little help from a friend].
Problem: Sharing an ethernet connection via my G4 PowerBook's AirPort card and OS X's Internet Sharing. I was getting an IP address, but couldn't connect to anything [web, IRC, news, etc.].
Soultion: I ended up having to manually assign an IP address to wlan0 [the one that was being done automatically was on wlan0:1 for some reason] and then assign the default gateway manually.
Assuming that the AirPort interface has an IP of 10.0.2.1, these are the commands I used on the 770:
ifconfig wlan0:1 down #this may not actually be necessary
ifconfig wlan0 10.0.2.2 #assign IP address to the 770
route add default gw 10.0.2.1 #assign new default gateway
You need to have xterm installed and root enabled to do this. I bundled it all up into a shell script, did a chmod a+x, and put it in my home directory. I hope someone finds this is helpful, and if someone has a better way to do it, I'd love to hear.
Problem: Sharing an ethernet connection via my G4 PowerBook's AirPort card and OS X's Internet Sharing. I was getting an IP address, but couldn't connect to anything [web, IRC, news, etc.].
Soultion: I ended up having to manually assign an IP address to wlan0 [the one that was being done automatically was on wlan0:1 for some reason] and then assign the default gateway manually.
Assuming that the AirPort interface has an IP of 10.0.2.1, these are the commands I used on the 770:
ifconfig wlan0:1 down #this may not actually be necessary
ifconfig wlan0 10.0.2.2 #assign IP address to the 770
route add default gw 10.0.2.1 #assign new default gateway
You need to have xterm installed and root enabled to do this. I bundled it all up into a shell script, did a chmod a+x, and put it in my home directory. I hope someone finds this is helpful, and if someone has a better way to do it, I'd love to hear.