Jump to content

Adding different routes on server with a static ip


hanes
 Share

Recommended Posts

Im switching an old server from redhat 7 or so to mandriva 2005...

Its funny how faster Mdk 2005 is on the same box!

 

Anyway I have a quick question... my server is set up as a static ip, and i have 3 routes to enter (each with a different subnet and gateway) the MCC doesnt let me do this? is there an alternate method? i dont know the text way because the old red hat server just had it under "network settings"

Link to comment
Share on other sites

All GUI config tools run scripts behind the scenes. In this case, you need to use the command route. Read it's manual by typing man route as root. A quick example of adding a default gateway:

route add default gw 192.168.0.1 dev eth1

Now, are trying to setup three ethernet interfaces, or do you wish one interface to listen to three subnets? The first case is easy, you just configure three independednt interfaces using Mandriva Control Centre. The second option is easy too, you need to setup IP aliasing, have a look at this mini-HOWTO: http://www.faqs.org/docs/Linux-mini/IP-Alias.html

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...