How to remove a second IP address from the same interface?

Solution Verified - Updated -

Issue

  • My interface is showing two IP addresses in the output of ip addr show
  • The output of the command looks similar to:
bond0.200@bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue 
    link/ether 00:17:a4:77:38:38 brd ff:ff:ff:ff:ff:ff
    inet 10.10.10.61/24 brd 10.10.10.255 scope global bond0.200
    inet 10.10.10.177/24 brd 10.10.10.255 scope global secondary bond0.200:1
    inet 10.10.10.221/24 brd 10.10.10.255 scope global secondary bond0.200:1
       valid_lft forever preferred_lft forever
  • How can I remove one of the IP addresses without taking down the entire bond?

Environment

  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6
  • VLAN tagging and virtual aliases on the interfaces.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content