IP Maps

Taking care of your Linux box.
Posts: 124
Joined: Wed Mar 17, 2004 4:05 pm
Location: Karachi

IP Maps

Postby mfaisalkh » Sun Jul 04, 2004 9:45 am

Dear Users,

My server IP is, so i want another IPs(,, on the same NIC with the follwoing command:

/sbin/route eth0:1
/sbin/route eth0:2
/sbin/route eth0:3

Also i used the follwing command too:

/sbin/route add eth0
/sbin/route add eth0
/sbin/route add eth0

and checked that by using /sbin/route -n command

But after sometime i was started the system all these routes were not display.

Any1 tell me how it is possible that these routes always exist on my system.

Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi


Postby LinuxFreaK » Sun Jul 04, 2004 12:25 pm

Dear mfaisalkh,

/sbin/route add eth0:1
/sbin/route add eth0:2
/sbin/route add eth0:3

Best Regards.
Farrukh Ahmed

Major General
Posts: 917
Joined: Thu Jun 27, 2002 5:45 pm
Location: Karachi

Postby farhantoqeer » Sun Jul 04, 2004 1:41 pm

ifconfig can also do that.
A: Yes
Q: Is top-posting bad?

Naib Subedar
Posts: 305
Joined: Wed Oct 15, 2003 2:44 am
Location: Okara

Postby kashif » Mon Jul 05, 2004 5:25 pm

# ifconfig eth0:1 netmask

# ifconfig eth0:2 netmask

# ifconfig eth0:3 netmask

And if you want setting will intact after rebooting the system add them in

/etc/rc.local file

As-Salaatu was-Salaamu Alaika Ya Sayyidi Ya Rasool ALLAH


Return to “Administration”

Who is online

Users browsing this forum: No registered users and 2 guests