|
|
#1 | ||||||||||||||
|
Administrator
![]() ![]()
Join Date: 2005 Feb
Location: Cape Town
Posts: 6,242
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
There are many ways to do this, however I will show the one I use most often.
When adding a route in Ubuntu/Linux you would normally just run this for instance: Code:
$ route add -net 10.0.0.0 gw 10.2.5.1 netmask 255.0.0.0 dev eth0 Create a file called "static-route" in /etc/network/if-up.d Now make the file look like this and change the example routing as you would require it: Code:
#!/bin/sh # Set static routes # # Below are examples of how it should look to add static routes. /sbin/route del -net default gw 10.2.5.1 netmask 0.0.0.0 dev eth0 /sbin/route add -net 10.0.0.0 gw 10.2.5.1 netmask 255.0.0.0 dev eth0
__________________
"The fact of the matter is, Open Source is better."
"Linux users are not pirates, we're ninjas." Follow me on Twitter. |
||||||||||||||
|
|
|
||||||||||||||
|
|
#2 | ||||||||||||||
|
VIP
![]()
|
*takes notes*
__________________
May his rest be long and placid,
he who adds water to acid. >> Code Cafè << >> NASA Database << >> Wikipedia Data Dumps << >> DiSS-Assembler << >> Database of Periodic Tables << >> GPU Review << Make this folder (Windows 7 only): GodMode.{ED7BA470-8E54-465E-825C-99712043E01C} Firmware 7200.11, do you take this Seagate TB Drive to be your lawfully wedded victim, to have and to hold, until failure do you part, and to forever lose your data? |
||||||||||||||
|
|
|
||||||||||||||
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|