Static IP address setting for intranet and internet Nic in Linux (Debian)

Source: Internet
Author: User
Tags nameserver
For Linux (Debian) intranet and internet Nic static IP address setting for single Nic vim/etc/network/interfaces modification: [plain] # Thisfiledescribesthenetworkinterfacesavailableonyoursystem # andhowto...
In Linux (Debian), set static IP addresses of intranet and internet Nics. modify vim/etc/network/interfaces for a single NIC as follows: [plain] # This file describes the network interfaces available on your system # and how to activate them. for more information, see interfaces (5 ). authorization # The loopback network interface auto lo iface lo inet loopback # The primary network interface allow-hotplug eth0 # iface eth0 inet dhcp auto eth0 iface eth0 inet static address 192.168.1.108 netmask 255.255.255.0 gateway 192.168.1.1/ etc/resolv. add a [plain] nameserver 192.168.1.1 to the end of conf to restart the network service and make the change take effect/etc/init. d/networking restart www.2cto.com set the interfaces file [plain] # This file describes the network interfaces available on your system # and how to activate them. for more information, see interfaces (5 ). # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 210.13.108.55 netmask implements 255.255.240 network without broadcast #gateway upgrade # dns-* options are implemented by the resolvconf package, if installed dns-route 10.9.7.1 then your dns-search then whyonly.com then auto eth1 iface eth1 inet static address 10.9.7.68 netmask 255.255.255.0 broadcast protocol gateway 10.9.7.1 up/sbin/ip route add 10.9.0.0/16 via 10.9.7.1 src 10.9.7.68 down/sbin/ip route del 10.9.0.0/16 via 10.9.7.1 src 10.9.7.68 resolv. conf file [java] search internal.whyonly.com whyonly.com nameserver 10.9.7.1 nameserver 210.22.70.3 nameserver 210.22.84.3
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.