So what are you trying to say should i use default gateway as 192.168.1.1 when using dhcp ?
Even this doesn't help.I know that it has some thing to do with command route but going through google is not helping me so i will try to give some details:
1)I have ADSL router which has ipaddress 192.168.1.1
I have enabled DHCP server on it and it works fine with windows.
2)I have an ethernet card on my pc and the when i configure that eth0 to get ip from router using DHCP it gets ip address 192.168.1.X mostly X is 2.
3)i use pppoe-start and it gets connected.
4)Then i use ifconfig and it shows that all 3 inetrfaces are up i.e eth0 lo and ppp0
But no net works i cant ping anyone.
Now take another scenario i.e i dont DHCP and i simply give eth0 an address 192.168.1.X and netmask 255.255.255.0 manually and then connect pppoe and it gets connected and internet works and i can ping anywhere.
Also note that once i have booted using DHCP and internet is not working if i change the ip of eth0 manually using ifconfig command and again reconnect using pppoe-start internet works again.
Kindly clear my concepts(i know it has something to do with route command but i am unable to understand the tutorials or links provided by google)