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