The following works for me for a normal (wired) connection over a normal, wired router.
1. Configure your machine's IP:
/sbin/ifconfig eth0 192.254.255.20 netmask 255.255.255.0 broadcast
192.254.255.255 up
where 192.254.255.20 is the IP address of your machine. Note that the broadcast address must remain in the same form, i. e if your machine's IP is 182.234.255.255 the broadcast becomes 182.254.255.255
2. Create a default route for internet packets:
route add default gw 192.254.255.100 ath0
where your gateway address is substituted at 192.254.255.100 - this is the internal address of my DSL router.
3. Create DNS entries in /etc/rc.local
Edit /etc/rc.local and put the addresses of the DNS servers provided by your ISP in there.
Try to ping, for example, nasa.gov once you've done the above and you are sure your wireless connection itself is up and running.
|