Short cut to connect net with command.

Asked by anirbanphys

One of my friend is using UBUNTU in between these days. He was unable to connect with internet, he asked a advice from me. I told him use this command "sudo pppoeconf", he was able to connect with it. He was telling me "is there any way to connect the net by some technique just typing the command "net on" and off just typing "net off" ?" So I don't know whether it is possible or not. please say about it to me.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Bhavani Shankar
Solved:
Last query:
Last reply:
Revision history for this message
Best Bhavani Shankar (bhavi) said :
#1

Assuming you have configured your network

you can start internet by

sudo /etc/init.d/networking start

and disconnect the internet by:

sudo /etc/init.d/networking stop

Regards

Revision history for this message
anirbanphys (anirbanphys) said :
#2

Thanks Bhavani Shankar, that solved my question.