Wired network:
1. Locate the file and make the following changes:
sudo vim/etc/network/interfaces
Modify the following sections:
Auto Eth0
Iface eth0 inet Static
Address 192.168.0.117
Gateway 192.168.0.1 #这个地址你要确认下 Gateways are not this address
Netmask 255.255.255.0
Network 192.168.0.0
Broadcast 192.168.0.255
2. Modify DNS Resolution
DNS server addresses are automatically assigned because they were previously resolved by DHCP
And once the static IP is set, there is no automatic access to the DNS server.
To set a
sudo vim/etc/resolv.conf
Write the DNS on a public network
NameServer 202.96.128.86
(Note: 8.8.8.8 is Google's DNS server, but the resolution is slow, or to find a domestic DNS to use)
3. Restart the network card:
Sudo/etc/init.d/network restart
Wireless network
Click on the Small Network icon, and then select "Edit Connection"
Switch to the "wireless" item, click "Add", "SSID" Enter the network name, "mode" Select the Basic schema
Switch to wireless security, select the appropriate option, set it as specified,
Switch to "IPV4 settings", Method Select "Manual", click "Add", enter fixed IP, subnet mask, gateway, "DNS server" below also remember input,
Click Save and then reconnect, should be no problem, or not can restart the network connection module
Ubuntu 14.04 How to set up a static IP