[Linux-HA] IPaddr and ifconfig

Steve Iribarne steve.iribarne at dilithiumnetworks.com
Fri Mar 4 07:41:46 MST 2005


-> I have a FC3 box running heartbeat. The box has a
-> number of vlan interfaces on different vlans which have interface
names
-> like
-> eth1.892, eth1.892:0. The problem i am having is that IPaddr uses
-> ifconfig
-> to match up an ipaddress to an interface. However ifconfig only
displays
-> 9
-> characters so if the interface name is longer than 9 characters
IPaddr
-> fails to get the entire interface name. The solution i've been using
is
-> to
-> use the following program (getint).
-> 

The way that I do this is by naming my vlan differently.  I use
something like:


for vlan eth0.100

You can use vconfig to set the name of your vlan.

So.. I do ...

vconfig vlan set_name_type vlan_plus_vid_no_pad

So when I do ifconfig it shows up like

vlan100

so I believe for eth1.892:0 I think it would show up like:

vlan892:0

I think you'd still have the same problem if you had a vlan ID greater
than 3 chars.  But I don't.  Mine are all 100, 101, 102..etc...

-stv


More information about the Linux-HA mailing list