LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


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

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


Hi,

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.

Thanks
Bill
 
Old 11-15-2005, 05:48 AM   #2
pk21
Member
 
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, 07:51 AM   #3
1192bo
LQ Newbie
 
Registered: Nov 2005
Posts: 2

Original Poster
Rep: Reputation: 0
I have tried

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

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

This is not working
 
  


Reply



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 05:01 PM
multiple ip address for single eth interface blackhound Linux - Networking 2 02-25-2004 06:02 AM
binding multiple IPs to single NIC? lok1 Linux - Networking 2 11-16-2003 02:58 PM
Multiple addresses for a single NIC grub Programming 1 08-04-2003 02:24 AM
multiple ips, multiple gateways, one interface drpixel Linux - Networking 6 12-04-2002 12:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:39 AM.

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