First, the Linux system networking settingsAfter we installed the Linux system, the first is to configure the network services, after all, if the computer is not networked it is a calculator. When configuring network functions, it is simple and
Linux system version: Centos 6.5In the Linux learning CentOS (ii): Virtual network Three ways of connection and SECURECRT use, using Remote Tools SECURECRT, through the "ifconfig eth0 + specific IP Address" command to Linux with IP address, However,
1. Configure the host name to change:Temporary method:Hostname localhost# exit the current shell and re-login can take effect. This method can only be modified in a temporary way and fails after the system is re-established.Permanent method:Method 1:
How to switch the login interfaceRedhet Linux system: CTRL+ALT+FN(1~6) The first is a graphical interfaceUbuntu Linux system: XTRL+ALT+FN (1~7) seventh is a graphical interfaceModify Host NameHostnamectl Set-hostname newnameQuerying System
1, understand the OSI seven layer model, and the five layer protocol structure. 650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px;
1.Linux Configuring IP Address Ifconfig command temporarily configures IP addressIfconfig command, the most common function is to view the local network configuration status (of course, can also configure the network, but temporarily), directly
There are two ways to configure IP:1. Direct Configuration via commandsudo ifconfig eth0 IP address netmask Subnet mask--Configure IP groundsudo route add default GW gateway------------vi/etc/resolv.conf configuration file Add nameserver
Modify IP Permanent effect the following method Vi/etc/sysconfig/network-scripts/ifcfg-eth0 (Eth0, the first NIC, if the second block is eth1) as follows to modify ipdevice= Eth0 (if the second block just eth1) bootproto=staticipaddr=192.168.0.11
1. Common Configuration Network Instructions
(1) Configure the IP address of the eth0 and activate the device
(2) Add default gateway
(3) Configure DNS
$ sudo vi/etc/resolv.conf
nameserver
1. Modify IP Address: Set static IP address#vi/etc/sysconfig/network-scripts/ifcfg-eth0Device=eth0Bootproto=static//bootproto=yes cannot appear in either state or erroripaddr=192.168.12.28// Add IP Address netmask=255.255.255.0// Mask gateway=192.16
Recently some days in learning about virtual machine VirtualBox, now share for your reference.
First, virtual machine network configuration
The default is to set the NIC 1: Mode NAT (corresponding to Ifcfg-eth0)
We can also set the network card
When we use Linux to set up Web servers and FTP servers, we may encounter the need to implement multiple sites on a single service (virtual host), in which case we can increase the physical network card to solve. But how many extra slots do we
CentOS6.8 How to configure IP under the non-graphical interface?
Action Tip:
When the input is directed to the virtual machine, click inside the virtual machine or press ctrl+g;
When the input is directed to the physical host, press Ctrl+alt.
1
Now it's time to put all of the previous theoretical knowledge into practice. Next, we will explore:
? Configuration file for network interface in Red Hat 7
? Using Ifconfig to check and configure interfaces
? Adding and editing static routes
?
Because I intend to learn Linux driver programming, I bought a raspberry to be the development environment. Directly by mirroring the kernel is not directly used to do module development, because the distribution itself is not with the kernel source
the Server Version "
in Ubuntu Server version, because only the command line mode is in place, you can only modify the/etc/network/interfaces if you want to set the network parameters . The specific settings are as follows:
(1) Ubuntu Server
Ifconfig Configure the Network interface tool introduction;
Ifconfig is a tool used to view, configure, enable, or disable network interfaces, which is extremely common. For example, we can use this tool to temporarily configure the network card IP
For Linux master seemingly simple network configuration problem, perhaps to say why it is not easy, so there are still too many beginners wandering outside the door is not strange,
Here, the old boy teacher spent some time summarizing this document
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.