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

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

how to add a static route

Reply to Message Icon

Name: Daniel
Date: March 20, 2001 at 14:10:39 Pacific
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



Sponsored Link
Ads by Google

Response Number 1
Name: Glen Coakley
Date: March 20, 2001 at 15:02:57 Pacific
Reply:

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


0

Response Number 2
Name: Tony
Date: April 19, 2002 at 01:02:53 Pacific
Reply:

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!!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: how to add a static route

How to add a java tag to the data www.computing.net/answers/unix/how-to-add-a-java-tag-to-the-data/8362.html

How to add a ' character in awk www.computing.net/answers/unix/how-to-add-a-character-in-awk/7751.html

how to create a beep sound www.computing.net/answers/unix/how-to-create-a-beep-sound/6312.html