Linux Network management, network command, remote login tools __linux

Source: Internet
Author: User
Tags ssh traceroute command
First, Linux network management 1-1.linux Configure IP address

Linux Configuration IP Address method
1). ifconfig command to temporarily configure IP addresses
2). The Setup tool permanently configures IP addresses
3). Modify Network configuration file
4). Graphics Network configuration file

(1). ifconfig Command: View and configure network status commands
#临时设置ech0网卡的IP地址与子网掩码, not commonly used
Ifconfig ehc0 192.168.0.200 netmask 255.255.255.0

(2). Setup Tools
Red Hat Proprietary Graphics tool setup set IP address

(3). Modify network profile--standard configuration


Second, Linux Network command
2-1, network Environment View command

2.1. Turn off and start network cards
# Disable this network adapter device
ifdown  network adapter device name

# enable the network adapter device
# ifup  network adapter device name
such as Ifup l o

2.2. View network status
netstat  options
Option:
 -T: Listing TCP protocol ports
 -u: Listing UDP protocol Ports
 -N: Do not use domain names and service names, but use IP addresses and port numbers
 -L: Lists all network connections in the Listening State Network Service
 -A: Lists all the networks

netstat -rn
  ; -r: List routing lists, features and route command consistent

3.route command
# View routing list (see Gateway)
Route-n

# Temporary Settings Gateway
Route   add  default  GW 192.168.1.1
2-2. Network Test Command

(1). ping command
# probe the network condition of the specified IP or domain name
ping [options] IP or domain name
-C Number of times: Specifies the number of ping packages

(2). telnet command
# Remote management and Port probes command
telnet [domain name or IP] [port]
Note: PlainText transmission, unsafe, is now replaced by SSH

(3). traceroute command
# Router Trace command
traceroute [options] IP or domain name
-N Use IP, do not use domain name, faster

(4). wget command
# download Command
wget file Address

(5). tcpdump command
Tcpdump-i ETH0-NNX Port 21
-i specifies the NIC interface
-nn the domain name and service in the packet to IP and port
-X Displays packet contents in 16-in and ASCII code
PORT specifies which ports to listen on
third, remote landing tools




principle of 3-1.ssh protocol

# Transport Management Specifies the Linux server
SSH User name @ip

# download files
SCP [-R] Username @ip: File path Local Path

# Uploading Files
SCP [-r] Local file username @ip: Upload path
3-2. Transportation Landing Tool SECURECRT
3-3.xshell and WINSCP tools


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.