Linux in the network port of judgment

Linux in judgment on network port

Linux use ethtool eth0 to view full-duplex or half-duplex // current full-duplex Here Insert Picture Description// full full-duplex // half is half-duplex

Check whether the network cable connect the Link detected: yes
exercises
1. First add a new network port Here Insert Picture Description2. Use the ifconfig -a look at the newly created network port Here Insert Picture Description3. In the settings can also see the network adapter (eth1) of the MAC address Here Insert Picture Description4. again active port to
use ifconfig eth1 up or activated using ifup eth1 difference between the two latter is needed to read the configuration file # / etc / sysconfig / network- scripts / configuration file is a network port Here Insert Picture Description5. Check again ethool eth1 link detected Here Insert Picture Descriptioncomplete! !

Added: when the shell landed. It will acquire through reverse DNS host name and IP, so the landing time will be slow
by / etc / ssh / sshd_config modify configuration items useDNSHere Insert Picture Description

Guess you like

Origin blog.csdn.net/qq_43028054/article/details/89195072