Linux System Network Management

Source: Internet
Author: User
Tags traceroute command

Use the Ifconfig command to view the network interface address.    -a :  Show all network interface    -s : Show only summary information for network interfaces .  use the hostname command to view or modify host names. Use the route command to view the route table entries. The output Information:   destination  column corresponds to the destination segment address.    Gateway   corresponds to the address of the next-hop router.    iface column   corresponds to the network interface that sends the data.   Use the route command to add, delete static route records    Add, delete route records to the specified network segment:   route  add    Add route records    -net  options Specify the destination segment's address      Gw  options to specify the IP address of the next-hop router.     such as:         #route   add  -net   18.18.0.0/24   gw   18.18.254.254    Route    del   Delete route record,-net  option specifies the destination segment address in the corresponding route record     for example:          #route   del  -net  18.18.23.0/24  Add, delete the default gateway record:    route  del   default  gIP address of the w   gateway    Route  add   default  gw   IP address of the gateway    use the netstat command to view network connectivity. -a   Displays all network connection information in the host. -n   displays the associated host address, port, and other information in digital form. -r   routing table information. -l   Displays the network connection and port information that is in the listening state. Information about the-T  TCP protocol. Information about the-U  UDP protocol. -p  Displays the process number, process name information associated with the network connection. -O: Display Network Timer-s: Displays statistics for each network protocol.  Netstat -n   Command View There are three states:    listening is in the listening state, that is, the port is open, waiting for the connection, but not yet connected. Established state, established means to establish a connection. Indicates that two machines are communicating. Time_wait state, time_wait means to end this connection.   Use the ping command to test network connectivity, based on the ICMP protocol.-C: Sends a specified number of packets after the exit-I: Specifies the interval between packets-N: Outputs only numeric values. -Q: Displays only the beginning and end of the summary information-r: ignores the normal routing table and sends packets directly to the remote host. -R: Record Routing Process-S: Sets the packet size in bytes, and the default package size is 56 bytes. -T: Sets the size of the Live value TTL use the traceroute command to track the routing of packets. Use the Nslookup,dig,host command to test DNS domain name resolution.   Manage remote hosts using the telnet command: the   telnet command in addition to remote logins can be managed remotely, there is also a purpose is to detect whether a local or remote host a port is open. The command format is as follows: telnet [option] [host] [port]  use Network configuration command:  modify the IP address of the network card, subnet mask:  ifconfig    Network Interface name   IP address    netmask[Subnet Mask]  ifconfig   network interface name   IP address [/subnet mask length]  disabled, activating network interface:   Ifconfig  eth0  down,  ifconfig eth0   up      Modify Network configuration file:   network interface profile: # vim /etc/sysconfig/network-scripts/ifcfg-eth0    DEVICE:   Network Interface name    ONBOOT:  whether the network interface is activated at system startup.    BOOTPROTO   set up how the network interfaces are configured.    IPADDR   Set IP address    NETMASK   set subnet mask    gateway    Set the default gateway address.    Host name Profile: # vim /etc/sysconfig/network  hostname    setting host name   NETWORKING=yes    Set the default enabled state of the IPV4 network.


Linux System Network Management

Related Article

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.