Ubuntu10.10 Nic configuration file/etc/network/interfaces restart failure

Source: Internet
Author: User
Environment: ubuntu10.10 objective: to configure various operations found on the iptables rule network when the NIC is started: sh-c & quot; iptables-save & gt;/etc/iptables. rules & quot; vi/etc/network/interfaces # Add a command under the target Nic # pre-upiptabl environment: ubuntu 10.10 target: configure various operations found on the network by loading iptables rules during Nic startup: sh-c "iptables-save>/etc/iptables. rules "vi/etc/network/interfaces # Add a command under the target Nic # pre-up iptables-restore </etc/iptables. rules, however, has been tested and found. After the restart, these configurations will be lost. check the file header and you will find it. # This configuration file is auto-generated. # WARNING: Do not edit this file, your changes will be lost. # Please create/edit/etc/network/interfaces. head and/etc/network/interfaces. tail instead, # their contents will be inserted at the beginning and at the end # of this file, respectively. # NOTE: it is NOT guaranteed that the contents of/etc/network/interfaces. tail # will be at the very end of thi S file. the file is clearly written./etc/network/interfaces is automatically generated. To customize the configuration, create/etc/network/interfaces. head or/etc/network/interfaces. tail. Among them,/etc/network/interfaces. tail is not recommended. The following is an example: auto venet0: 0 iface venet0: 0 inet static address 184.22.224.125 netmask 255.255.255.0 pre-up iptables-restore </etc/iptables. rules
Related Article

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.