Linux Basics: Day03

Linux network
 file sharing occurs between --PC invention Ethernet
 NIC hardware - MAC address
 One: Physical layer
 HUB - Hub bus structure flood
  broadcast domain / domain conflicts
 Story:
 In the early network, PC interoperability can only MAC address forwarding data; - Layer 2 forwarding the concept of
 bridge - --- switch maintains a MAC address table
 Three:
 With the increase of network devices that require network more and more; this time, the communication of these devices is a document - had a logical address;
 IPv4 IPv6 Novell IPX AppleTalk DEC - these are early logical address
 network interconnection - the route up!
 Router - a routing table
--------------------------------------------------------------------------------------------------
 Four layers: the transport layer
 core tasks have a transition - Application Interworking
 application port:
  the TCP: 1-1023 1024-65535
   20 is 21 is 22 is 23 is 53 is 25 80 443 110 445 111 ...
  the UDP:
   67 68 69
 Application Layer:
  program application
==========================================================
 Access to network resources of a real process; (see figure)
 1, the network resources of a PC - kernel space management
 2. Application Layer (interprocess communication)
  1, internal PC communication process - 1, 2, single parent and child communication signal communication
  2, the process of communication between the PC - 1, rpc * 2, socket socket (do separate application) *
========================================================== 
About Host command control networks:
 the ifcfg family command: ifconfig netstat route
  ifconfig
   ifconfig displays the current interface up
   ifconfig lo0 | eth0
    -a
   ifconfig interface name IP address netmask mask [up | down]
   After the IP address configuration take effect immediately, but the restart card later, he returned to resume 
   ifconfig eth0 add 192.168.94.201 netnask 255.255.255.0 // automatically generated eth0: 0 sub-interface (label), del you can delete the
   tunnel can add a tunnel
   
  route
   view and add routes
   route -n // -n do analytical 
  
   Add route
    1, add a default route (adding gateways)
     route add 192.168.94.2 default GW
    2, was added a host route (destined for a fixed IP address)
     route add -host 192.168.95.95 dev eth0
    . 3, to add a route segment
     route add -net 192.168.95.0 network 255.255.255.0 eth0
    Route type: Flags - U up H host G  gw
   delete routes
    del   

 ip family command: ip [link | addr | route ] ss
 GUI management: system-config-network-tui / setup
 configuration file:
  / etc / sysconfig / Network-scripts / the ifcfg-interface
  / etc / sysconfig / Network-scripts / route
  /etc/udev/rules.d/70-persistent-net.rules

Guess you like

Origin www.cnblogs.com/why098/p/11425710.html