10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
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
2. Shell Programming and Scripting
I have a VPN subscription at Private Internet Access. I mainly use the Switzerland gateway. Now I use it with their client. Many times the Switzerland gateway is down so I have to find another gateway. I want to setup my DD-WRT router (WRT54GL) with the VPN and I want it to automatically switch... (0 Replies)
Discussion started by: Ag3r12
0 Replies
3. Linux
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
4. Shell Programming and Scripting
Hi all,
I'm using the following script to automated ftp files to 1 ftp servers
host=192.168.0.1
/usr/bin/ftp -vi >> $bkplog 2>&1 <<ftp
open $host
bin
cd ${directory}
put $files
quit
ftp
and the .netrc file contain
machine 192.168.0.1
login abc... (4 Replies)
Discussion started by: varu0612
4 Replies
5. Shell Programming and Scripting
Hi,
I have a ftp script which first gets all the file names and echo's the latest file.
I'm using another ftp command sets to get the file name given by first ftp. The problem is the parameter is not accepted by second ftp. The error message i'm getting is
> Rename Temp File calloc:ICMP... (5 Replies)
Discussion started by: ammu
5 Replies
6. Ubuntu
I currently have Win 2003 setup with a server residing in the DMZ as a gateway forwarding ftp traffic via port 44000 to the ftp server behind the firewall.
I want to setup the same with RedHat Linux. Need information on what software module would duplicate the above, and pass all ftp/sftp/ssl... (1 Reply)
Discussion started by: cdlvj
1 Replies
7. Shell Programming and Scripting
I have the following ftp script to get files from a remote location.
However, on running the script I find that I am not even able to connect to ftp server.
I am able to connect to ftp server using other GUI ftp tools like WS_FTP using the same IP.
IP used here is a dummy IP.
What can go... (3 Replies)
Discussion started by: gram77
3 Replies
8. Shell Programming and Scripting
Hello,
A couple of times per week, i receive emails notifications when files are available for processing.
Currently i read these eamails with a java program and store the attachement on my C: drive and would now like to generate a PC script to send this file name up to UNIX-Solaris and... (3 Replies)
Discussion started by: bobk544
3 Replies
9. Shell Programming and Scripting
Hello all!
We have two fedora routers one at each site. What we are trying to do worked using freesco but not on fedora, i'm not very good at scripting and need a little guidence. Basicly what we are trying to do is if the primary line dies, the router will change it's routes to go through our... (0 Replies)
Discussion started by: slacker
0 Replies
10. UNIX for Dummies Questions & Answers
Novice here...
I need help with excuting a shell script on a flat file that I've transfered over from a Windows XP machine for manipulation through an auto FTP script...
so that after it is transfers it excutes the shell script and then returns it back to XP machine...
Any ideas... (2 Replies)
Discussion started by: Gerry405
2 Replies
gateways(4) Kernel Interfaces Manual gateways(4)
NAME
gateways - Specifies Internet routing information to the routed daemon
SYNOPSIS
/etc/gateways
DESCRIPTION
The /etc/gateways file identifies gateways for the routed daemon. Ordinarily, the routed daemon queries the network and builds routing
tables. The routed daemon builds the tables from routing information transmitted by other hosts directly connected to the network. How-
ever, there may be gateways that this command cannot identify through its queries. These unidentified gateways are known as distant gate-
ways. Such gateways should be identified in the /etc/gateways file, which the routed daemon reads when it starts.
The general format of an file entry in the /etc/gateways file is: Destination Name1 gateway Name2 metric Value Type
The following is a brief description of each element in an /etc/gateways file entry: A keyword that indicates whether the route is to a
network or to a specific host. The two possible keywords are net and host. The name associated with Destination. Name1 can be either a
symbolic name (as used in the /etc/hosts or /etc/networks file) or an Internet address specified in dotted-decimal format. An indicator
that the following string identifies the gateway host. The name or address of the gateway host to which messages should be forwarded. An
indicator that the next string represents the hop count to the destination host or network. The hop count, or number of gateways, from the
local network to the destination network. A keyword that indicates whether the gateway should be treated as active, passive, or external.
The three possible keywords are as follows: An active gateway is treated like a network interface. That is, it is expected to exchange RIP
(Routing Information Protocol) routing information. Information about it is maintained in the internal routing tables as long as it is
active and is included in any routing information that is transmitted through RIP. If it does not respond for a period of time, the route
associated with it is deleted from the internal routing tables. A passive gateway is not expected to exchange RIP routing information.
Information about it is maintained in the routing tables indefinitely and is included in any routing information that is transmitted
through RIP. An external gateway is identified to inform the routed daemon that another routing process will install such a route and that
alternative routes to that destination should not be installed. Information about external gateways is not maintained in the internal rout-
ing tables and is not transmitted through RIP.
Note that these routes must be to networks.
EXAMPLES
To specify a route to a network through a gateway host with an entry in the gateways file, enter: net net2 gateway host4 metric 4 passive
This example specifies a route to a network, net2, through the gateway host4. The hop count metric to net2 is 4, and the gateway is
treated as passive. To specify a route to a host through a gateway host with an entry in the gateways file, enter: host host2 gate-
way host4 metric 4 passive
This example specifies a route to a host, host2, through the gateway host4. The hop count metric to host2 is 4, and the gateway is
treated as passive. To specify a route to a host through an active Internet gateway with an entry in the gateways file, enter: host
host10 gateway 192.100.11.5 metric 9 active
This example specifies a route to a specific host, host10, through the gateway 192.100.11.5. The hop count metric to host10 is 9 and
the gateway is treated as active. To specify a route to a host through a passive Internet gateway with an entry in the gateways
file, enter: host host10 gateway 192.100.11.5 metric 9 passive
This example specifies a route to a specific host, host10, through the gateway 192.100.11.5. The hop metric count to host10 is 9
and the gateway is treated as passive. To specify a route to a network through an external gateway, enter a line in the following
format: net net5 gateway host7 metric 11 external
This example specifies a route to a network, net5, through the gateway host7. The hop count metric to net5 is 11 and the gateway is
treated as external (that is, it is not advertised through RIP, but is advertised through an unspecified routing protocol).
RELATED INFORMATION
Daemons: gated(8), routed(8) delim off
gateways(4)