Adding a gateway
Hi
i m very new at all this but i have my D-link card up and recognized as ath0, haven t figured out dhcp yet but i can assign an ip + subnet mask manually but i m still getting a 0.0.0.0 for the gateway. i can reach my wireless router , but not the internet. how could i add a gateway of 192.168.2.1 to my ath0 wireless device? thanks |
hi there
if u using redhat/fedora then run setup go to network settings and specify ur gateway there or u can edit ur /etc/sysconfig/network-scripts/ifcfg-eth0 script to specify the gateway i do not have the porper syntax for that now woth me also check for firewall settings on ur DHCP server can u ping that machine? regards |
Command line:
Code:
route add default gw 0.0.0.0 |
It s weird it s like when i do that route add command it gives the default gateway to a 2nd instance of my wireless card>?!?!? result is the same i can ping and access my router but no internet.
here s how i brought the card "up" root@darkstar:~# ifconfig ath0 192.168.2.99 netmask 255.255.255.0 root@darkstar:~# route add default gw 192.168.2.1 ath0 root@darkstar:~# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 ath0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0 ath0 |
Quote:
what about my suggestions did u try that out and what OS are u using?? regards |
Quote:
Code:
route add default gw x.x.x.x |
All times are GMT -5. The time now is 06:37 AM. |