Re: [ilugd] Building a module
On Tue, 2003-08-26 at 21:24, Yashpal Nagar wrote: Dear All, I need to recompile the kernel 2.4.22, with ip_alias.o support for some specific reason. Recompiled two times with even every options in networking related but could't figure out where it exits. Can someone help me out in finding what/which option has to be _ENABLED_ for ip_alias.o support in kernel. If I am not mistaken in 2.4.x kernel there is no module called ip_alias.I believe it has deprecated try google.com You could check out /etc/sysconfig/network-scripts/ifup-aliases in RH 9 PC. The support is just there although from where it comes from dunno. This works just fine without ip_alias.o module ifconfig eth0:1 192.168.3.2 netmask 255.255.255.0 -- Arindam Dey The mind is not a vessel to be filled but a fire to be kindled. GPG FPR: B8E3 219E F129 F970 F4A7 BC50 9636 504A BEDF 5739 ___ ilugd mailing list [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd
Re: [ilugd] Building a module
Dear Arindam, - Original Message - From: Arindam Dey [EMAIL PROTECTED] To: Yashpal Nagar [EMAIL PROTECTED]; The Linux-Delhi mailing list [EMAIL PROTECTED] Sent: Wednesday, August 27, 2003 10:33 AM Subject: Re: [ilugd] Building a module On Tue, 2003-08-26 at 21:24, Yashpal Nagar wrote: Dear All, I need to recompile the kernel 2.4.22, with ip_alias.o support for some specific reason. Recompiled two times with even every options in networking related but could't figure out where it exits. Can someone help me out in finding what/which option has to be _ENABLED_ for ip_alias.o support in kernel. If I am not mistaken in 2.4.x kernel there is no module called ip_alias.I believe it has deprecated try google.com You could check out /etc/sysconfig/network-scripts/ifup-aliases in RH 9 PC. The support is just there although from where it comes from dunno. This works just fine without ip_alias.o module ifconfig eth0:1 192.168.3.2 netmask 255.255.255.0 I know it works fine. Problem comes suppose if i adds the /sbin/route add -host 192.168.168.3 dev eth0:1 It still show me the entry Iface as eth0 not eth0:1 in 'route -n' My question is will route program should show eth0:1 or eth0:2 as the Iface parameter? I am using two ISPs with same linux box. Both ISPs are connected to switch and my linux box too. One ISP is ADSL and another one is broadband. When i assign both IPs(one private one public) no one can ping to my broadband IP. Here is details of 'route -n' ifconfig [EMAIL PROTECTED] network-scripts]# ifconfig eth0 Link encap:Ethernet HWaddr 00:E0:7D:EB:BC:BE inet addr:210.x.x.14 Bcast:210.x.x.15 Mask:255.255.255.252 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:976191 errors:0 dropped:0 overruns:0 frame:0 TX packets:1017588 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:167080249 (159.3 Mb) TX bytes:361156263 (344.4 Mb) Interrupt:10 Base address:0xa000 eth0:1Link encap:Ethernet HWaddr 00:E0:7D:EB:BC:BE inet addr:192.168.168.3 Bcast:192.168.168.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 Interrupt:10 Base address:0xa000 loLink encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:5104 errors:0 dropped:0 overruns:0 frame:0 TX packets:5104 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:512676 (500.6 Kb) TX bytes:512676 (500.6 Kb) [EMAIL PROTECTED] network-scripts]# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric RefUse Iface 210.x.x.120.0.0.0 255.255.255.252 U 0 00 eth0 192.168.168.0 0.0.0.0 255.255.255.0 U 0 00 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 00 lo 0.0.0.0 192.168.168.1 0.0.0.0 UG1 00 eth0 [EMAIL PROTECTED] network-scripts]# Where 192.168.168.1 is my LAN IP of ADSL router. I want ip 210.x.x.14 should get pinged from anywhere in world. regards, -Yash Regards, -Yash -- Arindam Dey The mind is not a vessel to be filled but a fire to be kindled. GPG FPR: B8E3 219E F129 F970 F4A7 BC50 9636 504A BEDF 5739 ___ ilugd mailing list [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd
Re: [ilugd] Building a module
On Wed, 2003-08-27 at 14:26, Yashpal Nagar wrote: Dear Arindam, - Original Message - From: Arindam Dey [EMAIL PROTECTED] To: Yashpal Nagar [EMAIL PROTECTED]; The Linux-Delhi mailing list [EMAIL PROTECTED] Sent: Wednesday, August 27, 2003 10:33 AM Subject: Re: [ilugd] Building a module On Tue, 2003-08-26 at 21:24, Yashpal Nagar wrote: Dear All, I need to recompile the kernel 2.4.22, with ip_alias.o support for some specific reason. Recompiled two times with even every options in networking related but could't figure out where it exits. Can someone help me out in finding what/which option has to be _ENABLED_ for ip_alias.o support in kernel. If I am not mistaken in 2.4.x kernel there is no module called ip_alias.I believe it has deprecated try google.com You could check out /etc/sysconfig/network-scripts/ifup-aliases in RH 9 PC. The support is just there although from where it comes from dunno. This works just fine without ip_alias.o module ifconfig eth0:1 192.168.3.2 netmask 255.255.255.0 I know it works fine. Problem comes suppose if i adds the /sbin/route add -host 192.168.168.3 dev eth0:1 It still show me the entry Iface as eth0 not eth0:1 in 'route -n' My question is will route program should show eth0:1 or eth0:2 as the Iface parameter? I am using two ISPs with same linux box. Both ISPs are connected to switch and my linux box too. One ISP is ADSL and another one is broadband. When i assign both IPs(one private one public) no one can ping to my broadband IP. Here is details of 'route -n' ifconfig OK here goes my ifconfig and route output [IFCONFIG] eth0 Link encap:Ethernet HWaddr 00:D0:B7:C2:AF:ED inet addr:192.168.1.10 Bcast:192.168.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:44292806 errors:0 dropped:0 overruns:0 frame:0 TX packets:44887247 errors:26 dropped:0 overruns:0 carrier:26 collisions:0 txqueuelen:100 RX bytes:223345784 (212.9 Mb) TX bytes:3314271004 (3160.7 Mb) Interrupt:11 Base address:0xdf00 Memory:feafe000-feafe038 eth1 Link encap:Ethernet HWaddr 00:D0:B7:C2:AF:EC inet addr:202.188.158.195 Bcast:202.188.158.255 Mask:255.255.255.192 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:47015117 errors:0 dropped:0 overruns:0 frame:0 TX packets:45804571 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:3731682984 (3558.8 Mb) TX bytes:3766914373 (3592.4 Mb) Interrupt:11 Base address:0xde80 Memory:feafd000-feafd038 eth1:1Link encap:Ethernet HWaddr 00:D0:B7:C2:AF:EC inet addr:202.188.158.221 Bcast:202.188.158.255 Mask:255.255.255.192 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:47015117 errors:0 dropped:0 overruns:0 frame:0 TX packets:45804571 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:3731682984 (3558.8 Mb) TX bytes:3766914373 (3592.4 Mb) Interrupt:11 Base address:0xde80 Memory:feafd000-feafd038 eth1:2Link encap:Ethernet HWaddr 00:D0:B7:C2:AF:EC inet addr:202.188.158.199 Bcast:202.188.158.255 Mask:255.255.255.192 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:47015117 errors:0 dropped:0 overruns:0 frame:0 TX packets:45804571 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:3731682984 (3558.8 Mb) TX bytes:3766914373 (3592.4 Mb) Interrupt:11 Base address:0xde80 Memory:feafd000-feafd038 loLink encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:5882312 errors:0 dropped:0 overruns:0 frame:0 TX packets:5882312 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2975702635 (2837.8 Mb) TX bytes:2975702635 (2837.8 Mb) [/IFCONFIG] [ROUTE] Kernel IP routing table Destination Gateway Genmask Flags Metric RefUse Iface 202.188.158.192 * 255.255.255.192 U 0 00 eth1 192.168.1.0 * 255.255.255.0 U 0 00 eth0 169.254.0.0 * 255.255.0.0 U 0 00 eth1 127.0.0.0
Re: [ilugd] Building a module
Yashpal Nagar wrote: snip It still show me the entry Iface as eth0 not eth0:1 in 'route -n' My question is will route program should show eth0:1 or eth0:2 as the Iface parameter? I am using two ISPs with same linux box. Both ISPs are connected to switch and my linux box too. One ISP is ADSL and another one is broadband. When i assign both IPs(one private one public) no one can ping to my broadband IP. Here is details of 'route -n' ifconfig snip Where 192.168.168.1 is my LAN IP of ADSL router. I want ip 210.x.x.14 should get pinged from anywhere in world. Linux would always use aliases for secondary addresses. The problem here is of multiple gateways. If you run something like tcpdump -nei eth0 icmp while pinging your 210.x.x.14 address, you would most likely the destination ethernet address of the ICMP echo replies as the 192.168.168.1 address, i.e. Linux is trying to route the reply packets of your broadband ISP through the ADSL ISPs gateway. You could fix it by source routing, if you can use iproute2: #ip route add table isp1 210.x.x.14/30 dev eth0 src 210.x.x.14 proto static scope global #ip route add table isp1 default via 210.x.x.12 dev eth0 proto static scope global #ip rule add from 210.x.x.12/30 lookup isp1 prio 100 #ip route add table isp2 192.168.1.0/24 dev eth0 src 192.168.1. proto static scope global #ip route add table isp2 default via 192.168.1.0/24 dev eth0 proto static scope global #ip rule add from 192.168.168.0/24 lookup isp2 prio 100 Also, in /etc/iproute2/rt_tables, add entries for tables isp1 isp2 I think http://lartc.org has a section on this... BTW, I don't think 210.x.x.12 is a valid IP for a /30 subnet, since it would become the network address for that subnet. -- Regards, Varun Varma --- Mindframe Software Services Pvt. Ltd. http://www.mindsw.com --- ___ ilugd mailing list [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd