Jennifer Lin’s Weblog

March 14, 2008

One network card with 2 IP adresses

Filed under: Network — jennyca @ 3:17 am
Every ethernet interface can have any number of aliases in the form

ethX:Y

For example, since you have one ethernet card, it's probably "eth0". You
can have as many IP's as you want that attach to the "virtual ethernet
cards" eth0:0, eth0:1, eth0:2, eth0:3 . . . you get the idea. To assign an
IP to one of these cards, just type (as root)

ifconfig eth0:1 10.1.1.2 (or some such address.)
That's all there is to it! If you want to make these settings permanent
over boot, add the 'ifconfig' line to /etc/rc.d/rc.local or put it into
the redhat network startup scripts.

No Comments Yet »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.