![]() |
How to connect to network from command line
In ubuntu top panel, on the right side, there is an indicator showing network status. I click on that and choose the network option (which has ip address, gateway etc) and it connects.
Can I do the same thing from command line? Thanks for your help. |
you want to see your network settings? try "ifconfig -a" and "route -n" for starters.
|
Thanks for your interest. I do not want to see network settings. I want to connect to internet using the values of ip address, netmask and broadcast that I have. How can I do it?
|
well on an ethernet network you don't "connect to the internet", you just set up your ip routing correctly etc.
plenty of standard documentation around though if you look, e.g. https://help.ubuntu.com/10.04/server...iguration.html |
Ubuntu uses Network Manager, there's a command line interface called nmcli, you should be able to connect using that.
|
I tried command 'nmcli' - there is no such command on my system. I also could not find any nmcli program in synaptic package manager. Though the command is there in ubuntu manpages:
http://manpages.ubuntu.com/manpages/...1/nmcli.1.html I am using ubuntu version 10.04 LTS. |
Found the following info here: http://ubuntuforums.org/showthread.php?t=1678256
Quote:
|
Thanks.
|
Member response
Hi,
Quote:
Quote:
Quote:
FYI: I suggest that you look at 'How to Ask Questions the Smart Way' so in the future your queries provide information that will aid us in diagnosis of the problem or query. HTH! |
| All times are GMT -5. The time now is 07:39 AM. |