/ resolv.confFirst, modify the IP address[Email protected] network-scripts]$ VI ifcfg-eth0Device=eth0Onboot=yesBootproto=staticipaddr=219.136.241.211netmask=255.255.255.128gateway=219.136.241.254Second, modify the gatewayVi/etc/sysconfig/networkNetworking=yesHostname=aarongateway=192.168.1.1Third, modify the DNS[Email protected] etc]$ VI resolv.confNameServer 202.96.128.68NameServer 219.136.241.206Iv. Restarting the network configuration/etc/init.d/network restartModify IP AddressImmediate effec
this new bridge interface[Email protected]:~> ifconfig br0 10.0.3.129Or take the last two steps to synthesize one step:[Email protected]:~> ifconfig br0 10.0.3.129 upJust one more up!.We're done here.Close the bridge commandBrctl Delif Ena eth1;Brctl Delif ena eth0;Ifconfig ena down;Brctl DELBR Ena;Realization analysis and use of Alinux bridge http://www.ibm.com
MTU indicates the maximum transmission unit. MTU values are not necessarily the same for different local networks. for Ethernet, MTU sets the Linux command line to modify the IP address, Gateway, and DNS methods.
Method 1:
Ifconfig eth0 192.168.1.18 netmask 255.255.255.0
Note: This method can make changes take effect immediately, and will be restored to the original IP address after restart.
Method 2:
This article is the best practice of Linux. it aims to show Chinese cabbage how to configure the Linux network. Linux systems have a large share in the server market, especially when the Internet is connected, 11.3 Linux network configuration
Linux systems occupy a large sha
Dynamic mode:
Ifconfig eth0:# IP netmask MASK, such as Ifconfig eth0:0 192.168.1.177 netmask 255.255.255.0
static mode
Create a/etc/sysconfig/network-scripts/ifcfg-eth0:0 file and configure it. Note that the device=eth0:0 in the file, and the IP address at the interface cannot be obtained dynamically, need to be set manually.Note: When
There are 5 search commands for Linux, respectively, as follows:
which: Searches for the location of a system command in the path specified by the path variable, and returns the first search result;
type: Used to distinguish whether a command is brought by a shell or provided by a separate binary file outside the shell. If a command is an external command, then the-P argument displays the path to the command, which is equivalent to the which command
Http://os.51cto.com/art/201409/450886.htmMany system administrators today use command-line tools such as Ifconfig, Route, ARP, and Netstat (collectively referred to as Net-tools) to manage and troubleshoot various network configurations. This type of tool originally originated in the BSD TCP/IP toolkit and was designed to configure the network capabilities of older Linux kernels. Since 2001, it has stalled
view, can only run on this host and view the network interface used. For example, the HTTPD server is assigned to the bad address, in the browser input 127.0.0.1 will be able to see your Web site. But you can only see that the other host or user of the LAN is unknown.First line: Connection type: Ethernet (Ethernet) HWADDR (Hardware MAC address)Second line: IP address, subnet, mask of network cardThird line: Up (for Nic on) RUNNING (network cable on behalf of the NIC is connected) multicast (sup
Because the Linux system originated and developed on the Internet, it is born with powerful network functions and rich network application software, especially TCP/I
Because the Linux system originated and developed on the Internet, it is born with powerful network functions and rich network application software, in particular, the implementation of TCP/IP network protocols is particularly mature.
assigning an address to the bridge port, you can configure the Gateway as the bridge port address for other subnets. Of course, because the device is in the Gateway mode, routing and nat are also required. If the device is in the bridge mode, the routing and nat can be saved.
Brctl addbr bridge
Brctl addif bridge eth0
Brctl addif bridge ath0
Ifconfig eth0 0.0.0.0
Ifconfig bridge 10.0.0.1 netmask 255.25
control, sliding window congestion control, slow start and congestion avoidance algorithmsUDP featuresWork at the transport layer provides unreliable network access non-connection-oriented protocols with limited error checking for high transmission performance without data recovery characteristicsInternet protocol FeaturesThe OSI network layer is run on the connectionless protocol, and the data packet layered address is processed independently. No data recovery function for best effort transmis
toys (Games and entertainment)7. Miscellaneous (Miscellaneous, conventions and protocols, such as Linux file system, network protocol, ASCII code, and environ global variable)8. Administrative Commands (Administrator command, such as ifconfig)
For example, we want to view the ls usage: man 1 ls (1: The number "1", representing 1st sections, Standard Commands)
In fact, we do not need to specify the first
txqueuelen: 3
RX bytes: 8460352 (8.0 MiB) TX bytes: 913898 (892.4 KiB)
The first format of ifconfig (or the ifconfig command without any parameters) can be used to view the network configuration of the current system.
* Eth0: indicates the NIC code.
* Lo: The network loopback address in Linux, used to simulate network behavior,
* HWaddr: The hardware address o
associated with any other package.
# yum autoremove [On RedHat Systems]
# apt-get autoremove [On Debian Systems]
You should often remove discarded packages to ensure that Linux machines only load the required items.
4. How to obtain the local and public IP addresses of Linux servers
To obtain the local IP address, run the following script.
$ ifconfig |
Linux system-network basic configuration and troubleshooting, and linux basic configuration troubleshooting
In linux, there are three types of network configuration: one is to directly implement the configuration file using command lines on the terminal, and the other is to modify the configuration file, another method is setup text interface settings.
The differ
Unit 14th Linux Network principles and basic settingsThree types of network card mode diagramUse the Ifconfig command to maintain the networkfeatures of the ifconfig commandexamples of the use of IFCONFIG commandsTo start and stop a network card using the Ifup and Ifdown commandsfeatures of the IFUP commandfeatures of
Nbsp; Ifconfig command to let the LINUX core know some network interfaces such as software delivery and network card, so that Linux can use them. In addition to the usage described above, the ifconfig command is used to monitor and change the status of network interfaces. It can also contain many command line parameter
"information content"Example: Send broadcast message: WALL Hello Linux!!!Third, test network connectivity: Ping①, command name: Ping② and English original meaning:③, command path:/bin/ping④, execute permissions: All Users⑤, Function Description: Test network connectivity⑥, Syntax: ping "-C N" "IP Address"-c n is the specified number of times, if not specified, the connection information will be sent continuouslyExample: Testing a connection to Baidu:
): tar command32. One linux command (32) every day: gzip commandV. linux file permission settings27. One linux command every day (27): linux chmod command29. One linux command (29) every day: chgrp command30. One linux command eve
Nic network configuration basics in Linux-Linux Enterprise Application-Linux server application information. For more information, see the following section. By: nest of xwg999
The ifconfig command allows the LINUX core to know some network interfaces such as software deliv
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.