2.2.0-pre5(a): Bug With Ifac Aliases?

Scooby Doo (scoobyg@my-dejanews.com)
Fri, 08 Jan 1999 07:52:50 -0000


First, config:

Cyrix 6x86MX PR233
64MB RAM
2 IDE disks (4.3GB, 2.5GB)
2.2.0-pre5(a) (i.e. hand patched to fix IP_MASQ_F_DLOOSE compile problem value is 0x020])
RedHat 5.2 Base system, with current RPMs (and custom kernel, obviously)
DaynaPort PCI Ethernet
Noname 33.6 internal PCI modem

I have been trying to make an alias on the eth0 iface work. I started with RH's linuxconf tool. linuxconf won't activate the aliases for me, claiming that the alias support isn't in the kernel. I have gone through three kernels with this now (2.1.129, 2.2.0-pre4, and 2.2.0-pre5a) and I am positive the support is compiled in*). I can't find and pseudo item with /proc that say alias, so I'm no understanding what this is about. The /etc/sysconfig/network-scripts shell items are using ifconfig and route except that it uses `linuxconf --hint ipalias` and that says there is an error when you use the linuxconf to adda lias. Mebbe linuxconf just needs an update? I dunno.

This is what I do to set it up manually:

ifconfig eth0:0 192.168.2.105 netmask 255.255.255.0 up
route add -net 192.168.2.0 netmask 255.255.255.0 dev eth0:0

Both "work" silently. And they do work, as I can e.g. set up a host entry for new IP (192.168.2.105, say) and new apache home pag on that IP and that come up right, separate from the default home page on the 192.168.2.1 (eth0) IP.

`netstat -rn` look like this:

...
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
...

Now, one of those is the real interface, a second one is usually there (probly a config oops somewhere) but the third is new after the route command. With 2.0.3x, this command would look more like:

...
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0:0
...

I found a later net-tools (1.49, up from 1.46 on RH5.3) and that helped with the ifconfig output (it now correctly shows the eth0:0 alias, but not before did it show it).

Is this buggy behavior, User Segfault(tm) or what is thats happanaing?

scooby

* Relevant .config section, *** added for emphasis:

#
# Networking options
#
CONFIG_PACKET=y
CONFIG_NETLINK=y
CONFIG_RTNETLINK=y
CONFIG_NETLINK_DEV=y
CONFIG_FIREWALL=y
CONFIG_NET_ALIAS=y ***
CONFIG_FILTER=y
CONFIG_UNIX=y
CONFIG_INET=y
# CONFIG_IP_MULTICAST is not set
CONFIG_IP_ADVANCED_ROUTER=y
CONFIG_RTNETLINK=y
CONFIG_NETLINK=y
CONFIG_IP_MULTIPLE_TABLES=y
# CONFIG_IP_ROUTE_MULTIPATH is not set
CONFIG_IP_ROUTE_TOS=y
CONFIG_IP_ROUTE_VERBOSE=y
# CONFIG_IP_ROUTE_LARGE_TABLES is not set
CONFIG_IP_ROUTE_NAT=y
# CONFIG_IP_PNP is not set
CONFIG_IP_FIREWALL=y
CONFIG_IP_FIREWALL_NETLINK=y
CONFIG_NETLINK_DEV=y
CONFIG_IP_ALWAYS_DEFRAG=y
CONFIG_IP_TRANSPARENT_PROXY=y
CONFIG_IP_MASQUERADE=y

#
# Protocol-specific masquerading support will be built as modules.
#
CONFIG_IP_MASQUERADE_ICMP=y

#
# Protocol-specific masquerading support will be built as modules.
#
CONFIG_IP_MASQUERADE_MOD=y
CONFIG_IP_MASQUERADE_IPAUTOFW=y
CONFIG_IP_MASQUERADE_IPPORTFW=y
# CONFIG_IP_MASQUERADE_MFW is not set
CONFIG_IP_ROUTER=y
# CONFIG_NET_IPIP is not set
# CONFIG_NET_IPGRE is not set
CONFIG_IP_ALIAS=y ***
# CONFIG_ARPD is not set
CONFIG_SYN_COOKIES=y

-----== Sent via Deja News, The Discussion Network ==-----
http://www.dejanews.com/ Easy access to 50,000+ discussion forums

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/