How to configure network interface in Ubuntu
2014-12-25 10:06
337 查看
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
How to configure network interface in Ubuntu
How to configure network interface in Ubuntu
It is likely that the computers in a network use dhcp to get ip addresses, thatmeans these ip addresses will change frequently if you move the computer to
another interface of the router or switch (which is exactly what I am facing
right now), I want to configure my computer to use static ip address, the
easiest way to do this is modify the configure file in /etc/network/interfaces,
following these steps:
1.Use ifconfig to figure out which interface you are currently using (eth0/1);
2.Use ip route show to find the default gateway (the first line starting with
default);
3.Sudo gedit /etc/network/interfaces:
Add the following information to that file:
iface eth0 inet static
address 172.31.8.22
gateway 192.31.8.1
netmask 255.255.255.0
dns-nameservers 202.202.0.33 8.8.8.8 8.8.4.4
4.Restart networking services:
sudo service network-manager restart
sudo service networking restart
sudo service resolvconf restart
Author: wujing
Created: 2014-12-25 四 10:06
Emacs 24.3.1 (Org mode 8.2.10)
相关文章推荐
- How to configure the network under the Ubuntu
- How to configure locales to Unicode in a Docker Ubuntu 14.04 container?
- How to set network proxy for terminal in Ubuntu
- 15 Useful “ifconfig” Commands to Configure Network Interface in Linux
- How to change Ethernet network card speed and duplex settings in ubuntu
- 15 Useful “ifconfig” Commands to Configure Network Interface in Linux
- How to configure network bonding in Linux
- How To Configure BIND as a Private Network DNS Server on Ubuntu 14.04
- 15 Useful “ifconfig” Commands to Configure Network Interface in Linux
- How To Configure Logging And Log Rotation In Apache On An Ubuntu VPS
- How to configure and use minicom in Ubuntu 12.04 User Manual
- How to Replace a Network Interface Card in a XenServer Host
- How to Install And Configure Apache In Ubuntu
- How to Configure A Second Listener on a Separate Network in 11.2 Grid Infrastructure (Doc ID 1063571
- How to let programs written in VB interface to SAP through RFC?
- How to get IOleSite interface of the WebBrowser in an ActiveX control
- How to Change The Bootsplash In Ubuntu 8.10
- How to log in with root user in ubuntu - sudo -s
- How to install WebObjects in Ubuntu for free(III)
- How to add extra harddriver, relocate /home in Ubuntu with VMWare player