Linux NIC configuration multi-IP

Source: Internet
Author: User

#ifconfig eth0:0 192.168.6.100 netmask 255.255.255.0 up
#ifconfig eth0:1 173.173.173.173 netmask 255.255.255.0 up
#ifconfig eth0:2 119.110.120.1 netmask 255.255.255.0 up
configuration file/etc/sysconfig/network-scripts Directory

# 3Com Corporation 3c905b 100BaseTX [Cyclone]//hardware model, negligible

device=eth0:0//Virtual network interface, optional
onboot=yes//activated at system startup
bootproto=static//Use static IP address
ipaddr=192.168.6.100//IP alias of the virtual network interface, optionally
netmask=255.255.255.0//subnet mask, corresponding IP alias
gateway=192.168.6.1//gateway, corresponding IP alias
hwaddr=00:10:5a:5e:b1:e4//network card MAC address, no need to change
Userctl=no//whether to give non-root user device administrative rights

This article is from the "Qinnengbuzhuo" blog, make sure to keep this source http://echoroot.blog.51cto.com/11804540/1965429

Linux NIC configuration multi-IP

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.