Gateway effective immediately: # route add default gw 192.168.0.1 dev eth0 start effective: Modify/etc/sysconfig/network modify DNS Modify/etc/resolv. the change of conf takes effect immediately. The change of host name takes effect immediately after startup: # hostname centos1 takes effect immediately after startup:/etc/sysconfig/networkcentos cannot be found The ifconfig command and other commands prompt
-config-is a collection of commands, redhat-config?-(tab-tab) view command type locale to view the current language of the system locale–a view all language support LANG=ZH_CN. GB2312 Change the default language to Chinese, date to view the results. /etc/sysconfig/i18n Save language configuration /ETC/SYSCONFIG/NBSP; kudzu view hardware information service kudzu start checks for new hardware, the power on automatically runs, you
analyze and determine network faults. Application Format: Ping the IP address. This command can also be used with more parameters. Specifically, you can enter Ping and press enter to see detailed instructions. Ping refers to end-to-end connection, which is usually used as an availability check. However, some viruses force a large number of remote ping commands to seize your
example, add a default gateway to the routing table. Execute command:Route add default GW XinxiRemoves a default gateway from the routing table. Execute command:Route del default GW Xinxi12,rloginThe user can execute the rlogin command, enter the IP address of the network host on the local host, and through the user account of the host and its password authentication, to achieve the remote Linux system host login.13,telnetThe user can perform Telnet
informationIP address add address dev Dev adds IP addresses that can be added as secondary addresses for network cardsIP address add 222.16.60.148/24 eth1 label Eth1:1 #为eth0添加一个辅助地址, alias Eth1:1IP address del address dev dev remove IP addressesIP address LS interface_name to view the network card location informationIP address flush [Dev Dev] to PREFIX clear network
test the connectivity of your network.For example:#ping x#ping –c 4 192.168.1.125, NetstatYou can use the netstat command to display network status information.For example:(1) Display the network interface status information.#netstat –i(2) Displays the socket of all monitored servers and the program information that is using the socket.#netstat –lpe(3) Displays the kernel routing table information.#netstat
configuration file/etc/sysconfig/network-scripts/ifcfg-eth0 to start the network interface, you need to ifup and ifdown to achieve.Grammar:Ifup interfaceIfdown interfaceInterface: NIC interface name, such as Eth0, eth1, and so on.Note: If you set the ifconfig eth0 or modify the network interface, you will no longer be able to turn it off in Ifdown eth0 way.3. Ro
device:numDelIPADDRESS Dev DEVICEShow Dev DEVICETo PREFIX show matching criteriaFor example:#ip addr Show to 10/8 displays only the information that begins with 10.Flush Dev DEVICE Empty addressFor example:#ip addr Flush Dev eth1 to 10/8 empties the address starting with 10.Route routingShowTo PREFIXFlushA single network card uses multiple addresses:Use aliases:#ifconfig Device:num Ipadd/netmask/etc/sysconfig/net
5.7 Windows common network commands ping netstat winipcfg/ipconfig tracert route
5.7.1 Ping command• Function – It is a command to check whether the network is unobstructed or the speed of the network connection. – It is an ICMP-based ICMP response request message and a response response message to complete this
kernel scope link src 192.168.1.71 metric 350Routing configuration:[[Email protected] ~]# IP route add 10.10.100.0/24 via 192.168.1.1 Dev Team0Destination Address Gateway InterfaceTo delete a route:[Email protected] ~]# IP route del 10.10.100.0/24 via 192.168.1.1 Dev team0 #方法一[Email protected] ~]# IP route del 10.10.100.0/24 #方法二Restart device: Ifdown, IfupNmcli Dev disconn eno33554984 nmcli Dev Conn eno33554984Restart Network Service:[Email protec
tracking tool that combines the ping and tracert commands with other information not provided by the two tools. The pathping Command sends data packets to each vro in the path to the destination within a period of time, and then returns the data packet-based computer results from each hop. Because the command shows how much data packets are lost on any given vro or link, it is easy to determine the vro or link that may cause
For those who start to learn Linux, you may encounter Linux problems. We can go online to find some answers. The main advantage of computer networks is the ability to share resources and information, and users can remotely access information.
Linux provides a powerful set of Linux Network commands to serve users. These tools can help users log on to a remote computer, transfer files, and execute remote
I. Commands for setting network parametersIfconfig: Query, set network card and IP network and other related parameters[[emailprotected] ~]# ifconfig {interface} {down|up}[[emailprotected] ~]# ifconfig interface {options}interface:eth0、eth1、ppp0options:mtu、up,down、netmask、broadcast[[emailprotected] ~]# ifconfig eth0 19
networkThe network that is added, the gateway is consistent with the IP of the real machine.After the completion of the above operation, the virtual machine can be online, you can ping other sites on the virtual machine IP, if you can ping, then the success of the network.The above operation is address access, if you need name access to edit the Hosts file or set up DNSOpen the Hosts file:Bind domain name and IP address:Check if the bound domain name
Five Elements of the Network: MAC address, IP address, network mask, gateway, DNS
The MAC address is the physical address of the network card. It is globally unique and consists of six bytes.
The IP address is a four-byte logical address allocated to the network card.
The network
correspondence between IP address and MAC address.7,arp–s binding the corresponding relationship between the IP address in the ARP cache and the MAC address in the machine is a static relationship.8,neststat–an shows the network connection of this machine.9,nslookup is used to resolve the domain name of the directive, you can resolve the domain name of the corresponding IP address.The abbreviation for the Tracert:trace route, which indicates route tr
/network-scripts/ifcfg-eth0The configuration file is as follows:[Email protected] ~]# cd/etc/sysconfig/network-scripts/[[email protected] network-scripts]# cat Ifcfg-eth0IPADDR=:IP address netmask=: Subnet mask gateway=: Set default gateway Userctl={yes |No}: Allow normal user to control this interface Peerdns={yes | NO}: The DNS address specified by the DHCP se
--indicates the connection state, the common State has listen (indicates the listening state, waits for the request of the Revenue station), established (indicates that the machine has established a connection with other hosts), Time_wait ( Wait enough time to ensure that the remote TCP receives the acknowledgement of the connection interrupt request), the SYN sent (attempt to initiate the connection), the Syn recv (accept the originating connection), etc.Iv. ARPThe ARP command is an abbreviatio
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.