Setup network using terminal
The problem is like this:
It is needed to up a network connection without GUI applet on a PC with following parameters:
IP 192.168.1.200
Mask 255.255.255.0
Gateway 192.168.1.1
DNS 192.168.1.1
So, using terminal, I’ve done so:
1. ifconfig 192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.255 up
2. route add default gw 192.168.1.1 eth0
3.sudo gedit /etc/resolv.conf
Then typed in following: nameserver 192.168.1.1
Yet, there is no connection to internet. I’ve set same network parameters using GUI on the other ubuntu machine and it works fine.
“ifconfig eth0” on both PCs seems to show the same results.
What have I missed?
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Jay Sidd for more information if necessary.