Home Linux Community Forums Hardware Networking Routing via aliased interfaces in RHEL

Routing via aliased interfaces in RHEL

Link to this post 07 Apr 11

Hi all,

I am having following problem.

RHEL 5.5 won't accept specifying an aliased interface (e.g. eth1:0) when I add a new host route to the routing table of a machine with multiple Ethernet interfaces. I have read that this works with Ubuntu, but RHEL gives problems. It only understands the interface card (e.g. either eth0 or eth1, but does not understand the aliased virtual interfaces within say eth0 or eth1)

Any input would be appreciated


Link to this post 12 Apr 11

instead of ifconfig/route, try using the ip tool (belongs to the iproute package).
first, bring down the device:

ifdown eth0

to assign two ip addresses to a device:
ip addr add dev eth0
ip addr add dev eth0

to add a default route:
ip route add default via dev eth0

to show ip configuration for a device:
ip addr show dev eth0


Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board