iptables prints "Warning: wierd character in interface `ethX:Y' (No aliases, :, ! or *)." when using IP aliasing

Solution Verified - Updated -

Issue

Running "iptables -o ethX:Y" prints an error like this:

     Warning: wierd character in interface `ethX:Y' (No aliases, :, ! or *).

However, "iptables -L" shows the rule is loaded correctly.

Environment

RHEL 5

At least one IP alias has been set on at least one interface.

iptables is used to force outgoing packet to go through an aliased interface.

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