Siocsifflags: cannot assign requested address

Source: Internet
Author: User

[[Email protected] ~] # Ifconfig eth0: 1 up
Siocsifflags: cannot assign requested address

 

The reason for the above error is the eth0: 1 information written in the ifcfg-eth0: 1 configuration file, the intention is to, automatically load when the boot, to achieve a Dual IP card.

However, when the eth0: 1 device is manually down ("ifconfig eth0: 1 down" is executed), the above error is reported when the device is enabled again, mainly because the MAC address is repeated.

Solution:

1. Manually allocate a MAC address (not recommended)

2, manually execute the command to add IP, written in the ifcfg-eth0: 1 in the information configuration, such

Ifconfig eth0: 1 192.168.1.2/24

Route add default GW 192.168.1.1 Dev eth0: 1

 

Siocsifflags: cannot assign requested address

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.