My network is set up as an ethernet of several mackines like Mac with the linux serving as router through a PPP link. I IP MASQ over the PPP and the Ethernet is obviously a private network. I'm having the proiblem with aliases on eth0 (ethernet) interface with 2.2.0-pre5. I had same problem with 2.1.129, which was why I originally upgraded kernel to latest. I had to hand patch the ip_masq.h to add the IP_MASQ_F_DLOOSE everyone saw as problem. I use 0x020 as value.
I tried to use linuxconf to add alias to eth0 (eth0:0) but it won't activate the aliases for me, claiming that the alias support isn't in the kernel. I can't find and pseudo item with /proc that say alias, so I'm no understanding what that's about. The kernel does have alias included, and I have tried this now with 3 different compiles of kernel, so I can't have messed it up all times! See bottom for relevant part of .config for kernel 2.2.0.
If I manual add the alias like this:
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
the alias "work" i.e. I can run an apache web page from the alias and itr come up like expected.
The /etc/sysconfig/network-scripts shell items are using ifconfig and route too, 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.
`netstat -rn`
...
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. 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) and that helped with the ifconfig
output (it now correctly shows the eth0:0 alias, but the default RH5.2 v1.46 didn't even show the alias at all).
I post tos ee if mebbe there is a problem (bug?) with something or if this is expected behaviour that its working!
Thanks,
Scooby
--- .config# # 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/