Computing.Net > Forums > Unix > how to add a static route

how to add a static route

Reply to Message Icon

Original Message
Name: Daniel
Date: March 20, 2001 at 14:10:39 Pacific
Subject: how to add a static route
Comment:

who knows how to deal with this task:
say my office router's IP is 209.122.1.3, now I try to add a static route to reach 216.0.7.1 with a netmask of 255.255.255.224

Thank you so much,
Daniel


Report Offensive Message For Removal

Response Number 1
Name: Glen Coakley
Date: March 20, 2001 at 15:02:57 Pacific
Subject: how to add a static route
Reply: (edit)

Assuming you have multiple network cards and the router is attached to the second network card:

On Windows:
route add 216.0.7.1 mask 255.255.255.224 209.122.1.3 if 2

on Unix
route add 216.0.7.1 netmask 255.255.255.224 209.122.1.3 dev /dev/eth1


for more help on Windows type: route /?
for more help on Unix type: man route


Report Offensive Follow Up For Removal

Response Number 2
Name: Tony
Date: April 19, 2002 at 01:02:53 Pacific
Subject: how to add a static route
Reply: (edit)

I would like to know what is the syntax if I want to add a static route with destination to 123.456.789.0/24 and the next hop is 456.78.90.123. Please help!!


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: how to add a static route

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software