View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-14-2005, 04:45 PM   #1
LQ Newbie
Registered: Nov 2005
Posts: 2

Rep: Reputation: 0
Multiple IP address/gateways single nic


I am running Mandrake 8.2 and need to create multiple ip address/gateways for 1 network card. I have the virtual interface setup as eth0:1 and it works. I need to specify a different gateway for eth0:1 than for eth0.

Old 11-15-2005, 06:48 AM   #2
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Rep: Reputation: 30
You can't have 2 different default gateways, but you can add a route to a specific network and a gateway with the "route" command
Old 11-15-2005, 08:51 AM   #3
LQ Newbie
Registered: Nov 2005
Posts: 2

Original Poster
Rep: Reputation: 0
I have tried

route add -host gw
Where host is the IP address of eth0:

route add -host gw
Where host is the IP address of eth0:1

This is not working


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Red Hat 7.3 and multiple gateways on multiple interfaces bluefmc Linux - Networking 2 11-19-2004 06:01 PM
multiple ip address for single eth interface blackhound Linux - Networking 2 02-25-2004 07:02 AM
binding multiple IPs to single NIC? lok1 Linux - Networking 2 11-16-2003 03:58 PM
Multiple addresses for a single NIC grub Programming 1 08-04-2003 03:24 AM
multiple ips, multiple gateways, one interface drpixel Linux - Networking 6 12-04-2002 01:56 AM

All times are GMT -5. The time now is 07:27 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration