Linux Network Management

Source: Internet
Author: User

1.linux Configuration ip:ifconfig Command Temporary configuration ifconfig eth0 192.168.254.200 netmask 255.255.255.0
Setup tool permanently configures Setup service network restart
Modify the network configuration file Vi/etc/sysconfig/network-scripts/ifcfg-eth0
Vi/etc/sysconfig/network
Vi/etc/resolv.conf
Graphical interface Configuration IP address

2. If you are replicating a virtual machine, you need to modify the UUID:
     1) vi/etc/sysconfig/network-scripts/ifcfg-eth0
         * Delete MAC address line
    2) rm-rf/etc/udev/rules.d/70-persistent-net.rules
     * Remove network card and MAC address bindings file
    3) Restart system

3. Network connection of the virtual machine to the physical machine:
Bridging: Equivalent to another computer that communicates with other virtual machines in the same segment and has a separate IP. * Note Select Bridge Adapter
NAT (network address translation mode): The physical machine for the router to the Internet.
Host-only mode
4. Ifdown Network card name #禁用网卡
Ifup NIC name #启用网卡
Netstat-tuln or-an
Netstat-rn or Route-n #查网关
Nslookup server #可查DNS
Logout #远程连接要登出
wget #下载命令
Tcpdump #抓包命令
eg. Tcpdump-i ETH0-NNX Port 21


Linux Network Management

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.