[Linux-HA] IPaddr and ifconfig
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
-> eth1.892, eth1.892:0. The problem i am having is that IPaddr uses
-> to match up an ipaddress to an interface. However ifconfig only
-> characters so if the interface name is longer than 9 characters
-> fails to get the entire interface name. The solution i've been using
-> use the following program (getint).
The way that I do this is by naming my vlan differently. I use
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
so I believe for eth1.892:0 I think it would show up like:
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...
More information about the Linux-HA