Brother Bird's Linux private dish (server) Chapter III Introduction to the local Area Network Architecture chapter fourth connected to the Internet

Source: Internet
Author: User

Brother Bird's Linux private dish (server) Chapter III Introduction to the local Area Network Architecture chapter fourth connected to the Internet

[TOC]

3.1 Online of the local area network 3.1.1 Local Area network cabling planning 3.1.1-1 Linux Direct networking-same status as PC

3.1.1-2 Linux Direct Networking-separate domains from the general PC

3.1.1-3 Linux Direct networking-let Linux directly manage LAN

3.1.1-4 Linux on a firewall-let Linux use Private IP

3.2 Book use of internal online network parameters and communication protocols 3.2.1 Online parameters and communication protocols

4.1 Linux Pre-Internet Considerations 4.1.1 Linux Network card

Confirm that the network card has been captured by the core

[[email protected] ~]# dmesg | grep -in eth

377:e1000:eth0:e1000_probe:intel (r) pro/1000 network Connection 383:e1000:eth1:e1000_probe:intel (r) pro/1000 Network Connection 418:e1000:eth0 NIC Link is up to $ Mbps full Duplex, Flow Control:rx 419:eth0:no IPv6 Routers present

Query the relevant device chip data via LSPCI

[[email protected] ~]# lspci | grep -i ethernet

00:03.0 Ethernet controller:intel Corporation 82540EM Gigabit Ethernet Controller (rev. 02)

Observing the module of the network card

[[email protected] ~]# lsmod | grep 1000

e1000 119381 0 <== is indeed loaded into the nuclear heart!

[[email protected] ~]# modinfo e1000

FileName:/lib/modules/2.6.32-71.29.1.el6.x86_64/kernel/drivers/net/e1000/e1000.ko VERSION:7.3.21-K6-NAPI License : GPL Description:intel (R) pro/1000 Network Driver ..... (omitted below) .....

The above output information is focused on the section of the file name (filename)! The file name directory of that string is the main directory where our drivers are placed . It's important to note that the 2.6.32-71.29.1.el6.x86_64 is the core version, so the different core versions use the same drivers.

4.1.2 Compiling NIC driver (option) 4.1.3 Linux Network related configuration file case
Required network parameters Primary profile file name Important parameters
IP Netmask DHCP or not Gateway /etc/sysconfig/network-scripts/ifcfg-eth0 device= network card code
bootproto= Whether to use DHCP
hwaddr= to add a network card number (MAC)
Ipaddr= is the IP address
netmask= only network shield
onboot= you want to start this interface by default
gateway= is the communication gate
nm_controlled= Additional network management software
Bird Brother suggested to cancel this project!
hostname /etc/sysconfig/network networking= want to have network
networking_ipv6= support IP V6 no?
Hostname= Your host name
DNS IP /etc/resolv.conf nameserver DNS IP
host name corresponding to private IP /etc/hosts Private IP hostname alias
    • /etc/services This file is the total protocol that records the schema on TCP/IP, including HTTP, ftp, SSH, Telnet, and so on, as defined by the port number, which is planned by this file. If you want to customize a new protocol corresponding to the port, you have to change the file;

    • /etc/protocols This file defines the relevant data for the IP packet protocol, including the definition of the packet protocol in ICMP/TCP/UDP.

Network Start-up instructions-/etc/init.d/network Restart this script is the most important! Because the parameters of the entire network can be restarted in a breath! He will take the initiative to read all the network configuration files, so you can quickly restore the system default parameter values.

    • Ifup eth0 (Ifdown eth0) starts or shuts down a network interface. Can be handled through this simple script! These two script will take the initiative to the/etc/sysconfig/network-scripts/directory, read the appropriate configuration file to deal with Ah! (e.g. Ifcfg-eth0).

Brother Bird's Linux private dish (server) Chapter III Introduction to the local Area Network Architecture chapter fourth connected to the Internet

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.