Joon wrote:

Hi,

Just a quickie: If I have 2 ip addresses in one box,

ip1 --> eth0
ip2 --> eth0:1


as every number in computer starts with zero, so u can use virtual ip eth0:0



and I want to make ip2 the default source ip address for all my connections, how do I do it?

simply assign your src ipaddr to ip2 using ifconfig

# ifconfig eth0:0 <your_ip_addr> netmask <your_subnet>

adn dont forget to set your gateway:

# route add default gw <your_gateway_for_this_network>


Thanks!






/msl


--
Philippine Linux Users' Group (PLUG) Mailing List
[EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie

Reply via email to