Linux network application question and answer

xiaoxiao2021-03-06  41

Linux network application question and answer

Summary

Linux network application question and answer (2004-11-01 10:53:46)

By lanf, source: http://tech.ccidnet.com/pub/Article/c302_a170867_p1.html

Author: Dumb Source: SEOUL - Open Systems World Q: How to manually add the next default gateway in Linux? A: Taking the root user as an example, the following command is performed: # Route add default GW xxx.xxx.xxx.xxx (IP of the gateway) If the user wants to change the gateway, edit / etc / sysconfig / network-scripts / ifcfg-eth0 file After setting the corresponding gateway, the following command is executed: # / etc / init.d / network restart Q: Sometimes the new hardware is automatically checked in Linux, the newly installed network card cannot be found. How can I solve it? A: The service that automatically checks the new hardware is Kudzu, and the user can start the service with the "ntsysv" command. The next restart will find the user's new NIC. Q: I have a computer that has a computer that has installed Linux. I want to go to the house from the company to do it. Every time telnet can log in with root. Is there a way to solve it? A: For safety considerations, now some Linux versions are not installed by default, it is recommended to use SSH. Of course, if the user does not have a high requirement, you can log in directly with root. The method is to modify the /etc/pam.d/login comment out: # auth request /lib/security/pam_security.so Last Save Exit, you can log in with root. Q: How do you monitor all data through this NIC under Linux? A: Use the following command: #tcpdump iptraf Q: How do I turn off the user's POP3 permissions? A: You can turn off the port of POP3. Locate this line in File / etc / services; POP-3 110 / TCP adds a "#" before it, you can comment out. Q: How do I send Popup messages from Linux to WINDOW? A: Save the following scripts as / usr / local / bin / net:

#! / bin / bash

# / usr / local / bin / net

Case "$ 1" in

Send)

Echo "$ 3" | SMBCLIENT -I "$ 2" -m `nmblookup -a" $ 2 "| SED -E '1D'

-E '3, / * / d' | CUT -F2 | CUT -D '' -f1`

;

*)

echo "Usage: Net Send "

EXIT 1

转载请注明原文地址:https://www.9cbs.com/read-59110.html

New Post(0)