* IP aliasing
@ 2003-06-18 14:03 Ravi Kumar Munnangi
2003-06-18 14:27 ` Eugene Teo
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Ravi Kumar Munnangi @ 2003-06-18 14:03 UTC (permalink / raw)
To: linux-newbie, kernelnewbies, lvs-users
I want to give more than one IP addresses to my NIC.
For this we have to enable the feature of IP alias
when configuring the kernel and recompile it.
Is there any way to check if the option is already
checked or not?
My next question is,
After reconfiguring and recompiling, how can I give
IP addresses(aliases) to NIC?
please tell me the commands to be used.
Ravi kumar
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: IP aliasing
2003-06-18 14:03 IP aliasing Ravi Kumar Munnangi
@ 2003-06-18 14:27 ` Eugene Teo
2003-06-18 14:37 ` Master_PE
2003-06-19 5:28 ` Ravi
2 siblings, 0 replies; 4+ messages in thread
From: Eugene Teo @ 2003-06-18 14:27 UTC (permalink / raw)
To: Ravi Kumar Munnangi; +Cc: linux-newbie, kernelnewbies, lvs-users
Hi,
A little off-topic, but...
you don't have to enable ip alias. you can simply use
(1) ifconfig or (2) iproute2 tool.
iproute2's ip command is more convenient.
464 # ip link set dev $DEV up
465 # ip addr add dev $DEV w.x.y.z/24
466 # ip addr add dev $DEV p.q.r.s/16
467 # ip route add $DESTINATION via $GATEWAY src p.q.r.s
Eugene
--
Eugene TEO @ Linux Users Group, Singapore <eugeneteo@lugs.org.sg>
GPG FP: D851 4574 E357 469C D308 A01E 7321 A38A 14A0 DDE5
main(i){putchar(182623909>>(i-1)*5&31|!!(i<7)<<6)&&main(++i);}
<quote sender="Ravi Kumar Munnangi">
> I want to give more than one IP addresses to my NIC.
> For this we have to enable the feature of IP alias
> when configuring the kernel and recompile it.
> Is there any way to check if the option is already
> checked or not?
> My next question is,
> After reconfiguring and recompiling, how can I give
> IP addresses(aliases) to NIC?
> please tell me the commands to be used.
>
> Ravi kumar
>
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive: http://mail.nl.linux.org/kernelnewbies/
> FAQ: http://kernelnewbies.org/faq/
>
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: IP aliasing
2003-06-18 14:03 IP aliasing Ravi Kumar Munnangi
2003-06-18 14:27 ` Eugene Teo
@ 2003-06-18 14:37 ` Master_PE
2003-06-19 5:28 ` Ravi
2 siblings, 0 replies; 4+ messages in thread
From: Master_PE @ 2003-06-18 14:37 UTC (permalink / raw)
To: linux-newbie
On Wednesday 18 June 2003 16:03, Ravi Kumar Munnangi wrote:
> I want to give more than one IP addresses to my NIC.
> For this we have to enable the feature of IP alias
> when configuring the kernel and recompile it.
> Is there any way to check if the option is already
> checked or not?
> My next question is,
> After reconfiguring and recompiling, how can I give
> IP addresses(aliases) to NIC?
> please tell me the commands to be used.
Look for 7.4. IP Aliasing at Linux Networking HOWTO
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: IP aliasing
2003-06-18 14:03 IP aliasing Ravi Kumar Munnangi
2003-06-18 14:27 ` Eugene Teo
2003-06-18 14:37 ` Master_PE
@ 2003-06-19 5:28 ` Ravi
2 siblings, 0 replies; 4+ messages in thread
From: Ravi @ 2003-06-19 5:28 UTC (permalink / raw)
To: Ravi Kumar Munnangi; +Cc: linux-newbie, kernelnewbies, lvs-users
Hi Ravi,
Load the IP Alias module (you can skip this step if you compiled
the module into the kernel):
/sbin/insmod /lib/modules/`uname -r`/ipv4/ip_alias.o
Setup the loopback, eth0, and all the IP addresses beginning with the
main IP address for the eth0 interface:
for example:
/sbin/ifconfig lo 127.0.0.1
/sbin/ifconfig eth0 up
/sbin/ifconfig eth0 172.16.3.1
/sbin/ifconfig eth0:0 172.16.3.10
/sbin/ifconfig eth0:1 172.16.3.100
Setup the routes. First route the loopback, then the net, and finally,
the various IP addresses starting with the default (originally
allocated) one:
/sbin/route add -net 127.0.0.0
/sbin/route add -net 172.16.3.0 dev eth0
/sbin/route add -host 172.16.3.1 dev eth0
/sbin/route add -host 172.16.3.10 dev eth0:0
/sbin/route add -host 172.16.3.100 dev eth0:1
/sbin/route add default gw 172.16.3.200
Enjoy,
Ravi
Ravi Kumar Munnangi wrote:
> I want to give more than one IP addresses to my NIC.
> For this we have to enable the feature of IP alias
> when configuring the kernel and recompile it.
> Is there any way to check if the option is already
> checked or not?
> My next question is,
> After reconfiguring and recompiling, how can I give
> IP addresses(aliases) to NIC?
> please tell me the commands to be used.
>
> Ravi kumar
>
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive: http://mail.nl.linux.org/kernelnewbies/
> FAQ: http://kernelnewbies.org/faq/
>
--
The views presented in this mail are completely mine. The company is not
responsible for whatsoever.
------------------------------------------------------------------------
Ravi Kumar CH
Rendezvous On Chip (i) Pvt Ltd
Hyderabad, India
Ph: +91-40-2335 1214 / 1175 / 1184
ROC home page <http://www.roc.co.in>
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-06-19 5:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-18 14:03 IP aliasing Ravi Kumar Munnangi
2003-06-18 14:27 ` Eugene Teo
2003-06-18 14:37 ` Master_PE
2003-06-19 5:28 ` Ravi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox