I am new to Linux and just know how to copy and paste commands to get things done. But in this case I am not able to solve my problem despite having some guidence available on net. I am facing a speed and duplex problem here. I am dual booting Windows 8 and Ubuntu 13.04. My network connection only works if I set speed and duplex to 10mbps full duplex. If I don't set it to 10mbps the LED light in modem which shows LAN connectivity becomes on for a second and goes off for two seconds which implies that the connection is not established properly between PC and modem. It is easy to do in windows because in ethernet card settings I set speed and duplex to 10mbps and it remains always same even after reboot so I have no problem here.
Now when I boot into Ubuntu the LAN starts acting up again. I know how to set speed and duplex in Ubuntu with following commands :
sudo ethtool -s eth0 speed 10 duplex full
After giving this command it works perfectly. But when I reboot these settings are lost and I have to give command again. I want them to become permanant but don't know how to add some kind scripts or edit any file in etc/network. I tried some of the suggestions avilable on net but then I faced a problem, when I rebooted Ubuntu it shows me a massage that it is waiting for network to start and after one minute it waits again for another minute. After having Ubuntu started I found no internet connection. Though I don't have working internet connection in this scenario(after editing some files in etc/ to make it permanat) but the LAN LED becomes stable like it shoud be when it works good.
So friends please guide me to overcome this problem set by step. If I missed something important to mention her please forgive me.