Reference:openstack Grizzly Install Guide1 ubuntu How to add a virtual network card sometimes, a server needs to set up multiple IPs, but does not want to add multiple network cards, Then you need to set up the virtual network card. Here are two ways to add a virtual network card to Ubuntu. We add a virtual network card to eth0: The first method: Express create \ Delete virtual network card sudo ifconfig eth0:0 192.168.10.10 up above the command can be created on the ETH0 network card called eth0:0 Virtual network card, his address is: 192.168.1.63 www.2cto.com If you do not want this virtual network card, you can use the following command to delete: sudo Ifconfig eth0:0 down after restarting the server or network, the virtual network card will not be. The second method: Modify the NIC profile in Ubuntu, the NIC profile is/etc/network/interfaces, so we modify it: sudo vim/etc/network/interfaces add the following to this file and save: www.2cto.com Auto Eth0:0iface eth0:0 inet staticaddress 192.168.10.10netmask 255.255.255.0#network 192.168.10.1# Broadcast 192.168.1.255 Save, we need to restart the network card (reload the configuration file) to take effect, restart with the following command: sudo/etc/init.d/networking Restart his advantage is to restart the server or network card is not afraid, The disadvantage is some trouble.
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