Sponsored Content
Full Discussion: How to add 2 gateway routes?
Top Forums UNIX for Dummies Questions & Answers How to add 2 gateway routes? Post 38724 by thehoghunter on Thursday 24th of July 2003 10:14:34 AM
Old 07-24-2003
SCO FAQ - routes

Quote:
SCO 5.0.4 adds a /etc/rc2.d/S90iproute script that reads /usr/internet/etc/sco_ip/routes. It's the Internet Manager that can add info to that file, but there's no reason you can't do it manually. The format is simple:

# comments are ok
# simple form
net default 10.1.1.3
# it's smart enough to delete the previous default
net default 192.168.1.2
# routes to specific hosts
host 192.168.1.8 10.1.1.7
# netmasks optional
net 192.168.1.0 10.1.1.3 255.255.255.0
# if field 1 isn't host or net, it's ignored
happiness 172.16.80.10 10.1.1.1
sanjose 172.16.80.10 10.1.1.1

Another advantage of this script is that when called with "stop" (/etc/rc2.d/S90iproute stop), it will delete the routes listed in the file.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Aix Add Gateway

I have a AIX lates OS. I;m trying to setup a remote office using a telnet section and for some reazon it wont let me login in to the server. I've done this type of configuration on a SCO 5.0.6 . In SCO there is a file call S99route and that is where you put the gateway and it works just... (3 Replies)
Discussion started by: josramon
3 Replies

2. HP-UX

How to add another default gateway

I am using HP-UX 11i and I need to add another default gateway. how can I do that ? (3 Replies)
Discussion started by: salhoub
3 Replies

3. SCO

how to add default routes in SCO

Hi, I add following routes manually each time system reboots: #route add 192.168.1.0 -gateway 192.168.0.90 #route add 192.168.200.0 -gateway 192.168.0.200 Is there any way in SCO 7.1.1 to automate this route add process? i.e. each time system reboots, it automatically adds these routes in... (1 Reply)
Discussion started by: tayyabq8
1 Replies

4. Solaris

Add gateway

Hi Community, I've a question about network adaptors. I've installed Solaris 10 configuring the ce0 port with an IP(10.23.8.15) , an interface_name (first) and a gateway(10.23.8.1) . I need to change the name of the interface ce0 and to configure another interface (ce1) with another... (1 Reply)
Discussion started by: Sunb3
1 Replies

5. Solaris

Where could I save the routes created using route add ?

Hey Gurus. My routes add using route add , are lost , after reboot.....where caould i save this routes a dont lost them ? Sun Solaris 10 is my OS. Thanks in advance, AGADEA. Unix ADMIN (3 Replies)
Discussion started by: aggadtech08
3 Replies

6. Solaris

Add Static Routes to new physical address

Hi, I need help to add new route: 10.252.0.138, GW 10.252.0.129 to e1000g1 and 10.252.0.10, GW 10.252.0.1 to e1000g2 tnx (4 Replies)
Discussion started by: mehrdad68
4 Replies

7. SCO

SCO 5.0.5 Add routes for new networks

Hi all, n00b here. We currently have 3 SCO 5.0.5 machines in our network that run a mission management system. Our internal network was always a 10.0.0.0 network and the machines worked fine. Our company is going through a network upgrade for VoIP and some of our departments are now on... (5 Replies)
Discussion started by: gibson_hg
5 Replies

8. Linux

GNUGK-How to setup static gateway to gateway routing

Dear Sir I am a newbie in the world of IP telephony. I have been working with Asterisk PBX (SIP) and Cisco Call Manager (MGCP) but now I am learning on how to work GNUGK for H.323 Gatekeeper. I am having a problem, configuring static call routing on GNUGK in the section ... (0 Replies)
Discussion started by: mfondoum
0 Replies

9. Solaris

Cannot add gateway

Hi, OS: Solaris 11.2 64bit IP address: 172.16.10.10 Netmask: 255.255.254.0 Gateway: 172.16.2.254 From windows box, i can set and ping gateway. IP address is same segment with windows box. But on solaris i cannot set gateway. route add default 172.16.2.254 add net default: gateway... (6 Replies)
Discussion started by: mzainal
6 Replies

10. UNIX for Beginners Questions & Answers

Inconsistency between RedHat 6.5 global gateway and single gateway leads to loss of default gateway

Dear friends I use RedHat 6.5, which sets the gateway in the configuration file / etc / sysconfig / network as GATEWAY = 192.168.1.26, and the gateway in the configuration file / etc / sysconfig / network-scripts / ifcfg-eth11 as GATEWAY = 192.168.1.256. The two gateways are different.... (6 Replies)
Discussion started by: tanpeng
6 Replies
GRE(4)							   BSD Kernel Interfaces Manual 						    GRE(4)

NAME
gre -- encapsulating network device SYNOPSIS
To compile the driver into the kernel, place the following line in the kernel configuration file: device gre Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5): if_gre_load="YES" DESCRIPTION
The gre network interface pseudo device encapsulates datagrams into IP. These encapsulated datagrams are routed to a destination host, where they are decapsulated and further routed to their final destination. The ``tunnel'' appears to the inner datagrams as one hop. gre interfaces are dynamically created and destroyed with the ifconfig(8) create and destroy subcommands. This driver corresponds to RFC 2784. Encapsulated datagrams are prepended an outer datagram and a GRE header. The GRE header specifies the type of the encapsulated datagram and thus allows for tunneling other protocols than IP. GRE mode is also the default tunnel mode on Cisco routers. gre also supports Cisco WCCP protocol, both version 1 and version 2. The gre interfaces support a number of additional parameters to the ifconfig(8): grekey Set the GRE key used for outgoing packets. A value of 0 disables the key option. enable_csum Enables checksum calculation for outgoing packets. enable_seq Enables use of sequence number field in the GRE header for outgoing packets. EXAMPLES
192.168.1.* --- Router A -------tunnel-------- Router B --- 192.168.2.* / / +------ the Internet ------+ Assuming router A has the (external) IP address A and the internal address 192.168.1.1, while router B has external address B and internal address 192.168.2.1, the following commands will configure the tunnel: On router A: ifconfig greN create ifconfig greN inet 192.168.1.1 192.168.2.1 ifconfig greN inet tunnel A B route add -net 192.168.2 -netmask 255.255.255.0 192.168.2.1 On router B: ifconfig greN create ifconfig greN inet 192.168.2.1 192.168.1.1 ifconfig greN inet tunnel B A route add -net 192.168.1 -netmask 255.255.255.0 192.168.1.1 NOTES
The MTU of gre interfaces is set to 1476 by default, to match the value used by Cisco routers. This may not be an optimal value, depending on the link between the two tunnel endpoints. It can be adjusted via ifconfig(8). For correct operation, the gre device needs a route to the decapsulating host that does not run over the tunnel, as this would be a loop. The kernel must be set to forward datagrams by setting the net.inet.ip.forwarding sysctl(8) variable to non-zero. SEE ALSO
gif(4), inet(4), ip(4), me(4), netintro(4), protocols(5), ifconfig(8), sysctl(8) A description of GRE encapsulation can be found in RFC 2784 and RFC 2890. AUTHORS
Andrey V. Elsukov <ae@FreeBSD.org> Heiko W.Rupp <hwr@pilhuhn.de> BUGS
The current implementation uses the key only for outgoing packets. Incoming packets with a different key or without a key will be treated as if they would belong to this interface. The sequence number field also used only for outgoing packets. BSD
November 7, 2014 BSD
All times are GMT -4. The time now is 01:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy